summaryrefslogtreecommitdiff
path: root/source3/rpcclient/rpcclient.c
AgeCommit message (Collapse)AuthorFilesLines
1999-10-31added yet another rpcclient command: svcstart <service name> [arg0] [arg1] ...Luke Leighton1-0/+7
works with command-line completion on the service name (ohh yesss, this is becoming my favourite bit of functionality-on-the-side hee hee :) had to fix the svc_io_q_start_service() code which was missing the ptr_argv[] array in between the array-size and the UNISTR2-array. i.e it's actually an array of _pointers_ to unicode strings... (This used to be commit 2903f22e7ed9306229035accfa757fd810645820)
1999-10-31command-line completion for new svcinfo commandLuke Leighton1-1/+45
(This used to be commit 5ca07721ba1f71d831ca89851e9fc23a41f40194)
1999-10-31added svcinfo <service name> command.Luke Leighton1-0/+7
(This used to be commit c243231d8596a732aba69179ff8f3882e7118297)
1999-10-30NetServerTransportEnum parsing, client-side and rpcclient "srvtransports" added.Luke Leighton1-0/+6
(This used to be commit 37f4aac06fec3fbb34ed40d1010829b2e1f28558)
1999-10-30general, drastic improvements to rpcclient.Luke Leighton1-130/+497
added samgroup <groupname> command added samgroupmem <groupname> command added proper registry key completion added sam command user-completion (e.g samuser [tab]) added sam command group-completion (e.g samgroup [tab]) (This used to be commit bc5d021916a2f070c62011870a80b3b2707aff3b)
1999-10-29messing with command-line completion. it sort-of works to be ableLuke Leighton1-22/+96
to enumerate down a key tree, but it's a serious fudge. oops. (This used to be commit a5e805806aab627e69fcdb9fee7170b00710108b)
1999-10-29added gnu readline command-line completion to the regenum command.Luke Leighton1-57/+164
(This used to be commit 50890516fdefe6db6cdadbf5b7a487aadf7796ec)
1999-10-27no CLIX, no !HAVE_READLINE blah blah. argh.Luke Leighton1-5/+5
(This used to be commit de69f3ef77f55f13e41b8f1e10d22b2746c4b105)
1999-10-26cut/paste code from smbclient for wait_keyboard() function. oops.Luke Leighton1-4/+4
(This used to be commit c25560ba43bd1b53d79456cbceab954aa3bb1dac)
1999-10-25one of those wonderful moments when running against a different MSRPCLuke Leighton1-0/+2
implementation (NT5) when you discover that your code is trash. samr_enum_dom_users(), samr_enum_dom_aliases() and samr_enum_dom_groups() all take a HANDLE for multiple-call enumeration purposes. (This used to be commit 19490d8b4fb8a103f3df4e6104f6f22937b0c518)
1999-10-19oops, added wait_keyboard back, but _this_ time wrapped it withLuke Leighton1-1/+31
HAVE_READLINE (This used to be commit af05710d0b1b73929dee42bb0424c63c48e358f5)
1999-10-15removed unused static wait_keyboard()Luke Leighton1-30/+0
(This used to be commit 8cb6163b068812340a6360241d0ee9372c3dbec2)
1999-09-16reading in smb server domain name from SMBnegprot responseLuke Leighton1-2/+0
(This used to be commit 25025f450531c66c0fd9f7eed886cb288d76d025)
1999-09-14added rpcclient SamrQueryDisplayInfo command "dispinfo"Luke Leighton1-1/+2
(This used to be commit 6c98d6c9aae64016bfe7727cfe12762967eb5a84)
1999-08-29improved "dominfo" rpcclient commandLuke Leighton1-1/+1
(This used to be commit 65a54b6e16c40ec40727547593154b341d98fc83)
1999-08-29added experimental del_groupmem and del_aliasmem commands that were notLuke Leighton1-0/+2
being called from rpcclient.c improved add_groupmem command, but cannot test it against nt non-pdc! (This used to be commit 7a383a2a021be1f0297e177b2c89130f1b37d440)
1999-08-17added some usage info for rpcclient.Luke Leighton1-2/+4
(This used to be commit ec11bbaf54764e50687c96ce0979d7aeebe18cb0)
1999-07-09Partial GNU readline support for rpcclient. Only command line historyTim Potter1-0/+119
and command completion implemented. (This used to be commit 795fa6a5185d9e245541a44a971a3fb588168c1e)
1999-06-29improving authentication code (tidyup).Luke Leighton1-0/+2
(This used to be commit ab1a6aa42db5217f025941fb5107436556bc23b7)
1999-06-24safe string error reporting functions (found a potential buffer overflowLuke Leighton1-2/+0
of a pstrcpy into an fstring). (This used to be commit ac0060443de800fec9042b69b299ff2e9128a31c)
1999-05-03last part of RPC api change.Jean-François Micouleau1-0/+1
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-0/+1
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/+1
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-0/+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-03-19added a "createuser" command.Luke Leighton1-0/+1
(This used to be commit fefb4bf19181714cb73414febd6ee2ec10356cbe)
1999-03-18Adding LSA_OPENSECRET (-> LsarOpenSecret) and LSA_QUERYSECRETMatthew Chapman1-0/+1
(-> LsarQuerySecret) on client side, including rpcclient command "querysecret" for others to play with. The major obstacle is working out the encryption algorithm used for the secret value. It definitely uses the NT hash as part of the key, and it seems the block size is 64 bits - probably DES based - but I can't work out what's done in between. Help required. (This used to be commit 365fa3b5fbf551670acc91f593138a7e91a5f7fa)
1999-03-12new "domtrust" test command. r&d into inter-domain trust accounts.Luke Leighton1-0/+1
(This used to be commit 65b0abe8b7594ff6c662da86dc2e35bd83a2d13d)
1999-03-08oops, accidentally committed clear-text password reading last week.Luke Leighton1-1/+1
(This used to be commit e0b5a866ce2628a5e152af3ef817ee3124e60500)
1999-03-01improving syntax / useability of rpcclient "shutdown" command:Luke Leighton1-2/+2
rpcclient [-m messsage] [-t timeout] [-r or --reboot]. (This used to be commit 8b859797aaa1b88cb1a932fed97b4c3ea2dbdde2)
1999-02-24Added "lookupdomain" rpcclient command. Not particularly useful currentlyMatthew Chapman1-0/+1
(you can do "lookupdomain MYDOMAIN" and "lookupdomain BUILTIN" and the results won't be too surprising), but it will come in useful testing the new password database code I'm working on. (This used to be commit d1cc33bcb61305cc9a6e21886237fa291eda9427)
1999-02-16rpcclient shutdown commandLuke Leighton1-0/+1
(This used to be commit 59f081069a58f6a070ed6016c06153d5e695da93)
1999-01-28rpcclient "Service Control Manager" svcenum [-i] command.Luke Leighton1-1/+1
(This used to be commit a022710f1e3996ecbe6bbe035e1df0bc4c050b34)
1999-01-27- got client code cleartext passwords working again in cli_session_setup.Luke Leighton1-1/+2
needed this for some tests. - removed code that said "if lm password is not encrypted then encrypt both lm and nt passwords". actually it said "if lm password length is not 24 bytes and we're in security=user mode..." it didn't bother to check whether the nt password was NULL or not, and doing the encryption inside cli_session_setup is the wrong place. - checked all instances where cli_session_setup is called with cleartext passwords that are expected to then be encrypted (see above) with the test "if pwlen != 24...". there was only one: all the others either provide encrypted passwords, do null sessions or use cli_establish_connection. * recommendation: use cli_establish_connection() in smbwrapper/smbw.c (This used to be commit 2a509e9606f8aefbefa6e7b49878726464dbed44)
1998-12-14added sid_name_use array argument to lsa_lookup_names and lsa_lookup_sids.Luke Leighton1-0/+1
(This used to be commit 0b2095e092d747f741e78a3349f0b81a72811629)
1998-12-08adding "Service Control Manager" commands to rpcclient.Luke Leighton1-0/+1
(This used to be commit e5ee965f8d8452ab694bc5d88e474c4b91dce5b0)
1998-12-07removed nt_pipe_fnum from struct cli_state. need to be able to callLuke Leighton1-2/+0
LsaLookupSids etc from within SamrQueryAliasMembers, for example. fnum is now a parameter to client functions. thanks to mike black for starting the ball rolling. (This used to be commit bee8f7fa6b0f7f995f71303f4e14a4aaed0c2437)
1998-12-07- lib/unix_sec_ctxt.cLuke Leighton1-0/+2
attempt at taking lib/uid.c and getting a unix security context change module that is independent of "cnums" and "snums". a security context is needed for pipes, not just IPC$ or other services. - group database API added add_group/alias_member, del_group/alias_member, del_group/alias_entry functions. del_builtin_entry() is deliberately set to NULL to cause an exception, you cannot delete builtin aliases. - parse_lsa.c srv_lsa.c fixed lookup_names code, it was a load of trash and didn't do anything. - cmd_samr.c rpcclient.c srv_samr.c added "deletegroup", "deletealias", "delaliasmem", "delgroupmem", "addgroupmem", "addaliasmem", "createalias", "creategroup", to both client and server code. server code calls into unix stubs right now, which don't actually do anything. the only instance where they are expected to do anything is in appliance mode NOT even in the ldap code or anything. client code modified to call samr_lookup_names() for group code (because we can) and lsa_lookup_names() for alias code (because we have to). - srv_lookup.c oops, lookup on unsplit name, we got lookup on DOMAIN, DOMAIN\name instead of DOMAIN, name. (This used to be commit b8175702ef61b8b37b078f38e81452c00a5e2986)
1998-12-04- oops, i got "add alias member" and "delete alias member" swapped.Luke Leighton1-0/+2
- samr_enum_dom_users, the first 4 bytes is some sort of garbage, nt5-beta2 clears them out to zeros whereas nt4 does not. fixed bug where we were assuming that the first 4 bytes of a response _had_ to be non-zero. - cli_lsarpc.c: forgot to append the rid on the lsa_lookup_names() client call. - added in "addaliasmem" and "addgroupmem" commands. the addaliasmem command actually turned out to be a "delaliasmem" :-) :-) - parse_lsa.c: moved assert array check to after the size of useable array space is set... (This used to be commit 165b15a8cacc4bc7cf8cc0b9aaabb6b92cef7fdb)
1998-12-04- renamed do_samr_xxx to samr_xxxLuke Leighton1-3/+1
- 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-12-03added createalias command to rpcclientLuke Leighton1-0/+1
(This used to be commit 4771d5451b49375cc2fd4246d7d746b0d03cd5ba)
1998-12-03create domain group command (creategroup) added to rpcclient.Luke Leighton1-0/+1
renamed do_samr_xxxx to samr_xxxx. (This used to be commit 1e5d81c154740349a2cda4c1892b33a21c0683a8)
1998-11-25LsaLookupNames client call (first used as lookupnames command in rpcclient).Luke Leighton1-0/+1
(This used to be commit 68342a29a892e515cf2b22d759476d61944bcd59)
1998-11-13need 32 bit status codes to be negotiated because of STUPID dos "error moreLuke Leighton1-1/+1
data needed" message gets treated as a serious error code (which it isn't) so the client code terminates. (This used to be commit d9b59580dcd5076d3027e364964dcd624300fe45)
1998-11-12jean-f. sent me some S-1-3-0,1,2,3 SIDs and names. S-1-3 doesn't exist.Luke Leighton1-0/+1
security descriptor testing. hey wow, you can get a SD then send it back! (This used to be commit 7466c3113ef8f8a89b8496efadfeb611c9f3e069)
1998-11-11changed syntax of registry commands so keys can start with HKLM or HKU.Luke Leighton1-6/+5
sorted lookupsids command (This used to be commit 13a0ee851fe0ce9acddfe57f9aba19fc78085c39)
1998-11-11registry delete value command: "regdeleteval".Luke Leighton1-0/+1
this is just so unbelievably simple to do... (This used to be commit c05254a15076711d382a58b85b5f08bf81cb1560)
1998-11-10rpcclient registry key delete command: "regdeletekey".Luke Leighton1-0/+1
(This used to be commit 20987b6105d42f3404ff009cc27e73a1823cd495)
1998-11-10rpcclient registry commands.Luke Leighton1-16/+24
(This used to be commit 36fcb4a6e643a05d06a2a273d74318fee7f2c647)
1998-10-15rpcclient interactive login (with trust account changing if you are root)Luke Leighton1-9/+7
cli_session_setup handles null sessions correctly (This used to be commit 60c0f22a4e84703467006dfe1971384a6294a9aa)
1998-10-14warnings spotted by ./configure.developer optionsLuke Leighton1-1/+1
(This used to be commit 29434bf195b438f4ab41a10ac5ce03f9c2d2ac2f)