summaryrefslogtreecommitdiff
path: root/source3/rpcclient/rpcclient.c
AgeCommit message (Collapse)AuthorFilesLines
1999-12-011) when no domain used in ntlogin test command, should use default oneLuke Leighton1-1/+1
from previous lsaquery command. over-ridden from DOMAIN\username 2) initialisation of cli_state is a little more specific: sets use_ntlmv2 to Auto. this can always be over-ridden. 3) fixed reusage of ntlmssp_cli_flgs which was being a pain 4) added pwd_compare() function then fixed bug in cli_use where NULL domain name was making connections multiply unfruitfully 5) type-casting of mallocs and Reallocs that cause ansi-c compilers to bitch (This used to be commit 301a6efaf67ddc96e6dcfd21b45a82863ff8f39a)
1999-12-01sys_select added one more argument (read, write selectors).Luke Leighton1-2/+2
(This used to be commit e4d92ff9dfc51735e6932748f66a7c20b2c1cb6a)
1999-12-01split display.c into modules.Luke Leighton1-1/+68
(This used to be commit 5b5719d6a08130db1062bfa24123cedcdc692bff)
1999-11-29ok. got ntlogin command working. argh, it maintains a connection toLuke Leighton1-0/+7
the remote machine, because i don't know what to _do_ with it!!!! argh!!! (This used to be commit 85cc680736f17e3f879895be5dac8f1427653919)
1999-11-29first attempt at getting \PIPE\NETLOGON working. it's pretty horrible.Luke Leighton1-11/+4
(This used to be commit 44dd3efa6380544e9a515e91960f9271498cefaf)
1999-11-27further abstraction involving client states. main client-side codeLuke Leighton1-8/+1
is pretty much independent of SMB client states, which will make it easier to add other transports. (This used to be commit a1ff7e8fc3129ba4a04722f977bc2d3725d13624)
1999-11-27enhanced samuser command to do same thing as enumusers command (-g -u -a)Luke Leighton1-1/+1
except with only one user. done by sharing same code. (This used to be commit 4e029d50fcb9148f2d65c6be2703b1003e68cec7)
1999-11-27bug-fixing registry commands and the rpcclient "rpcclient" command.Luke Leighton1-35/+74
the rpcclient "rpcclient" command allows user options to be reset (e.g the username / password) _without_ terminating rpcclient. try this: rpcclient -S srv1 -U% -l log srv1$ rpcclient -S srv2 srv2$ :-) (This used to be commit c049865782d87ca09744ecdefb387b7852ec2ae7)
1999-11-26whoa. _major_ restructure of rpcclient. fixed some buuugs, created a few.Luke Leighton1-228/+239
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-25cool! completed a samr* API that _would_ look like an msdn samr* api...Luke Leighton1-6/+4
if microsoft bothered to publish it. actually, there are good reasons for not publishing it: people might write programs for it, and then those programs wouldn't work on nt5, for example... (This used to be commit 8ce93b80d3b4e1c1e28aa1dde38cdef184eff3c1)
1999-11-24registry API moved over to new format. reg_connect() is the top-levelLuke Leighton1-1/+6
function, which takes \\server_name. tested a _few_ functions. found that regcreatekey receives a Fault PDU. (This used to be commit 45e92258e7df84c21d23c0be7e1d85457ccac551)
1999-11-24service control manager API completed. svcenum -i works, but does notLuke Leighton1-1/+7
do so twice. possible memory corruption, revolving around getopt(). (This used to be commit 7cacf8bd026f1ee274f1d352c68cf79cf4f3b499)
1999-11-24ok. *whew*. this is the first completed part of the restructure.Luke Leighton1-81/+20
verified that lsaquery, lsalookupsids work, and found some bugs in the parameters of these commands :-) soo... we now have an lsa_* api that has the same arguments as the nt Lsa* api! cool! the only significant coding difference is the introduction of a user_credentials structure, containing user, domain, pass and ntlmssp flags. (This used to be commit 57bff6fe82d777e599d535f076efb2328ba1188b)
1999-11-24first stages of removing struct cli_state* and uint16 fnum from allLuke Leighton1-0/+3
msrpc client code. the intent is to hide / abstract / associate connection info behind policy handles. this makes the msrpc functions look more and more like their nt equivalents. who-hou! (This used to be commit c01b18e632aede6fce7264ef6971d7ddba945cfb)
1999-11-23attempted a svcset command. password is encrypted / messed up, thereforeLuke Leighton1-3/+3
command fails. (This used to be commit 9193f0eff56399e9bc09787dbe785b603886eaa3)
1999-11-23oops!!!! wrong command!!!Luke Leighton1-0/+7
(This used to be commit cbbfef6d2a5335a6daa4fe09ea2d73197417894f)
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)