summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* - avoid possible mem leaks in rpcclient/cmd_*.c (talloc_destroy not performed)Simo Sorce2001-08-1013-112/+713
| | | | | | | - ported two rpc back from TNG (WINREG: shutdown and abort shutdown) - some optimizations and changed some DEBUG statement in loadparm.c - changed rpcclient a bit moved from non reentrant next_token_nr to next_token - in cmd_reg.c not sure if getopt will work ok on all platforms only setting optind=0
* Debug cleanups.Tim Potter2001-08-101-3/+3
|
* Had the test for cli_is_error() reversed. You idiot Stimpy!Tim Potter2001-08-101-1/+1
|
* Fixes for new client error api.Tim Potter2001-08-101-2/+2
|
* Use new client error api.Tim Potter2001-08-101-12/+13
|
* Use the new client error api.Tim Potter2001-08-104-6/+8
|
* A rewrite of the error handling in the libsmb client code. I've separatedTim Potter2001-08-1013-182/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | out the error handling into a bunch of separate functions rather than all being handled in one big function. Fetch error codes from the last received packet: void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *num); uint32 cli_nt_error(struct cli_state *); Convert errors to UNIX errno values: int cli_errno_from_dos(uint8 eclass, uint32 num); int cli_errno_from_nt(uint32 status); int cli_errno(struct cli_state *cli); Detect different kinds of errors: BOOL cli_is_dos_error(struct cli_state *cli); BOOL cli_is_nt_error(struct cli_state *cli); BOOL cli_is_error(struct cli_state *cli); This also means we now support CAP_STATUS32 as we can decode and understand NT errors instead of just DOS errors. Yay! Ported a whole bunch of files in libsmb to use this new API instead of the just the DOS error.
* More constant conversions.Tim Potter2001-08-102-4/+4
|
* Removed nt_error field from cli_state as it was not used anywhere.Tim Potter2001-08-102-8/+1
|
* Replaced the duplicate DOS constants with appropriate ones from doserr.h toTim Potter2001-08-105-332/+335
| | | | | emphasise the fact that the spoolss pipe returns DOS error codes instead of 32-bit nt status codes.
* Moved dos error codes from smb.h into new file doserr.hTim Potter2001-08-102-113/+136
|
* Changed the order of arguments in make_oem_passwd_hash(). All the otherTim Potter2001-08-102-2/+3
| | | | encryption functions have outputs as the last arguments.
* merge from 2.2Gerald Carter2001-08-103-6/+6
|
* Fixed typo in patch.Jeremy Allison2001-08-101-1/+1
| | | | Jeremy.
* Fixed wrong placement of allocate code :-(.Jeremy Allison2001-08-091-5/+5
| | | | | Changed alignment offset to 1 to allow netmon to parse ok. Jeremy.
* Added fix from Dan Thibadeau @ HP for parsing problem.Jeremy Allison2001-08-091-0/+13
| | | | Jeremy.
* Fix inspired by Don @ HP. Close down password server connection if keepaliveJeremy Allison2001-08-091-1/+4
| | | | | fails. Jeremy.
* Merged John's fix.Jeremy Allison2001-08-091-1/+1
| | | | Jeremy.
* a few cleanups while mergeing the passdb code into 2.2Gerald Carter2001-08-095-27/+25
|
* Try to set the socket options early for some OSs (like Sol 8) where theyAndrew Bartlett2001-08-091-1/+8
| | | | | | can't be set after the listen(). Andrew Bartlett
* Link fix for smbpasswd.Tim Potter2001-08-091-2/+3
|
* Change all realloc() statements to Realloc() (ecxept for tdb.c)Simo Sorce2001-08-088-48/+45
| | | | | | | changed some code to exploit the fact that Realloc(NULL, size) == malloc(size) fixed some possible mem leaks, or seg faults. thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c)
* Some better debugs for our security=server code. I want to track down whyAndrew Bartlett2001-08-081-1/+3
| | | | we occasionally don't make the connection to the server.
* Merge of modesty patch from 2.2 spec file.Tim Potter2001-08-081-2/+2
|
* Factored out common rpc pipe initialisation and shutdown code.Tim Potter2001-08-087-300/+86
|
* Patch for having spaces in tdb keys, NULL termination fixes and otherTim Potter2001-08-071-22/+87
| | | | stuff. From Andrew Esh <AEsh@tricord.com>
* Update to work with no crypt available, just like it will in Samba.Jeremy Allison2001-08-071-0/+778
| | | | Jermey.
* merge from 2.2Gerald Carter2001-08-072-122/+140
|
* Always return NT_STATUS_DISK_FULL, even for quota errors.Jeremy Allison2001-08-071-1/+1
| | | | Jeremy.
* Added fixes to return correct error codes on space allocation fail.Jeremy Allison2001-08-072-2/+31
| | | | Jeremy.
* Correctly report amount written in debug when allocation space.Jeremy Allison2001-08-071-1/+1
| | | | Jeremy.
* A collection of fixes/cleanups to the security descriptor code byTim Potter2001-08-071-9/+10
| | | | matt_zinkevicius@hp.com
* Fixed another possible memleak in cli_initialise()Tim Potter2001-08-061-0/+6
|
* Added Gerald's lanman printing only change to HEAD.Jeremy Allison2001-08-063-167/+99
| | | | Jeremy.
* Fix for getting allocate_file_space to return the correct errno.Jeremy Allison2001-08-061-2/+2
| | | | Jeremy.
* Record the NT_STATUS constant rather than its number in the logfilesAndrew Bartlett2001-08-063-3/+5
| | | | Fix typo in lmhosts manpage
* Stop HP/UX building shared libraries for the moment ...Richard Sharpe2001-08-061-1/+1
|
* We don't use indent in the HEAD branch.Tim Potter2001-08-061-14/+0
|
* Cleaned up error handling in cli_initialise() to fix a memleak found byTim Potter2001-08-061-10/+14
| | | | Claudia Moroder <claudiamoroder@st-ulrich.suedtirol.net>
* Changed lone malloc() call to talloc(). Spotted byTim Potter2001-08-061-1/+1
| | | | Claudia Moroder <claudiamoroder@st-ulrich.suedtirol.net>
* Added smbtree to list of ignored files.Tim Potter2001-08-061-0/+1
|
* me stupid.Simo Sorce2001-08-051-1/+1
| | | | | never commit without building. sorry.
* Another winbind test - fill in later.Tim Potter2001-08-051-0/+38
|
* Some fixes about malloc/Realloc and mem leakSimo Sorce2001-08-053-6/+15
| | | | thanks to andreas moroder
* Print an error message if database could not be opened.Volker Lendecke2001-08-041-0/+7
| | | | Volker
* Extra debug to see what errno is on write fail.Jeremy Allison2001-08-041-0/+2
| | | | Jeremy.
* The write zero bytes is an allocate, not set EOF.Jeremy Allison2001-08-031-1/+2
| | | | Jeremy.
* Added include guards...Jeremy Allison2001-08-031-0/+3
| | | | | | | We may need to rename this file smbauth.h, as auth.h is so generic it will probably conflict with system header files on some systems. Jeremy.
* This is the fix for the PAM bug I probably introduced in the previous commit,Andrew Bartlett2001-08-032-0/+6
| | | | | | | | which I will confirm once I can find a box it would break on in the first place. (this is the pam accounts as nobody thing we had with 2.2.0) Andrew Bartlett
* This is my 'Authentication Rewrite' version 1.01, mostly as submitted toAndrew Bartlett2001-08-0325-1417/+3312
| | | | | | | | | | | | | | | | | | | | | | | | 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).