summaryrefslogtreecommitdiff
path: root/source3/rpcclient/display.c
AgeCommit message (Collapse)AuthorFilesLines
2001-07-04The big character set handling changeover!Andrew Tridgell1-26/+40
This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2000-08-01Tidyup removing many of the 0xC0000000 | NT_STATUS_XXX stuff (only need ↵Jeremy Allison1-4/+4
NT_STATUS_XXX). Removed IS_BITS_xxx macros as they were just reproducing "C" syntax in a more obscure way. Jeremy. (This used to be commit c55bcec817f47d6162466b193d533c877194124a)
2000-06-23just enough to get rpcclient to compile. Look for #if 0Gerald Carter1-3/+3
blocks around a few unimplemented functions. Also had to add cli_reg.c to Makefile.in --jerry (This used to be commit 426c43fb5167b042682c22e67871e5ebadb4b769)
2000-01-16use GET_DENY_MODE() macro instead of the bit shiftAndrew Tridgell1-3/+2
(This used to be commit d72c98a931ff05a7f8b74b98cd7ebd025a87d249)
2000-01-16a consequence of the access_table() fixes is that we can't treatAndrew Tridgell1-0/+2
DENY_DOS and DENY_FCB as the same thing anymore (the difference matters for *.exe files) (This used to be commit 8f3ff09283db87083a81a943909ae047cdd9e48b)
1999-12-17more files from 2.0.6Andrew Tridgell1-0/+1324
(This used to be commit 4a205795710010c58ae14bcb950912727c4de466)
1999-12-01split display.c into modules.Luke Leighton1-3106/+0
(This used to be commit 5b5719d6a08130db1062bfa24123cedcdc692bff)
1999-11-26whoa. _major_ restructure of rpcclient. fixed some buuugs, created a few.Luke Leighton1-289/+403
found out that getopt() _must_ have optind set to 0 before reuse. still haven't decided what to do with the net* api yet... (This used to be commit 29c480085e786905bfd92ea3cd93658f94e96e47)
1999-11-09debugging rpcclient spoolenum and spooljobs commands. oh, did i forgetLuke Leighton1-0/+238
to mention, there's a spooljobs <printer name> command, and it uses command-line completion? prints out NT print jobs really nicely, too. (This used to be commit e6e5caf16c8d120f0c11fa63061f2786098e3357)
1999-11-08const feeding frenzyLuke Leighton1-180/+182
(This used to be commit e0eb390ab3e2a0cce191e78ea4ff90d088a8895c)
1999-11-08const feeding frenzyLuke Leighton1-69/+71
(This used to be commit 6d27c5f32dab7607398ae907eadb1c27a416da0d)
1999-11-06fixed string function for reading in printer_info_N.Luke Leighton1-0/+194
(This used to be commit 0249ae50ad8135cf3fd11a3b85f771f2347fcb29)
1999-11-04adding experimental set user password command to rpcclient, it returnsLuke Leighton1-2/+2
error wrong password against nt. ???? (This used to be commit b3f16e6b5aa5ba1b6afa38ad698646c8e765ec90)
1999-11-01rewrote rpcclient enumaliases command.Luke Leighton1-2/+69
(This used to be commit 492fdaaf2009e7d7e840323357a333fdf9c4d2e1)
1999-10-30connection info level renamed to transport info levelLuke Leighton1-1/+1
(This used to be commit 1c3a6f9822e06c676d93db6ea3d84a3b9b71fad0)
1999-10-30NetServerTransportEnum parsing, client-side and rpcclient "srvtransports" added.Luke Leighton1-0/+111
(This used to be commit 37f4aac06fec3fbb34ed40d1010829b2e1f28558)
1999-10-29rpcclient regenum key client code rewritten to use higher order functions.Luke Leighton1-3/+5
(This used to be commit 6a759c57dcb851aa19d1d4156249a3df112aefd0)
1999-10-29more reshuffling of enum groups code. more higher order functions.Luke Leighton1-5/+78
(This used to be commit 497d4231723576390b10f5ea8704bd0af88d76ab)
1999-10-21turning some of the rpcclient functions dynamic. this is likely toLuke Leighton1-1/+1
break a few things... (This used to be commit 4b06f303235d36903b6e9f55ee45b987d98256b0)
1999-08-29improved "dominfo" rpcclient commandLuke Leighton1-0/+82
(This used to be commit 65a54b6e16c40ec40727547593154b341d98fc83)
1999-08-18display of session enum infoLuke Leighton1-0/+196
(This used to be commit e0713cf9332e562d1b41a794b8044e05aeb2b937)
1999-08-03reverted jeremy's c++-like security descriptor modifications as theLuke Leighton1-3/+3
simplest method to get rpcclient's reggetsec command working. the buffers passed as arguments in do_reg_get_key_sec() do need to be locally allocated not dynamically allocated, as two calls to reg_get_key_sec() are needed. on the first, the server fills in the size of the security descriptor buffer needed. on the second, the server fills in the security descriptor buffer. (This used to be commit b2d9cbef6f65bb696df8d8f49aa0c240e0bb1f50)
1999-07-22BDC support.Matthew Chapman1-5/+8
(This used to be commit 05a2687b7c3a8c29ea4807b14f928213892509ec)
1999-07-21BDC support.Luke Leighton1-0/+88
(This used to be commit 2331aa32ab36c3ee5fd8cfbe972e57299939e33d)
1999-05-03last part of RPC api change.Jean-François Micouleau1-0/+76
and of rpcclient eventlog funtion Jean Francois (This used to be commit 7fc8659e83bf0269df297016beac6793ff0bdf32)
1999-05-01Adding "time" rpcclient command which displays the remote time.Matthew Chapman1-2/+2
Also added special "now" time to the "at" command, e.g.: at now /i cmd ; pops up a command prompt (This used to be commit f456dcf08ec96c631f5e6f2e857115d4bbf94d1b)
1999-04-23New rpcclient command "at" for NT scheduler control, a slightly improvedMatthew Chapman1-0/+166
version of the NT command. at { time [/INTERACTIVE] [{/EVERY|/NEXT}:5,Sun,...] command | [/DEL] [jobid] } Examples (options used in abbreviated form): at ; Shows all jobs at 1 ; Detail on job 1 at /D ; Deletes all jobs at /D 1 ; Deletes job 1 at 11:11:11AM /I /N:1 d:\humour\silly.exe ; First of next month at 9:00AM /E:M,T,W,Th,F net send MATTY Hi ; Each weekday at 11:00PM /E c:\winnt\backup.exe ; Every day (This used to be commit cf8c476d2eec24c150877b6bb8af7f7875cc1840)
1999-04-08Mainly BDC-related changes.Matthew Chapman1-1/+1
* Added SEC_CHAN_BDC * Propagate sec_chan into the various functions which change trust account passwords, so they can be used for domain control and inter-domain trusts. * Fix for endianness problem reported by Edan Idzerda <edan@mtu.edu>. A BUFFER2 is really a "unibuf" in my terminology and we should treat it as such. * Added some more common NT structures (BIGINT, BUFHDR2, BUFFER4). * Added NET_SAM_SYNC (-> NetDatabaseSync2) RPC for account replication. Still experimental and incomplete, with a few too many NULL security descriptors lying around (must go look at Jeremy's SD code). Haven't worked out password encryption yet either. However, the XXX_INFO structures I've added to rpc_netlogon.h are quite nice as they give some insight into how these objects are stored in the SAM. (This used to be commit 7b830350eb54dc9d357c115e12ddf9a0633527ac)
1999-02-23added jeremy's new c++-like code for parsing of security descriptors.Luke Leighton1-3/+3
(This used to be commit ec1b7000fd88c5a08e438c7033f60e49b9ec44a8)
1999-02-16bitmap to stringsLuke Leighton1-16/+14
(This used to be commit ba5919bcaefa792bae503c7ab19d4b7bbf9bb954)
1999-02-15Always null-terminate strings.Matthew Chapman1-34/+34
Also some string length and sizeof(pointer) corrections. (This used to be commit ce24191939b82985d09eabe945199f38b0fea486)
1999-02-12Cut and paste error.Matthew Chapman1-9/+9
(This used to be commit 9ea91d89d2a1baa67f5143ecc08eb60c93213242)
1999-02-12UNICODE cleanup (see lib/util_unistr.c).Matthew Chapman1-35/+84
No more ugly static library buffers and all functions take a destination string length (especially unistrcpy was rather dangerous; we were only saved by the fact that datagrams are limited in size). (This used to be commit a1d39af1ce1d451b811dbd7c2ba391214851b87e)
1999-02-09removal of the use of unistrn2 function: replace it with unistr2_to_strLuke Leighton1-25/+25
which is more appropriate. (This used to be commit ac72fe1ab3d10f64a5945ccbd4ed3817e30f9f7b)
1999-01-28rpcclient "Service Control Manager" svcenum [-i] command.Luke Leighton1-0/+56
(This used to be commit a022710f1e3996ecbe6bbe035e1df0bc4c050b34)
1999-01-27Service Control Manager - service enumeration.Luke Leighton1-0/+24
(This used to be commit f4dd8f6b566961890b2933b7a413241bf9b93797)
1998-12-04- renamed do_samr_xxx to samr_xxxLuke Leighton1-53/+191
- renamed do_lsa_xxx to lsa_xxx - added "enumgroups [-m]" command, enumerates groups, shows members. - added cmd_sam_add_groupmem(), need to call these in rpcclient.c - added cmd_sam_add_aliasmem(), need to call these in rpcclient.c - modified "enumaliases [-m]" command - improved "enumgroups" and "enumaliases" to display names not just RIDS/SIDs. - renamed "samr_unknown_12" to "samr_lookup_rids". - added the following client-side functions: get_samr_query_groupmem() get_samr_query_aliasmem() get_samr_query_groupinfo() samr_enum_dom_groups() samr_enum_dom_aliases() samr_add_aliasmem() samr_add_groupmem() - improved display output (display.c) (This used to be commit eacc5e581af2b4de24186b9be3238b352c54effe)
1998-11-29weekend work. user / group database API.Luke Leighton1-0/+44
- split sam_passwd and smb_passwd into separate higher-order function tables - renamed struct smb_passwd's "smb_user" to "unix_user". added "nt_user" plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd password databases to fill in the blank entries that are not obtained from whatever password database API instance is being used. NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c for the only example outside of the password database APIs i could find. - added query_useraliases code to rpcclient. - dealt with some nasty interdependencies involving non-smbd programs and the password database API. this is still not satisfactorily resolved completelely, but it's the best i can do for now. - #ifdef'd out some password database options so that people don't mistakenly set them unless they recompile to _use_ those options. lots of debugging done, it's still not finished. the unix/NT uid/gid and user-rid/group-rid issues are better, but not perfect. the "BUILTIN" domain is still missing: users cannot be added to "BUILTIN" groups yet, as we only have an "alias" db API and a "group" db API but not "builtin-alias" db API... (This used to be commit 5d5d7e4de7d1514ab87b07ede629de8aa00519a1)
1998-11-13Makefile.in configure configure.in include/config.h.in: Changes for DGUX and ↵Jeremy Allison1-9/+9
UNIXWARE. groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf. include/includes.h: Fix YP problem. include/smb.h: Fix ZERO_STRUCTP. lib/util_sock.c: Added strerror() in debugs. passdb/ldap.c: Don't use snprinf, use slprintf. rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf. script/installman.sh: DGUX changes. smbd/open.c smbd/oplock.c: Fixed gcc warnings. web/swat.c: Changes USER to SWAT_USER. (This used to be commit 4c2b5a00983501e5d4aad1456ba8b5ab0dfd9b4c)
1998-11-12security descriptors.Luke Leighton1-12/+18
kanji const char* warnings. (This used to be commit 06abdfd68e1d7fa8741afc3f56ec7a13b5fa4ccc)
1998-11-11oops!Luke Leighton1-11/+13
(This used to be commit 22ef5160bf79b968f5bdd3393535177b9d30e178)
1998-11-11clearing up security descriptorLuke Leighton1-1/+1
(This used to be commit abdc9d790b7d27b70aaf88451f5c82c99c94ca6e)
1998-11-10include/local.h:Jeremy Allison1-2/+1
include/smb.h: param/loadparm.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). printing/printing.c: Added J.F.'s latest fix. rpc_parse/parse_misc.c: parse_reg.c: rpcclient/cmd_reg.c: rpcclient/display.c: SGI compiler signed/unsigned issues. smbd/reply.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). utils/testparm.c: Added extra test. Jeremy. (This used to be commit 9668a5ef50be2e6b575f9989e87ee2ff8da5ac1d)
1998-11-10rpcclient registry commands.Luke Leighton1-6/+369
(This used to be commit 36fcb4a6e643a05d06a2a273d74318fee7f2c647)
1998-09-25added in samr commands. assistance in returning the missing functions,Luke Leighton1-52/+52
automatically removed because they were "unused", would be appreciated. (This used to be commit d0f7b0d915973ccb85409af3d6d951a716cd66d2)
1998-09-25added wksinfo command to rpcclient, which don't work too good.Luke Leighton1-0/+1013
(This used to be commit 8d23da91cbd74a45a5b030688fd89d88a25738dc)