summaryrefslogtreecommitdiffstats
path: root/source3/rpcclient
Commit message (Collapse)AuthorAgeFilesLines
...
| * port latest changes from SAMBA_3_0 treeSimo Sorce2003-08-023-52/+58
| | | | | | | | (This used to be commit 3101c236b8241dc0183995ffceed551876427de4)
| * trying to get HEAD building again. If you want the codeGerald Carter2003-07-166-145/+244
| | | | | | | | | | prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE (This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
| * Reverse previous patch from Stefan and me after comments by Andrew Bartlett.Jelmer Vernooij2003-05-101-4/+0
| | | | | | | | (This used to be commit d31509fe88da8727521586dced1da2c73bfee2bc)
| * Patch from metze and me that adds dummy smb_register_*() functionsJelmer Vernooij2003-05-101-0/+4
| | | | | | | | (This used to be commit 367a5cad1edf6a49783806d5a8b59a62d8856706)
| * Perform lp_load() before popt to fix -W option.Tim Potter2003-04-281-11/+11
| | | | | | | | (This used to be commit d20f4bf5d84f435a7b4b692bf33f05f4ec871a50)
| * Return NT_STATUS_UNSUCCESSFUL if the sourcedata and echodata rpcsTim Potter2003-04-281-0/+2
| | | | | | | | | | | | | | return unexpected data. Closes bug #2. (This used to be commit 0c3314ab97331aa709216e7ad2a1a0c8605eb160)
| * Patch from waider to set exit code of last executed command specifiedTim Potter2003-04-231-2/+4
| | | | | | | | | | as an argument to -c. (This used to be commit 048aeefcdc12d93bc728d104bbf38ea8becfb16c)
| * Store the type of 'sec channel' that we establish to the DC. If we are aAndrew Bartlett2003-04-162-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | workstation, we have to use the workstation type, if we have a BDC account, we must use the BDC type - even if we are pretending to be a workstation at the moment. Also actually store and retreive the last change time, so we can do periodic password changes again (for RPC at least). And finally, a couple of minor fixes to 'net'. Andrew Bartlett (This used to be commit 6e6b7b79edae3efd0197651e9a8ce6775c001cf2)
| * Removed unused variable.Tim Potter2003-04-141-1/+0
| | | | | | | | (This used to be commit 117cc35dd0adc6fd5238a440e299d012bfd8e542)
* | Fixed typo spotted by Daniel Jarboe <daniel.jarboe@custserv.com>.Jeremy Allison2003-10-201-1/+1
| | | | | | | | | | Jeremy. (This used to be commit 89d42685b706233ab31734764e2e641834af3675)
* | commit sign only patch from Andrew; bug 167; tested using 2k & XP ↵Gerald Carter2003-10-011-21/+29
| | | | | | | | | | | | clientspreviously joined to the Samba domain (This used to be commit 3802f5895ee18507c6f467bd11db0b1147a6fdfd)
* | Fix for #480. Change the interface for init_unistr2 to not take a lengthJeremy Allison2003-09-251-2/+2
| | | | | | | | | | | | | | but a flags field. We were assuming that 2*strlen(mb_string) == length of ucs2-le string. This is not the case. Count it after conversion. Jeremy. (This used to be commit f82c273a42f930c7152cfab84394781744815e0e)
* | The "unknown_5" 32 bit field in the user structs is actually 2 16-bitJeremy Allison2003-09-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | fields, bad_password_count and logon_count. Ensure this is stored/fetched in the various SAMs. As it replaces the unknown_5 field this fits exactly into the tdb SAM without any binary problems. It also is added to the LDAP SAM as two extra attributes. It breaks compatibility with the experimental SAMs xml and mysql. The maintainers of these SAMs must fix them so upgrades like this can be done transparently. I will insist on the "experimental" status until this is solved. Jeremy. (This used to be commit cd7bd8c2daff3293d48f3376a7c5a708a140fd94)
* | - Make 'net' use a single funciton for setting the 'use machine account' code.Andrew Bartlett2003-08-191-0/+2
| | | | | | | | | | | | | | | | | | | | - Make winbindd try to use kerberos for connections to DCs, so that it can access RA=2 servers, particularly for netlogon. - Make rpcclient follow the new flags for the NETLOGON pipe - Make all the code that uses schannel use the centralised functions for doing so. Andrew Bartlett (This used to be commit 96b4187963cedcfe158ff02868929b8cf81c6ebf)
* | - Fix the kerberos downgrade problem:Andrew Bartlett2003-08-191-49/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - When connecting to the NETOGON pipe, we make a call to auth2, in order to verify our identity. This call was being made with negotiation flags of 0x1ff. This caused our account to be downgraded. If we instead make the call with flags > 1ff (such as 0x701ff), then this does not occour. - This is *not* related to the use of kerberos for the CIFS-level connection My theory is that Win2k has a test to see if we are sending *exactly* what NT4 sent - setting any other flags seems to cause us to remain intact. Also ensure that we only have 'setup schannel' code in a few places, not scattered around cmd_netlogon too. Andrew Bartlett (This used to be commit e10f0529fe9d8d245b3cd001cce6a9a86896679c)
* | working on fix for BUG #294. Not done yet, but this at least clearsGerald Carter2003-08-191-3/+15
| | | | | | | | | | | | up some of the false positives in "rpcclient -c getdriver". Also make sure that we ask for version2 and 3 drivers on x86. (This used to be commit 5be51515680da910b623f486108d91f9ea914bd2)
* | get rid of more compiler warningsHerb Lewis2003-08-152-3/+3
| | | | | | | | (This used to be commit 398bd14fc6e2f8ab2f34211270e179b8928a6669)
* | Change Samba to always use extended security for it's guest logins, (ie,Andrew Bartlett2003-08-142-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | NTLMSSP with "" username, NULL password), and add --machine-pass (-P) to all of Samba's clients. When connecting to an Active Directory DC, you must initiate the CIFS level session setup with Kerberos, not a guest login. If you don't, your machine account is demoted to NT4. Andrew Bartlett (This used to be commit 3547cb3def45a90f99f67829a533eac1ccba5e77)
* | Patch from waider@waider.ie to print out Port Type.Jeremy Allison2003-08-071-1/+25
| | | | | | | | | | Jeremy. (This used to be commit 8516baf58d333a54bcbe1c1a08eee499b3dd2636)
* | Add a command line option (-S on|off|required) to enable signing on clientJeremy Allison2003-07-301-1/+2
| | | | | | | | | | | | connections. Overrides smb.conf parameter if set. Jeremy. (This used to be commit 879309671df6b530e0bff69559422a417da4a307)
* | add a few more tidy ups. Now onto winbinddGerald Carter2003-07-301-0/+4
| | | | | | | | (This used to be commit f8abdd23e1d4aed56c263c3228e702b191af4c64)
* | add support for DsEnumerateDomainTrusted for enumerating all theGerald Carter2003-07-302-2/+20
| | | | | | | | | | trusted domains in a forest. (This used to be commit c691c7f7d9afb8af542dc83cf934df1dfd38ef17)
* | Schannel, once setup, may be used on *ANY* TCP/IP connection until theAndrew Bartlett2003-07-251-33/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connection that set it up has been shut down. (Also, pipes still connected, and reconnections to the same pipe (eg SAMR) may continue to use that session key until their TCP/IP connection is shut down) Allow further testing by printing out the session key, and allowing it's input into rpcclient. Next step is automatic storage in a TDB. Andrew Bartlett (This used to be commit fa4d7be1619b51aacec37ddf995c940b8100aef9)
* | convert snprintf() calls using pstrings & fstringsGerald Carter2003-07-231-1/+1
| | | | | | | | | | | | | | to pstr_sprintf() and fstr_sprintf() to try to standardize. lots of snprintf() calls were using len-1; some were using len. At least this helps to be consistent. (This used to be commit 9f835b85dd38cbe655eb19021ff763f31886ac00)
* | Replace the eight (!) copies of dummy become/unbecome root with a single one.Tim Potter2003-07-221-15/+0
| | | | | | | | (This used to be commit 8b818ce381595cdcb36631a2440d6aa0038805f1)
* | Jeremy requested that I get my NTLMSSP patch into CVS. He didn't requestAndrew Bartlett2003-07-141-15/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the schannel code, but I've included that anyway. :-) This patch revives the client-side NTLMSSP support for RPC named pipes in Samba, and cleans up the client and server schannel code. The use of the new code is enabled by the 'sign', 'seal' and 'schannel' commands in rpcclient. The aim was to prove that our separate NTLMSSP client library actually implements NTLMSSP signing and sealing as per Microsoft's NTLMv1 implementation, in the hope that knowing this will assist us in correctly implementing NTLMSSP signing for SMB packets. (Still not yet functional) This patch replaces the NTLMSSP implementation in rpc_client/cli_pipe.c with calls to libsmb/ntlmssp.c. In the process, we have gained the ability to use the more secure NT password, and the ability to sign-only, instead of having to seal the pipe connection. (Previously we were limited to sealing, and could only use the LM-password derived key). Our new client-side NTLMSSP code also needed alteration to cope with our comparatively simple server-side implementation. A future step is to replace it with calls to the same NTLMSSP library. Also included in this patch is the schannel 'sign only' patch I submitted to the team earlier. While not enabled (and not functional, at this stage) the work in this patch makes the code paths *much* easier to follow. I have also included similar hooks in rpccleint to allow the use of schannel on *any* pipe. rpcclient now defaults to not using schannel (or any other extra per-pipe authenticiation) for any connection. The 'schannel' command enables schannel for all pipes until disabled. This code is also much more secure than the previous code, as changes to our cli_pipe routines ensure that the authentication footer cannot be removed by an attacker, and more error states are correctly handled. (The same needs to be done to our server) Andrew Bartlett (This used to be commit 5472ddc9eaf4e79c5b2e1c8ee8c7f190dc285f19)
* | more compile fixes for become/unbecome_root()Gerald Carter2003-07-091-0/+15
| | | | | | | | (This used to be commit f005f1cf12b839f3985ab00315da63c584ce803e)
* | More conversions I missed. Thanks metze.Jeremy Allison2003-07-041-1/+1
| | | | | | | | | | Jeremy. (This used to be commit 4f78d747e66b38edcd2a5754681f9a01aeaf7864)
* | Removed strupper/strlower macros that automatically map to ↵Jeremy Allison2003-07-032-66/+66
| | | | | | | | | | | | | | | | strupper_m/strlower_m. I really want people to think about when they're using multibyte strings. Jeremy. (This used to be commit ff222716a08af65d26ad842ce4c2841cc6540959)
* | * s/get_dc_name/rpc_dc_name/g (revert a previous change)Gerald Carter2003-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move back to qsort() for sorting IP address in get_dc_list() * remove dc_name_cache in cm_get_dc_name() since it slowed things down more than it helped. I've made a note of where to add in the negative connection cache in the ads code. Will come back to that. * fix rpcclient to use PRINTER_ALL_ACCESS for set printer (instead of MAX_ALLOWED) * only enumerate domain local groups in our domain * simplify ldap search for seqnum in winbindd's rpc backend (This used to be commit f8cab8635b02b205b4031279cedd804c1fb22c5b)
* | Reverse previous patch from Stefan and me after comments by Andrew BartlettJelmer Vernooij2003-05-101-4/+0
| | | | | | | | (This used to be commit d817eaf0ecca2d878ab1ffcf7a747a02d71c811e)
* | Patch from metze and me that adds dummy smb_register_*() functions soJelmer Vernooij2003-05-101-0/+4
| | | | | | | | | | | | that is now possible to, for example, load a module which contains an auth method into a binary without the auth/ subsystem built in. (This used to be commit 74d9ecfe2dd7364643d32acb62ade957bd71cd0d)
* | This puts real netlogon connection caching to winbind. This becomesVolker Lendecke2003-05-082-11/+18
| | | | | | | | | | | | | | | | | | | | important once we start doing schannel, as there would be a lot more roundtrips for the second PIPE open and bind. With this patch logging in to a member server is a matter of two (three if you count the ack...) packets between us and the DC. Volker (This used to be commit 5b3cb7725a974629d0bd8b707bc2940c36b8745e)
* | Merge:Tim Potter2003-04-281-11/+11
| | | | | | | | | | > Perform lp_load() before popt to fix -W option. (This used to be commit f8db590b07cabea3e199109bcdc26eaede189915)
* | Merge:Tim Potter2003-04-281-2/+4
| | | | | | | | | | | | >Patch from waider to set exit code of last executed command specified >as an argument to -c. (This used to be commit b1ad69268889dbc2765ae98789112a28dc4c40c6)
* | Merge from HEAD:Tim Potter2003-04-281-0/+2
| | | | | | | | | | | | | | | | >Return NT_STATUS_UNSUCCESSFUL if the sourcedata and echodata rpcs >return unexpected data. > >Closes bug #2. (This used to be commit 2e5f75beafd3f3d81869ce68e77b8c53cd7a2caf)
* | Merge the 'safe' parts of my StrnCpy patch - many of the users really wantedAndrew Bartlett2003-04-231-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | a pstrcpy/fstrcpy or at most a safe_strcpy(). These have the advantage of being compiler-verifiable. Get these out of the way, along with a rewrite of 'get_short_archi' in the spoolss client and server. (This pushes around const string pointers, rather than copied strings). Andrew Bartlett (This used to be commit 32fb801ddc035e8971e9911ed4b6e51892e9d1cc)
* | Merge from HEAD - save the type of channel used to contact the DC.Andrew Bartlett2003-04-212-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | This allows us to join as a BDC, without appearing on the network as one until we have the database replicated, and the admin changes the configuration. This also change the SID retreval order from secrets.tdb, so we no longer require a 'net rpc getsid' - the sid fetch during the domain join is sufficient. Also minor fixes to 'net'. Andrew Bartlett (This used to be commit 876e00fd112e4aaf7519eec27f382eb99ec7562a)
* | Merge: remove unused variable.Tim Potter2003-04-141-1/+0
| | | | | | | | (This used to be commit 6a1d99d318c2dddc01d8262f31c7afbe9bb1a286)
* | Merge Jelmer's popt updates from HEAD.Tim Potter2003-04-141-145/+12
| | | | | | | | | | | | Also merged a bunch of other random changes as this file has been drifting off due to lack of janitors. (This used to be commit 38337ec5ef1bd0e8fa7ba74ea1bc8a21bf2001b2)
* | Merge of rpcecho pipe for testing large dcerpc requests and responses.Tim Potter2003-04-141-2/+5
| | | | | | | | | | Only compiled in when --enable-developer argument passed to configure. (This used to be commit 017da9393bab276543d0d5c50df8c760780f2450)
* | Merge of samr lookup domain rpc client call from HEAD.Tim Potter2003-04-141-0/+44
| | | | | | | | (This used to be commit 5b1807dddf0e4fb9fcaedcfe6f67dfd78fe117bb)
* | This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This ↵cvs2svn Import User2003-04-131-0/+157
|\| | | | | | | used to be commit 381649916ecbaddefbb6ee0e6137b7cc73eb54b1)
| * A new RPC pipe! The \pipe\echo named pipe is for testing large RPCTim Potter2003-04-112-2/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | requests and responses and is only compiled in when --enable-developer is passed to configure. It includes server and client side code for generating and responding to functions on this pipe. The functions are: - AddOne: add one to the uint32 argument and return ig - EchoData: echo back a variable sized char array to the caller - SourceData: request a variable sized char array - SinkData: send a variable sized char array and throw it away There's a win32 implementation of the client and server in the junkcode CVS repository in the rpcecho-win32 subdirectory. (This used to be commit 4ccd34ef836eba05f81dc2da73fd7cfaac201798)
| * This is the netlogon schannel client code. Try aVolker Lendecke2003-04-092-22/+20
| | | | | | | | | | | | | | | | | | | | rpcclient -S pdc -U% -c "samlogon user password" and it should work with the schannel. Needs testing platforms different from NT4SP6. Volker (This used to be commit ecd0ee4d248e750168597ccf79c389513bb0f740)
| * SAMR lookupdomain rpc client patches from amber palekar <amber@nu3.net>Tim Potter2003-04-041-0/+44
| | | | | | | | (This used to be commit 67bc6bccc22e22e2a6e5cae7c57a1b2b53f49dfd)
| * Revoke some of the popt patch from metze I applied earlier today. It addedJelmer Vernooij2003-03-241-1/+2
| | | | | | | | | | some double options and broke some parameters. (This used to be commit d5f9b0275c91512e1926504f22aaeec2d104430d)
| * Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changesJelmer Vernooij2003-03-241-145/+11
| | | | | | | | (This used to be commit 2ddfed298d7f0b6e690275725a39c3ef107077ae)
| * Applied waider's patch to return DOS error codes for pipes thatTim Potter2003-03-1710-192/+217
| | | | | | | | | | support it. (This used to be commit ac3df9a8051bd105e8e4192d36b3024fdf9f9506)
| * Patch from Ronan Waide:Martin Pool2003-03-111-1/+1
| | | | | | | | | | | | > when doing "enumdomusers", rpcclient prints each one preceded by the > word "group" instead of "user" (This used to be commit 17567dd1d510d4cf1dffa67be78510ae51571ec6)