summaryrefslogtreecommitdiffstats
path: root/source3/rpcclient
Commit message (Collapse)AuthorAgeFilesLines
* r1361: patch from Guenther Deschner <gd@sernet.de> to ensure that REG_SZ ↵Gerald Carter2007-10-101-2/+4
| | | | | | values in the SetPrinterData actually get written in UNICODE strings rather than ASCII (This used to be commit 29000c1f800c35d5434b39b7c76fe7f10afaaecc)
* r1237: Correctly honor infolevel argument. Thanks to Guenther Deschner ↵Volker Lendecke2007-10-101-1/+1
| | | | | | | <gd@sernet.de>. Volker (This used to be commit fece76cfc2f268d2855944d8a71d0aca3f99e0fb)
* r1101: Implement 'rpcclient setprintername'.Volker Lendecke2007-10-101-0/+71
| | | | | | | | | | Thanks to Guenther Deschner <gd@sernet.de>. This needs to be generalized somewhat. Jerry, which of the parameters in the printer_info_2 struct are settable via cli_spoolss_setprinter? Volker (This used to be commit 473dd03833f5b742499750c5f3c91ea515c78f7e)
* r485: fix compileGerald Carter2007-10-101-3/+2
| | | | (This used to be commit 2cbcc07b7b1b78b1bed95bfd8b8fc34016553201)
* r196: merging struct uuid from trunkGerald Carter2007-10-101-2/+2
| | | | (This used to be commit 911a28361b9d8dd50597627f245ebfb57c6294fb)
* Implement NETLOGON GetDCName client side. You can ask a DC for the name ofVolker Lendecke2004-04-021-0/+26
| | | | | | | a DC it trusts. Volker (This used to be commit ae6840320ff47827c2817549fe3133a57e3fe77f)
* More sync between passdb on 3.0 and HEAD.Jim McDonough2004-02-121-1/+1
| | | | | Replace unknown_3 with fields_present. Also causes rpc_samr structure field changes. (This used to be commit 1976843345efb6ca4f9cebd964a61acd8ae11d41)
* fix another bug caused by cli_lsa_query_info_policy() changesGerald Carter2004-01-161-2/+4
| | | | (This used to be commit faec928564529c7ffb2653943be9cafbfb9e4688)
* This merges in my 'always use ADS' patch. Tested on a mix of NT and ADSAndrew Bartlett2004-01-081-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | domains, this patch ensures that we always use the ADS backend when security=ADS, and the remote server is capable. The routines used for this behaviour have been upgraded to modern Samba codeing standards. This is a change in behaviour for mixed mode domains, and if the trusted domain cannot be reached with our current krb5.conf file, we will show that domain as disconnected. This is in line with existing behaviour for native mode domains, and for our primary domain. As a consequence of testing this patch, I found that our kerberos error handling was well below par - we would often throw away useful error values. These changes move more routines to ADS_STATUS to return kerberos errors. Also found when valgrinding the setup, fix a few memory leaks. While sniffing the resultant connections, I noticed we would query our list of trusted domains twice - so I have reworked some of the code to avoid that. Andrew Bartlett (This used to be commit 7c34de8096b86d2869e7177420fe129bd0c7541d)
* Change (unused) structure parameter for cli_ds_enum_domain_trusts() cleanup.Andrew Bartlett2004-01-051-1/+1
| | | | (This used to be commit 6e5b084c20b59a86e86445bf6d101cada45da602)
* Fix comment.Tim Potter2003-12-071-1/+1
| | | | (This used to be commit a999f7f23fc68e51dd04f1c5a2c84f19d5c4a0a5)
* Patch from James Henstridge to allow rpcclient adddriver command to specifyTim Potter2003-11-051-3/+12
| | | | | printer driver version. Closes bug #514. (This used to be commit c5865e3dfe0166a4714129a3ddfe1c39218e28f0)
* Remove trailing comma on typedef enum. albert chin (china@thewrittenword.com)Tim Potter2003-10-271-1/+1
| | | | (This used to be commit 67dd1c43664db7e2eec658da0ffefc3cdb5471bb)
* Add initshutdown pipe commands to rpcclient. Second part of fix to bugJim McDonough2003-10-241-0/+2
| | | | | #534 (This used to be commit 4e86243ea1d4bbe96720caaaf02300f5e15bee5a)
* This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This ↵cvs2svn Import User2003-10-241-0/+112
|\ | | | | | | used to be commit e569418861a867437cd5e2cce87ad82e752da3fb)
| * New files for support of initshutdown pipe. Win2k doesn't respond properlyJim McDonough2003-10-241-0/+112
| | | | | | | | | | | | | | to all requests on the winreg pipe, so we need to handle this new pipe. First part of fix for bug #534 (This used to be commit 532fab74c12d8c55872c2bad2abead2647f919d7)
| * Fixed typo spotted by Daniel Jarboe <daniel.jarboe@custserv.com>.Jeremy Allison2003-10-201-1/+1
| | | | | | | | | | Jeremy. (This used to be commit c68b6f64d9eb0808ce834e23174d1d6218b814b8)
| * Several updates:Jim McDonough2003-10-201-0/+5
| | | | | | | | | | | | | | - add support for named pipe and netbios queries in parse code - fix map request structure...unknown byte was alignment - add sample of named pipe over netbios query in rpcclient (comment only) (This used to be commit 71dcdf54e60204d6b499d25d8759ed20fc7a021a)
| * Add epmapper commands to rpcclientJim McDonough2003-10-181-0/+2
| | | | | | | | (This used to be commit 1d68e108a744ae0e5df4d8d092a3b48fc4441ace)
| * Add client side code to do endpoint map queries. Currently does oneJim McDonough2003-10-181-0/+69
| | | | | | | | | | fixed query. Updates to come soon. (This used to be commit 3ca8240affba20bb26749354f59b83799b4f1e44)
| * 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 9d2e585e5e6f9066c6901aa8d8308734f8667296)
| * Merge from 3.0:Tim Potter2003-09-291-2/+2
| | | | | | | | | | | | | | | | >Fix for #480. Change the interface for init_unistr2 to not take a length >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 e2ab9e54cd0ec0002175cf18ff364f4aebaf85a0)
| * 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 71ecd10181cd35313b79f618c2928c2f45424812)
| * sync 3.0 into HEAD for the last timeGerald Carter2003-09-094-58/+86
| | | | | | | | (This used to be commit c17a7dc9a190156a069da3e861c18fd3f81224ad)
| * 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)