summaryrefslogtreecommitdiff
path: root/source3/rpcclient
AgeCommit message (Collapse)AuthorFilesLines
2003-08-14Change Samba to always use extended security for it's guest logins, (ie,Andrew Bartlett2-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)
2003-08-07Patch from waider@waider.ie to print out Port Type.Jeremy Allison1-1/+25
Jeremy. (This used to be commit 8516baf58d333a54bcbe1c1a08eee499b3dd2636)
2003-07-30Add a command line option (-S on|off|required) to enable signing on clientJeremy Allison1-1/+2
connections. Overrides smb.conf parameter if set. Jeremy. (This used to be commit 879309671df6b530e0bff69559422a417da4a307)
2003-07-30add a few more tidy ups. Now onto winbinddGerald Carter1-0/+4
(This used to be commit f8abdd23e1d4aed56c263c3228e702b191af4c64)
2003-07-30add support for DsEnumerateDomainTrusted for enumerating all theGerald Carter2-2/+20
trusted domains in a forest. (This used to be commit c691c7f7d9afb8af542dc83cf934df1dfd38ef17)
2003-07-25Schannel, once setup, may be used on *ANY* TCP/IP connection until theAndrew Bartlett1-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)
2003-07-23convert snprintf() calls using pstrings & fstringsGerald Carter1-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)
2003-07-22Replace the eight (!) copies of dummy become/unbecome root with a single one.Tim Potter1-15/+0
(This used to be commit 8b818ce381595cdcb36631a2440d6aa0038805f1)
2003-07-14Jeremy requested that I get my NTLMSSP patch into CVS. He didn't requestAndrew Bartlett1-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)
2003-07-09more compile fixes for become/unbecome_root()Gerald Carter1-0/+15
(This used to be commit f005f1cf12b839f3985ab00315da63c584ce803e)
2003-07-04More conversions I missed. Thanks metze.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 4f78d747e66b38edcd2a5754681f9a01aeaf7864)
2003-07-03Removed strupper/strlower macros that automatically map to ↵Jeremy Allison2-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)
2003-06-23* s/get_dc_name/rpc_dc_name/g (revert a previous change)Gerald Carter1-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)
2003-05-10Reverse previous patch from Stefan and me after comments by Andrew BartlettJelmer Vernooij1-4/+0
(This used to be commit d817eaf0ecca2d878ab1ffcf7a747a02d71c811e)
2003-05-10Patch from metze and me that adds dummy smb_register_*() functions soJelmer Vernooij1-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)
2003-05-08This puts real netlogon connection caching to winbind. This becomesVolker Lendecke2-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)
2003-04-28Merge:Tim Potter1-11/+11
> Perform lp_load() before popt to fix -W option. (This used to be commit f8db590b07cabea3e199109bcdc26eaede189915)
2003-04-28Merge:Tim Potter1-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)
2003-04-28Merge from HEAD:Tim Potter1-0/+2
>Return NT_STATUS_UNSUCCESSFUL if the sourcedata and echodata rpcs >return unexpected data. > >Closes bug #2. (This used to be commit 2e5f75beafd3f3d81869ce68e77b8c53cd7a2caf)
2003-04-23Merge the 'safe' parts of my StrnCpy patch - many of the users really wantedAndrew Bartlett1-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)
2003-04-21Merge from HEAD - save the type of channel used to contact the DC.Andrew Bartlett2-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)
2003-04-14Merge: remove unused variable.Tim Potter1-1/+0
(This used to be commit 6a1d99d318c2dddc01d8262f31c7afbe9bb1a286)
2003-04-14Merge Jelmer's popt updates from HEAD.Tim Potter1-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)
2003-04-14Merge of rpcecho pipe for testing large dcerpc requests and responses.Tim Potter1-2/+5
Only compiled in when --enable-developer argument passed to configure. (This used to be commit 017da9393bab276543d0d5c50df8c760780f2450)
2003-04-14Merge of samr lookup domain rpc client call from HEAD.Tim Potter1-0/+44
(This used to be commit 5b1807dddf0e4fb9fcaedcfe6f67dfd78fe117bb)
2003-04-13This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This ↵cvs2svn Import User1-0/+157
used to be commit 381649916ecbaddefbb6ee0e6137b7cc73eb54b1)
2003-04-11A new RPC pipe! The \pipe\echo named pipe is for testing large RPCTim Potter2-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)
2003-04-09This is the netlogon schannel client code. Try aVolker Lendecke2-22/+20
rpcclient -S pdc -U% -c "samlogon user password" and it should work with the schannel. Needs testing against platforms different from NT4SP6. Volker (This used to be commit eaef0d8aeff1aa5a067679be3f17e08d7434e1e8)
2003-04-09This is the netlogon schannel client code. Try aVolker Lendecke2-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)
2003-04-04SAMR lookupdomain rpc client patches from amber palekar <amber@nu3.net>Tim Potter1-0/+44
(This used to be commit 67bc6bccc22e22e2a6e5cae7c57a1b2b53f49dfd)
2003-04-02This file deleted in HEAD.Tim Potter1-1338/+0
(This used to be commit 6174560e5010af20db125d273b2506efac70c643)
2003-03-24Revoke some of the popt patch from metze I applied earlier today. It addedJelmer Vernooij1-1/+2
some double options and broke some parameters. (This used to be commit d5f9b0275c91512e1926504f22aaeec2d104430d)
2003-03-24Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changesJelmer Vernooij1-145/+11
(This used to be commit 2ddfed298d7f0b6e690275725a39c3ef107077ae)
2003-03-18Merge of waider's rpcclient return type patch.Tim Potter10-203/+223
(This used to be commit fb91bfa7a28f548dcc549f7e09805e4485c83538)
2003-03-18Merge of enumdomusers rpcclient command.Tim Potter1-0/+75
(This used to be commit 8cabdd635df2455d9b25604f2ea0fb85efa067e2)
2003-03-17Applied waider's patch to return DOS error codes for pipes thatTim Potter10-192/+217
support it. (This used to be commit ac3df9a8051bd105e8e4192d36b3024fdf9f9506)
2003-03-11Patch from Ronan Waide:Martin Pool1-1/+1
> when doing "enumdomusers", rpcclient prints each one preceded by the > word "group" instead of "user" (This used to be commit 0e9a2f41df932585bbff2a1a53d3dadc9a3dac62)
2003-03-11Patch from Ronan Waide:Martin Pool1-1/+1
> when doing "enumdomusers", rpcclient prints each one preceded by the > word "group" instead of "user" (This used to be commit 17567dd1d510d4cf1dffa67be78510ae51571ec6)
2003-03-07safe_strcpy() -> fstrcpy() fix, and a cleanup to how rpcclient calls theAndrew Bartlett2-9/+4
IP address resolving code. (This used to be commit 1f605fe77c56ee2a7838c9f87eedf4bb91ebf688)
2003-03-05Use PRINTER_ALL_ACCESS instead of MAXIMUM_ALLOWED_ACCESS in setprinterTim Potter1-1/+1
command. From Ronan Waide <waider@waider.ie>. (This used to be commit 992b5eb4e05fbf99d91d7235b9a002957533f95b)
2003-02-25Merge: const fixes.Tim Potter1-110/+87
Merge: add popt_common_version to command line options table. Merge: mbp's rewrite of do_cmd() (This used to be commit 20f153cee38edfa93ffd60cc872a299a4f296240)
2003-02-25Merge: const fixes.Tim Potter9-88/+97
(This used to be commit a20aba09996e470425a151271237f2d48a8302af)
2003-02-25More const fixes and flow on fixes from yesterday's const-fest.Tim Potter7-56/+56
(This used to be commit 018733eedd7897e6811e8461c07e3acf418c0e09)
2003-02-25Fixed up some const related compiler warnings.Tim Potter4-36/+36
(This used to be commit 923425e497112c5d1e2e569da6c13dcd02b6a8af)
2003-02-21Added enumdomusers command.Tim Potter1-0/+75
(This used to be commit 30353da3e94f732e9f1b258e62da906f628e09d0)
2003-02-21Fix for only specifying one command with -cTim Potter1-1/+4
(This used to be commit 7418351427071edccb2e825ddbbf31fce8ef381e)
2003-02-20Remove obsolete filesJelmer Vernooij2-1699/+0
(This used to be commit 1a68ead4332bd9f5123bd3690784e7e179e3cb1f)
2003-02-20Remove obsolete filesJelmer Vernooij3-3038/+0
(This used to be commit f035cba2cf5764722318e9cd10dbe7bef56d0732)
2003-02-19Merge typo fix.Tim Potter1-1/+1
(This used to be commit 7406fabe7ccdd99a19cc1df5f4339ac7e064e6b1)
2003-02-19Merge NTSTATUS vs WERROR return for cli_srvsvc_net_srv_get_info()Tim Potter1-4/+3
(This used to be commit 7edaf937963fa1d0f06343969b46ed6e4f39a6ea)