summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bug-fixLuke Leighton1999-11-293-4/+4
| | | | (This used to be commit 1abdf9a45ff2e1d903a08891fbec0794349a9546)
* this is going to sound _really_ weird, ok, but i had to implementLuke Leighton1999-11-296-69/+397
| | | | | equivalents of NetUseAdd and NetUseDel! (This used to be commit 86f4b1d3cc3887c4bb7bd6433f5f932f7db1b88e)
* sam sync - one of the files that use multiple connection server listLuke Leighton1999-11-291-16/+2
| | | | | to \PIPE\NETLOGON. (This used to be commit 2ae9ee148582cc0ba9e067be3d6338079aea49a1)
* attempting to resolve the issue that multiple servers often specified inLuke Leighton1999-11-298-98/+105
| | | | | parameters to connect to \PIPE\NETLOGON. (This used to be commit d1986ade30bdcac1f49707221a3e5a5ae597ce62)
* ok. got ntlogin command working. argh, it maintains a connection toLuke Leighton1999-11-295-53/+151
| | | | | | | the remote machine, because i don't know what to _do_ with it!!!! argh!!! (This used to be commit 85cc680736f17e3f879895be5dac8f1427653919)
* first attempt at getting \PIPE\NETLOGON working. it's pretty horrible.Luke Leighton1999-11-2913-428/+568
| | | | (This used to be commit 44dd3efa6380544e9a515e91960f9271498cefaf)
* renamed PRINTER_HND to POLICY_HND.Luke Leighton1999-11-291-2/+2
| | | | (This used to be commit 8b92be25bd7d630a18c36bcd5d983386d6cd1d53)
* cool! spooljobs works! this surprised me very much :-) helped toLuke Leighton1999-11-271-2/+2
| | | | | specify \PIPE\spoolss instead of \PIPE\lsarpc... (This used to be commit 4e92090016badc78ae6532f0eb57af6bbdb789bd)
* well, i stuffed up the spooler commands.Luke Leighton1999-11-275-140/+144
| | | | (This used to be commit 7a696330586b9ad5157b0c1ab249cc66e9accef7)
* moved at command over to new abstract connection system. matthew, youLuke Leighton1999-11-272-37/+58
| | | | | initialised dest_wks _after_ using it in at_soon() :-) so i fixed this :) (This used to be commit 0aaf0c9c80b4a506955065e822a356b1c43a5ac5)
* moved browser command brsinfo over to new abstracted connectionLuke Leighton1999-11-273-27/+20
| | | | (This used to be commit 601d217f44ea1ce3735b9267b6f829b472a982b4)
* this one's a handle-based one (missed in the first round).Luke Leighton1999-11-274-38/+47
| | | | (This used to be commit 4c3556fae73c60693355f95f48ac63834ba4dd10)
* removed do_ prefix from srvsvc APILuke Leighton1999-11-274-30/+23
| | | | (This used to be commit e4e5743a407b60c3695410eaf3df4ca3de4a870e)
* updated \PIPE\wkssvc commands to use new abstracted connection system.Luke Leighton1999-11-274-28/+40
| | | | | | modified resolve_srv_name() to return dest host of *SMBSERVER if server name is \\ip.add.ress.format (This used to be commit 3204829225792974c8b20efb6ba6e24661a4f658)
* using "abstracted" cli_connection, got \PIPE\srvsvc commands up and runningLuke Leighton1999-11-273-150/+125
| | | | | again. (This used to be commit 6b67d6164dbfda3ba690d86597ae560b7e5c7584)
* modified cli_connect_serverlist to take server list of formatLuke Leighton1999-11-271-5/+6
| | | | | \\server_name \\other_server etc. (This used to be commit 4fd4aeb57455792bd8eaf81f8fa45bca6bd3e2e2)
* further abstraction involving client states. main client-side codeLuke Leighton1999-11-2713-262/+299
| | | | | | is pretty much independent of SMB client states, which will make it easier to add other transports. (This used to be commit a1ff7e8fc3129ba4a04722f977bc2d3725d13624)
* remove use of client_info lsa_info_pol.Luke Leighton1999-11-271-13/+17
| | | | (This used to be commit 2dad9d912dbc6c4a14af63715821a51c279584c6)
* enhanced samuser command to do same thing as enumusers command (-g -u -a)Luke Leighton1999-11-274-43/+182
| | | | | except with only one user. done by sharing same code. (This used to be commit 4e029d50fcb9148f2d65c6be2703b1003e68cec7)
* bug-fixing registry commands and the rpcclient "rpcclient" command.Luke Leighton1999-11-273-65/+122
| | | | | | | | | | | | | 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)
* whoa. _major_ restructure of rpcclient. fixed some buuugs, created a few.Luke Leighton1999-11-2615-838/+875
| | | | | | | 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)
* this file manages client states associated with handles.Luke Leighton1999-11-261-0/+154
| | | | (This used to be commit cda25778816f6d74f02c7e7c85e455b40e80bad2)
* previous commit added an abstraction function that didn't even haveLuke Leighton1999-11-254-77/+25
| | | | | | struct cli_state, uint16 fnum into the code: rpc_hnd_api_req(). modified cli_lsarpc.c to use this. the rest is const issues. (This used to be commit c1ea396de21309c4cf19fd92f2573f5257c24588)
* cool! completed a samr* API that _would_ look like an msdn samr* api...Luke Leighton1999-11-2510-796/+509
| | | | | | | 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)
* registry API moved over to new format. reg_connect() is the top-levelLuke Leighton1999-11-245-199/+324
| | | | | | | function, which takes \\server_name. tested a _few_ functions. found that regcreatekey receives a Fault PDU. (This used to be commit 45e92258e7df84c21d23c0be7e1d85457ccac551)
* service control manager API completed. svcenum -i works, but does notLuke Leighton1999-11-247-132/+141
| | | | | do so twice. possible memory corruption, revolving around getopt(). (This used to be commit 7cacf8bd026f1ee274f1d352c68cf79cf4f3b499)
* ok. *whew*. this is the first completed part of the restructure.Luke Leighton1999-11-2415-153/+153
| | | | | | | | | | | | | 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)
* first stages of removing struct cli_state* and uint16 fnum from allLuke Leighton1999-11-2414-214/+230
| | | | | | | | | | 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)
* WARNING! MOVED rpc_server/srv_lsa_hnd.c TO lib/util_hnd.cLuke Leighton1999-11-245-28/+29
| | | | | | | CVS UPDATE MAY ISSUE WARNING ABOUT lib/util_hnd.c MODIFICATION DATE BEING IN THE FUTURE. CVS CHECKOUT A NEW REPOSITORY MAY BE SAFER. (This used to be commit c26e8a6ac59934ae580077df937439c2c538dbdb)
* rewrote policy handle code to be generic (it's needed for client-side too)Luke Leighton1999-11-2415-189/+469
| | | | | attempted to fix regsetsec command (This used to be commit eaac0923e0e5e3f4c3d944272a71f3235ac2a741)
* oops, freed argc,argv arguments twice.Luke Leighton1999-11-231-2/+0
| | | | (This used to be commit 447143be81acbbcc148211183a512d4cab347ac7)
* attempted a svcset command. password is encrypted / messed up, thereforeLuke Leighton1999-11-237-254/+243
| | | | | command fails. (This used to be commit 9193f0eff56399e9bc09787dbe785b603886eaa3)
* oops!!!! wrong command!!!Luke Leighton1999-11-234-4/+156
| | | | (This used to be commit cbbfef6d2a5335a6daa4fe09ea2d73197417894f)
* adding svcctl 0x1b functionLuke Leighton1999-11-236-6/+339
| | | | (This used to be commit d5869df3716fec21d3a4237dbf5d2417d3350e11)
* shuffling msrpc code around so that it can be used independently of rpcclientLuke Leighton1999-11-234-43/+91
| | | | (This used to be commit e88e7d529b5bdf32ac3bc71fa8e18f6f2a98c695)
* the last one. that concludes the removal of all next_token() callsLuke Leighton1999-11-222-60/+91
| | | | | from rpcclient/cmd_*.c. (This used to be commit ca803c17fa51ace5f2b99b09f5c59893f43ba70d)
* another four next_token() removals (using getopt instead)Luke Leighton1999-11-224-32/+48
| | | | (This used to be commit 3e76ca9b172e1a6886e714d6a36453f30ff3e771)
* another two.Luke Leighton1999-11-222-33/+39
| | | | (This used to be commit b0f8ef6168d04d55d53fc2d02df5f54176e4f893)
* another oneLuke Leighton1999-11-221-18/+12
| | | | (This used to be commit c1ba1bfd68fa96937decad8f1d7421daad6e30fe)
* moved two more commands over to getopt.Luke Leighton1999-11-222-22/+32
| | | | (This used to be commit de360d1e908b4e2e77cd028b19f3ccd07903a4dd)
* okay :) all cmd_() functions now take int argc, char **argv :) thatLuke Leighton1999-11-2213-328/+368
| | | | | | | | | | | | | 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)
* implement server-side generation of NTLMv2 session key. YESSS :-)Luke Leighton1999-11-216-30/+69
| | | | (This used to be commit 1092b4f6fbdf3770c0dab756b982a562def1738e)
* you know what? this sort of thing makes me laugh. hmm, what functionsLuke Leighton1999-11-217-6/+48
| | | | | | | | | | | | | | | | | | | | | have we got. and what data do we have. hmm.. i wonder what the NTLMv2 user session key can be... hmmm... weell.... there's some hidden data here, generated from the user password that doesn't go over-the-wire, so that's _got_ to be involved. and... that bit of data took a lot of computation to produce, so it's probably _also_ involved... and md4 no, md5? no, how about hmac_md5 yes let's try that one (the other's didn't work) oh goodie, it worked! i love it when this sort of thing happens. took all of fifteen minutes to guess it. tried concatenating client and server challenges. tried concatenating _random_ bits of client and server challenges. tried md5 of the above. tried hmac_md5 of the above. eventually, it boils down to this: kr = MD4(NT#,username,domainname) hmacntchal=hmac_md5(kr, nt server challenge) sess_key = hmac_md5(kr, hmacntchal); (This used to be commit ab174759cd210fe1be888d0c589a5b2669f7ff1e)
* hmmm... have to add client-side support in domain_client_validate() toLuke Leighton1999-11-214-18/+42
| | | | | _use_ user session key. (This used to be commit be6a6b13939798a9c7242b38864f0ce842391a74)
* adding user session key into network netlogon response.Luke Leighton1999-11-214-24/+53
| | | | (This used to be commit c73f6b0d02fa7700319ba696f54296006167e5d1)
* moving create user function into msrpc_samr.cLuke Leighton1999-11-212-51/+62
| | | | (This used to be commit e885027eb705ab13c2800b8995661accad841643)
* oops, #ifdef'd cli_shutdown out, as the fun has _already_ started:Luke Leighton1999-11-201-2/+1
| | | | | NT refuses to play nice, and establish a trust relationship. (This used to be commit 98c42764fba365d612a8ae4b3172b03367066112)
* attempting to establish inter-domain trust relationships. modifiedLuke Leighton1999-11-202-28/+117
| | | | | smbpasswd so it can be used to set up inter-domain trust account. (This used to be commit 99ec0620c3bf4af96440c684f880d414659de2e9)
* modified domain_client_validate to take trust account name / type. thisLuke Leighton1999-11-207-15/+108
| | | | | | | | | | | is to pass DOMAIN_NAME$ and SEC_CHAN_DOMAIN instead of WKSTA_NAME$ and SEC_CHAN_WKSTA. modified check_domain_security to determine if domain name is own domain, and to use wksta trust account if so, otherwise check "trusting domains" parameter and use inter-domain trust account if so, otherwise return False. (This used to be commit 97ec74e1fa99d773812d2df402251fafb76b181c)
* doing a code reshuffle. want to add code to establish trust relationships.Luke Leighton1999-11-209-1746/+2078
| | | | (This used to be commit 3ec269b402ba6898d905ea1029c427e1b645faf4)