summaryrefslogtreecommitdiff
path: root/source/rpc_client
Commit message (Collapse)AuthorAgeFilesLines
* Merging for release.Jeremy Allison2002-02-014-2005/+0
| | | | Jeremy.
* Move over to RELEASE branch.Jeremy Allison2002-02-015-113/+106
| | | | Jeremy.
* New files added.Jeremy Allison2001-10-111-6/+4
| | | | Jeremy.
* Sync-up with SAMBA_2_2 branch.Jeremy Allison2001-10-113-221/+4
| | | | Jeremy.
* This commit was manufactured by cvs2svn to create branchcvs2svn Import User2001-10-101-0/+247
|\ | | | | 'SAMBA_2_2_RELEASE'.
| * Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-0215-41/+0
| |
| * Converted cli_net_auth2() and cli_nt_setup_creds() to return NTSTATUS.Tim Potter2001-09-183-15/+23
| |
| * move to SAFE_FREE()Simo Sorce2001-09-175-32/+13
| |
| * Fix up workstaion and kickoff time checks, moved to auth_smbpasswd.c whereAndrew Bartlett2001-09-161-1/+5
| | | | | | | | | | | | | | | | | | they can have general effect. Fixed up workstaion support in the rest of samba, so that we can do these checks. Pass through the workstation for cli_net_logon(), if supplied.
| * the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell2001-09-044-51/+54
| | | | | | | | the client code still needs some work
| * converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-275-37/+37
| |
| * More status32 conversions.Tim Potter2001-08-242-15/+14
| |
| * Fixed typo in debug message.Tim Potter2001-08-241-1/+1
| |
| * Set secure channel type depending on server role.Tim Potter2001-08-241-1/+2
| |
| * This patch does a number of things, mostly smaller than they look :-)Andrew Bartlett2001-08-121-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particuar, it moves the domain_client_validate stuff out of auth_domain.c to somwhere where they (I hope) they can be shared with winbind better. (This may need some work) The main purpose of this patch was however to improve some of the internal documentation and to correctly place become_root()/unbecome_root() calls within the code. Finally this patch moves some more of auth.c into other files, auth_unix.c in this case. Andrew Bartlett
| * Use new client error api.Tim Potter2001-08-101-12/+13
| |
| * Use the new client error api.Tim Potter2001-08-101-2/+4
| |
| * Removed nt_error field from cli_state as it was not used anywhere.Tim Potter2001-08-101-7/+1
| |
| * This is my 'Authentication Rewrite' version 1.01, mostly as submitted toAndrew Bartlett2001-08-031-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | samba-technical a few weeks ago. The idea here is to standardize the checking of user names and passwords, thereby ensuring that all authtentications pass the same standards. The interface currently implemented in as nt_status = check_password(user_info, server_info) where user_info contains (mostly) the authentication data, and server_info contains things like the user-id they got, and their resolved user name. The current ugliness with the way the structures are created will be killed the next revision, when they will be created and malloced by creator functions. This patch also includes the first implementation of NTLMv2 in HEAD, but which needs some more testing. We also add a hack to allow plaintext passwords to be compared with smbpasswd, not the system password database. Finally, this patch probably reintroduces the PAM accounts bug we had in 2.2.0, I'll fix that once this hits the tree. (I've just finished testing it on a wide variety of platforms, so I want to get this patch in).
| * Held a shoot-out between NT_STATUS_NO_PROBLEMO and NT_STATUS_NOPROBLEMO.Tim Potter2001-07-252-21/+21
| | | | | | | | | | | | According to the incorruptible judges find and grep, the latter won. Mmm - procrastination. (-:
| * This fixes security=domain, which has been broke since the big charsetAndrew Bartlett2001-07-101-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changeover. For my own sainity I have created a new function to fill out both the header and buffer for a string in an RPC struct. This DOES NOT take a length argument, only the actual string to be placed. The RPC code is currently littered with code that does init_uni_hdr() followed immidiatly by init_unistr2(), and often the length argument is wrong. (It was for the code I changed, even before the charset stuff). Another bug where we made strings AT LEAST MAX_UNICODE_LEN long hid this bug. This works for loopback connections to Samba, and can't be any more broke than it was before :-). (We had double and revese conversions, fun...). In particular this makes us multibyte complient. In any case, if there are no objections I will slowly convert other bits of code to the same system.
| * strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-1/+1
| | | | | | | | can't redefine them. damn.
| * The big character set handling changeover!Andrew Tridgell2001-07-044-22/+16
| | | | | | | | | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
| * Use a logical cli_read(), removed the cli_read_one() hack.Jeremy Allison2001-06-291-2/+2
| | | | | | | | Jeremy.
| * Use cli_read_one() for reading DCE/RPC reply fragments. We need to checkTim Potter2001-06-221-29/+36
| | | | | | | | | | | | | | | | for and ignore ERRmoredata errors as the client library doesn't support 32-bit error messages. Added some annotations for the RPC pipe code to make it a bit clearer maybe.
| * Fixed some return code checks for cli_initialise() from False to NULL.Tim Potter2001-06-142-2/+2
| | | | | | | | Spotted by Joe Doran <joed@interlude.eu.org>
| * Removed irritating and unecessary debug message.Tim Potter2001-06-021-3/+0
| |
| * Broke out change trust account password routines into separate fileTim Potter2001-05-172-218/+245
| | | | | | | | | | since they're only used in one place anyway (timeout_processing() in process.c)
| * Added a SMB_ASSERT() so that two cli_state structures aren't openedTim Potter2001-05-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | on different pipes. This seriously confuses NT. Unfortunately HEAD branch is limited to one rpc pipe per connection as the fnum is stored inside the cli_state structure. It should really be broken out into it's own structure so multiple pipes can be opened on one TCP/IP socket. What a good idea! But look over here! I've already done it in another workarea but it will require a day or two to refactor some of the internal samba rpc client stuff (i.e netlogon requests) so it will remain uncommitted for another while.
| * fixed some uninitialised variablesAndrew Tridgell2001-05-011-5/+5
| |
| * few cleanups to bring in line with 2.2Gerald Carter2001-04-286-6/+0
| |
| * added getdriver and enumdrivers commands. Also fixedGerald Carter2001-03-151-1/+1
| | | | | | | | | | enumprinters so that it works as well. Couple of other misc fixes while we're working on rpcclient.
| * Removed JRATEST line.Jeremy Allison2001-03-111-4/+0
| | | | | | | | Jeremy.
| * Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-3/+25
| | | | | | | | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
| * Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.Jeremy Allison2001-03-0910-135/+159
| | | | | | | | | | | | | | | | | | We were reading the endainness in the RPC header and then never propagating it to the internal parse_structs used to parse the data. Also removed the "align" argument to prs_init as it was *always* set to 4, and if needed can be set differently on a case by case basis. Now ready for AS/U testing when Herb gets it set up :-). Jeremy.
| * Sync up handle creation with 2.2 branch. We can now join AS/U domains andJeremy Allison2001-03-073-20/+14
| | | | | | | | | | authenticate against them. Big/little endian issues fixed. Jeremy.
| * Ooops - forgot to check the rpcclient and smbcacls compile with the newJeremy Allison2001-02-281-2/+2
| | | | | | | | | | code :-(. Jeremy.
| * Move to talloc control of SPOOL_XXX structs. Move to talloc control ofJeremy Allison2001-02-282-9/+2
| | | | | | | | | | security descriptors and pointers. Syncup with 2.2 tree. Jeremy.
| * rpc_client/cli_netlogon.c: Fixed incorrect printf.Jeremy Allison2001-02-251-1/+2
| | | | | | | | | | Added Solaris ACL support. Jeremy.
| * This patch (donated by Marc Jacobsen of HP) should make Sun and HP very ↵Jeremy Allison2001-02-241-58/+112
| | | | | | | | | | | | | | | | | | | | | | happy :-). Probably Veritas too... :-). It allows Samba as a domain member to authenticate against an AS/U server such as the older HP PDC product or PD Netlink. It does this by trying a netlogon with info level 3 and then falling back to info level 2 if the PDC returns invalid info level. Jeremy.
| * pipe opening now works with unicodeAndrew Tridgell2001-02-201-2/+2
| |
| * configure configure.in smbd/posix_acls.c smbd/dosmode.c: Fix for zero ↵Jeremy Allison2001-02-161-2/+12
| | | | | | | | | | | | | | permission W2K profiles. libsmb/cliconnect.c rpc_client/cli_login.c smbd/reply.c: codepage fixes from Tim. Jeremy.
| * Merge of i18n fixes from appliance branch. Samba can now talk to a networkTim Potter2001-02-142-17/+21
| | | | | | | | | | with a PDC that has international netbios name and domain name. There's still quite a bit of i18n stuff to fix though...
| * Fixed bug found by Gerald. If a Samba server joins a domain and is setJeremy Allison2000-12-191-1/+2
| | | | | | | | | | | | | | | | to search for a DC to authenticate to using the "*" syntax than ensure that for the first hour after the password change is searches for the PDC using the 1B name not the 1C name as domain replication may not have occured. Jeremy.
| * Added lock backouts on fail.Jeremy Allison2000-12-151-2/+0
| | | | | | | | | | | | | | | | | | | | When chaining together long lines of bloody "if" statements, which should logically be separated, and one of them allocates memory, remember to *free* it *WHETHER OR NOT THE IF STATEMENTS SUCCEEDED* !!!! Yes I do consider this a bug in the coding style of Tridge, Rusty, Tim et al. :-). I'm just pissed 'cos this took 4 hours to track down even with an insure error report stating me in the face and also Ben Woodward looking over the code with me :-). Jeremy.
| * Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. MergedJeremy Allison2000-12-151-1/+1
| | | | | | | | | | | | in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open problem. Jeremy.
| * Wrong length for unistr2 in init_q_lookup_names()Tim Potter2000-12-131-3/+3
| | | | | | | | | | Removed some more static arrays and replaced with tallocated memory blocks.
| * Fixed some accidentally reversed patches.Tim Potter2000-12-121-115/+411
| |
| * Merged in Tim's changes : Removed static limit of MAX_LOOKUP_SIDS in rpc ↵Jeremy Allison2000-12-121-411/+115
| | | | | | | | | | | | | | server and client lsa_lookup_names() and lsa_lookup_sids(). Jeremy.
| * Removed a dead function.Tim Potter2000-12-081-108/+0
| |