summaryrefslogtreecommitdiff
path: root/source3/rpcclient/rpcclient.c
AgeCommit message (Collapse)AuthorFilesLines
1999-11-22the last one. that concludes the removal of all next_token() callsLuke Leighton1-1/+1
from rpcclient/cmd_*.c. (This used to be commit ca803c17fa51ace5f2b99b09f5c59893f43ba70d)
1999-11-22okay :) all cmd_() functions now take int argc, char **argv :) thatLuke Leighton1-46/+41
means that some commands need more work, as they still use next_token(), the use of which i wish to avoid. plus, i was getting fed up of the poor command-line processing in some of these commands. i'm starting to need getopt() in them, especially in samsetuser. WARNING: only cmd_samr has been modded to use getopt() so far! reg commands won't work, esp. (This used to be commit 9a1efa03c8bb86c9b7e73f102a9d48fb6a57a523)
1999-11-19added \PIPE\browser plus experimental brsinfo command. you wouldn'tLuke Leighton1-0/+6
believe the XXXX that MIGHT be involved in getting nt5rc2 to join a samba domain... (This used to be commit 569babb3935950c1b64396955541abf276cc1d92)
1999-11-18added samuserset2 rpcclient command to test ACB_XXX bit-setting onLuke Leighton1-0/+6
samr opcode 0x25. _yet_ another failed attempt to get nt5rc2 to join a samba domain. what _is_ it with this stuff, dammit? (This used to be commit c3913f8ae272c496fc4519141accf01ee9f1e49e)
1999-11-18added regqueryval command (experimental) to get reg_io_q_info() andLuke Leighton1-0/+6
reg_io_r_info() working properly. previously they weren't well understood (well, they were the first of the registry functions i did, back in december 97, ok??? :-) set ntversion to 0x1 in SAMQUERY, so that we reply same as NT4 srv. (This used to be commit 98ddeaf442cb30972cb281bf0489a6e5f7eb2883)
1999-11-16oops, mistake in parsing command-arguments. repeated calls toLuke Leighton1-1/+1
next_token() should not have line to parse as first arg. oops. (This used to be commit 3273bc068d0e0a8eefc92f9b21db47f239b76d21)
1999-11-15added rpcclient "enumdomains" command. enumerates names of domainsLuke Leighton1-0/+6
for which a PDC is responsible. typical answers are: <Name of Domain> plus <Builtin>. against a hierarchical, down-level-compatible NT5 PDC, there's likely to be more than these two entries!!!!! (This used to be commit 3146aa6b6049a0d996e9abbe7dbee8526550e7e0)
1999-11-09debugging rpcclient spoolenum and spooljobs commands. oh, did i forgetLuke Leighton1-3/+14
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-4/+61
(This used to be commit e0eb390ab3e2a0cce191e78ea4ff90d088a8895c)
1999-11-06added command-completion printer enum code.Luke Leighton1-1/+46
(This used to be commit 6947f8fac7d6d643a265fdcb56b2a390b9a9a1c0)
1999-11-06added rpcclient spoolenum command. enumerates printers.Luke Leighton1-1/+7
spoolss_r_io_enumprinters doesn't decode strings correctly as printer_info_1/2 code has only been written to write structures, not read them. (This used to be commit 135eaa977385cdd5f572a51f654f14d893347d7b)
1999-11-06spoolss openprinterex / closeprinter client-code.Luke Leighton1-10/+3
experimental spoolopen <printer name> command added. jean-francois, f.y.i. i changed the #define for SPOOLSS_OPENPRINTEREX from op code 0x44 to 0x45. (This used to be commit ef7fa58fd3c259c765c3bc82424d4c0f192ec90e)
1999-11-05experimental spoolss rpcclient commandsLuke Leighton1-1/+17
(This used to be commit c86edef90e7c96d5a99be29e2d2a3679ed26d97d)
1999-11-04adding experimental set user password command to rpcclient, it returnsLuke Leighton1-0/+8
error wrong password against nt. ???? (This used to be commit b3f16e6b5aa5ba1b6afa38ad698646c8e765ec90)
1999-11-02added samalias <aliasname> rpcclient command (shows info on alias)Luke Leighton1-10/+63
added samaliasmem <aliasname> rpcclient command (shows members in alias) added tab command-completion to SAM alias related commands (inc 2 above). (This used to be commit 0c700fb609adf80cb3191f2976c6d56088d81232)
1999-11-01added lsaenumdomains command.Luke Leighton1-0/+6
attempting to get blood out of a stone^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H querysecret to work, it keeps returning access denied. (This used to be commit 953fe6ba9454fa4b8e69426527eca37b011f76ac)
1999-11-01added rpcclient svcstop <service name> command. gnu readlineLuke Leighton1-0/+7
command-completion works. (This used to be commit 926fe6273a8cd9550838ecdfca276f915c92031b)
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)