summaryrefslogtreecommitdiffstats
path: root/source/libsmb
Commit message (Collapse)AuthorAgeFilesLines
...
* Initialise result on success in cli_spoolss_enum_printers() so we don't getTim Potter2002-01-031-0/+2
| | | | stuck in an infinite loop.
* The werror<->nt status code map has changed and has broken all the spoolssTim Potter2002-01-031-7/+7
| | | | | | | | commands in rpcclient. Replacing ERROR_INSUFFICIENT_BUFFER with NT_STATUS_BUFFER_TOO_SMALL fixes it. Yay! I always thought the caller (i.e cmd_spoolss.c) should take care of the whole requested/needed buffer size thingy though...
* This brings the NT->DOS error mapping into better line with what NT does.Andrew Bartlett2002-01-011-2/+2
| | | | | | | I'll post the changes to the actual map to the list for comment, but this fixes the 'unknown' case. Andrew Bartlett
* Add a function to convert 'NT_STATUS...' strings back into their actual errorAndrew Bartlett2002-01-011-0/+16
| | | | | | code. Andrew Bartlett
* Add a specialised version of tpot's libsmb samlogon code for use withAndrew Bartlett2002-01-011-0/+86
| | | | | | | | | presupplied challange-response pairs, and only using the 'network' version. This will be used to move the auth subsystem over to a libsmb (rather than rpc_client) base. Andrew Bartlett
* Ensure the output cli can't have spurious values if the connection fails...Andrew Bartlett2001-12-311-1/+7
|
* Fix up the comment in the copyright headerAndrew Bartlett2001-12-311-2/+1
|
* util_sid.c - respect a const variabile (addedd strdup)Simo Sorce2001-12-301-3/+2
| | | | | | cli_reg.c - indentation pdb_ldap.c - some checks on init fns parameters pdb_tdb.c - some checks on init fns parameters + make sure we close the db on failure
* Finish idra's cleanup of the RPC remote shutdown code.Andrew Bartlett2001-12-301-3/+2
|
* - handle kerberos session setup reply with broken null terminationAndrew Tridgell2001-12-211-4/+5
| | | | - don't display Domain=[] for auth protocols that don't give us a domain
* try to handle end of packet for not null terminated domain stringsAndrew Tridgell2001-12-211-1/+3
|
* added trusted realm support to ADS authenticationAndrew Tridgell2001-12-191-2/+2
| | | | | | the method used for checking if a domain is a trusted domain is very crude, we should really call a backend fn of some sort. For now I'm using winbindd to do the dirty work.
* there is no unknown field in LSA_SEC_QOSJean-François Micouleau2001-12-171-2/+2
| | | | | | | | | | | | | some cleanup of the lsa_open_policy and lsa_open_policy2 parser. the length fields are not correct but that's what NT send. We don't anymore underflow or overflow the decoding. added the domain admins group to the default SD. we are now checking the desired access flag in the lsa_open_policy_X() calls and in most functions also. J.F.
* Added comment.Tim Potter2001-12-131-0/+2
|
* update the ldap support code. it compiles.Jean-François Micouleau2001-12-131-2/+4
| | | | | | | | Ignacio you can update your howto ;-) samsync: a small patch to try chaning challenges. J.F.
* Always use ASCII strings when changing passwords with RAP.Jeremy Allison2001-12-121-3/+3
| | | | Jeremy.
* handle a NULL hostname in cli_connect()Andrew Tridgell2001-12-111-0/+3
|
* detect attempts to connect to names of the type NAME#xx and do aAndrew Tridgell2001-12-111-1/+11
| | | | | | netbios lookup for name NAME with node type xx. This affects all our client progs. Very useful :)
* Doing some research into ACLs on the LSA and SAM policy objects.Tim Potter2001-12-111-0/+52
| | | | | | | - added lsaquerysecobj to rpcclient - renamed querysecobj to samquerysecobj - removed duplicated display_sec_acl() code from cmd_spoolss.c and cmd_samr.c and moved it into display_sec.c
* NT_STATUS(0x80000005) maps to ERRDOS,234Jean-François Micouleau2001-12-101-1/+1
| | | | J.F.
* added enum alias groups to rpcclientJean-François Micouleau2001-12-101-0/+78
|
* Treat RAP codes differently.Jeremy Allison2001-12-101-19/+20
| | | | Jeremy.
* RAP error strings take precedence as they are not encoded in the SMB headerJeremy Allison2001-12-101-9/+9
| | | | | (ie. the call can succeed, but still be an encoded error). Jeremy.
* Added client and server code for the GetPrintProcessorDirectory SPOOLSSTim Potter2001-12-101-0/+59
| | | | | | rpc. This was supposed to fix a printer driver download bug but it didn't but it seemed a shame to trash all this code so I'm commiting it #ifdef'ed out in case someone needs it one day.
* added internal sasl/gssapi code. This means we are no longer dependent on ↵Andrew Tridgell2001-12-081-1/+1
| | | | cyrus-sasl which makes the code much less fragile. Also added code to auto-determine the server name or realm
* Leak less memory.Andrew Bartlett2001-12-081-8/+18
| | | | | | | | | | Now, is there any reason that the prs_init() doesn't use the talloc context that it is supplied as an argument for the actual data buffer? It would seem logical to replace the malloc with a talloc, but I'm sure there is some method to the madness (extrnal use/Reallocing of it I presume) Andrew Bartlett
* Added fetch_domain_sid. Not used in current code, but a nice exampleJeremy Allison2001-12-051-0/+96
| | | | | of how to use this interface. Jeremy.
* OK. Smbpasswd -j is DEAD.Andrew Bartlett2001-12-052-1/+198
| | | | | | | | | | | | | | | | | | | This moves the rest of the functionality into the 'net rpc join' code. Futhermore, this moves that entire area over to the libsmb codebase, rather than the crufty old rpc_client stuff. I have also fixed up the smbpasswd -a -m bug in the process. We also have a new 'net rpc changetrustpw' that can be called from a cron-job to regularly change the trust account password, for sites that run winbind but not smbd. With a little more work, we can kill rpc_client from smbd entirly! (It is mostly the domain auth stuff - which I can rework - and the spoolss stuff that sombody else will need to look over). Andrew Bartlett
* Ditto on the const religion.Andrew Bartlett2001-12-051-2/+2
|
* Add 'net rpc join' to match the ADS equiv.Andrew Bartlett2001-12-042-12/+7
| | | | | | | | | | | | | | | | This kills off the offending code in smbpasswd -j -Uab%c In the process we have changed from unsing compelatly random passwords to random, 15 char ascii strings. While this does produce a decrese in entropy, it is still vastly greater than we need, considering the application. In the meantime this allows us to actually *type* the machine account password duruign debugging. This code also adds a 'check' step to the join, confirming that the stored password does indeed do somthing of value :-) Andrew Bartlett
* Fix up funtion name, as this finds local, not domain master browsers.Andrew Bartlett2001-12-041-2/+2
| | | | (as per tridge's instructions)
* Added error message for ERRdiskfull.Tim Potter2001-12-041-0/+1
|
* when using non-encrypted password ignore the ntpass variable toAndrew Tridgell2001-12-041-2/+2
| | | | session setup
* const religionAndrew Tridgell2001-12-031-1/+1
|
* This change reworkes the connection code for both rpcclient and net newAndrew Bartlett2001-12-031-1/+113
| | | | | | | | | | | 'net' untility. This should make it easier to port rpcclient code across to net. It also allows SPNEGO (the NTLMSSP subsystem in particular) to work, becouse it kills off the early destruction of the clear-text password. Andrew Bartlett
* added queryuseraliases to rpcclientJean-François Micouleau2001-12-021-0/+49
| | | | | | | and some comments to the samr server code, to explain what we should return here. J.F.
* added samr_query_sec_obj for rpcclientJean-François Micouleau2001-12-011-0/+46
| | | | J.F.
* I think the lookup_pdc_name() should be called lookup_dc_name() and theTim Potter2001-11-291-21/+22
| | | | | | | | name_status_find() call here should look up a #1c name instead of #1d. This fixes some bugs currently with BDC authentication in winbindd and in smbd as you can't query the #1d name with the ip address of a BDC. Who is Uncle Tom Cobbley anyway?
* fixed some krb5 ifdefsAndrew Tridgell2001-11-282-3/+3
|
* fixed a core dump in server level securityAndrew Tridgell2001-11-281-2/+4
|
* fix a bunch of places where we can double-free a cli structureAndrew Tridgell2001-11-281-4/+4
|
* Cross merge to make 2.2 and HEAD closer.Jeremy Allison2001-11-281-9/+6
| | | | Jeremy.
* Fix another memory leak spotted by Tom Jansen.Richard Sharpe2001-11-271-0/+1
|
* prevent a bogus insure wild ptr messageAndrew Tridgell2001-11-271-1/+2
|
* prevent a memory leak of cli structuresAndrew Tridgell2001-11-271-1/+7
|
* increment the value not the pointerAndrew Tridgell2001-11-261-1/+1
|
* Fix --enable-developer shadow warningAndrew Bartlett2001-11-261-3/+3
|
* Got medieval on another pointless extern. Removed extern struct ipzeroTim Potter2001-11-262-5/+3
| | | | | | | and replaced with two functions: void zero_ip(struct in_adder *ip); BOOL is_zero_ip(struct in_addr ip);
* And delete domain_client_validate.c...Andrew Bartlett2001-11-261-432/+0
| | | | Andrew Bartlett
* use DEBUG() not d_printf() in librariesAndrew Tridgell2001-11-261-2/+2
|