summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* This is Jeremy pretending to be Volker, 'cos theVolker Lendecke2001-08-212-0/+23
| | | | | | | | | | | | | | | | | link from Seattle is having problems. I've added 3 things here to work on the fcntl spin problem. 1). Check *all* tdb return codes... :-). 2). If we're asking ourselves to break an oplock, and we can't find a fsp pointer that matches the entry, this is a *logic bug* and we should abort and panic so someone with gdb can pick up the pieces. 3). After we've broken an oplock, ensure that the entry itself has been removed, and if not remove it ourselves. This should not be neccessary in a correctly working environmen,t, but will provide an added layer of robustness in error situations. 4). I hate german keyboards :-) :-). Jeremy.
* Add comment to clarify why we call this twice.Andrew Bartlett2001-08-201-0/+2
|
* two fixes for NT clients -> share level Samba serverAndrew Tridgell2001-08-202-2/+11
|
* a bunch of fixes from the sflight to seattleAndrew Tridgell2001-08-201-1/+0
| | | | | | in particular: - fixed NT status code for a bunch of ops - fixed handling of protocol levels in ms_fnmatch
* OK, so not freeing these was a mistake. I'll try to be less exuberent nextAndrew Bartlett2001-08-171-0/+2
| | | | time :-)
* Move the claim_connection stuff till a little later in the process.Andrew Bartlett2001-08-171-16/+14
| | | | (You don't have to clean up somthing you haven't done yet...)
* Move admin user check into a helper function.Andrew Bartlett2001-08-171-18/+35
| | | | Formatting fixes.
* Move read only check into a helper funcion. Ensure conn->service is setAndrew Bartlett2001-08-171-40/+50
| | | | before we use it to find a share's details.
* Restore a debug I think I dropped earlierAndrew Bartlett2001-08-171-0/+2
|
* smbd/auth_server: Doco, we want to use cli_nt_error here soonAndrew Bartlett2001-08-174-36/+46
| | | | | | | | | smbd/password.c: We don't use globals here anymore smbd/reply.c: Tidyness, global_myworkgroup must die! smbd/service.c: Move some of the make_connection code into a helper function.
* Style cleanup for the last vuid change.Andrew Bartlett2001-08-172-6/+9
| | | | | | | Style, doco and DEBUG() fixes for auth_smbpasswd.c (In particular for the account control call). Andrew Bartlett
* One less getpwnam() call...Andrew Bartlett2001-08-172-11/+6
| | | | Andrew Bartlett
* this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce2001-08-121-2/+8
| | | | | | many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also.
* This patch does a number of things, mostly smaller than they look :-)Andrew Bartlett2001-08-125-420/+153
| | | | | | | | | | | | | | | 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 the new client error api.Tim Potter2001-08-101-1/+1
|
* More constant conversions.Tim Potter2001-08-102-4/+4
|
* merge from 2.2Gerald Carter2001-08-102-2/+2
|
* Fixed wrong placement of allocate code :-(.Jeremy Allison2001-08-091-5/+5
| | | | | Changed alignment offset to 1 to allow netmon to parse ok. Jeremy.
* Fix inspired by Don @ HP. Close down password server connection if keepaliveJeremy Allison2001-08-091-1/+4
| | | | | fails. Jeremy.
* a few cleanups while mergeing the passdb code into 2.2Gerald Carter2001-08-091-1/+1
|
* 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
* 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.
* 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.
* Added Gerald's lanman printing only change to HEAD.Jeremy Allison2001-08-062-167/+95
| | | | 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-061-1/+2
| | | | Fix typo in lmhosts manpage
* 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.
* This is the fix for the PAM bug I probably introduced in the previous commit,Andrew Bartlett2001-08-031-0/+3
| | | | | | | | 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-039-1282/+1520
| | | | | | | | | | | | | | | | | | | | | | | | 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).
* Added "strict allocate" per share parameter. This causes actual on-disk ↵Jeremy Allison2001-08-012-12/+123
| | | | | | | allocation to be done. Without it just does the ftruncate. Jeremy.
* Pidfile check can be read-only. Removed old ifdef in password.cJeremy Allison2001-08-011-24/+3
| | | | Jeremy.
* Added "use mmap" for HPUX.Jeremy Allison2001-07-302-2/+2
| | | | Jeremy.
* uint -> uint32.Jeremy Allison2001-07-301-1/+1
| | | | Jeremy.
* Fix invalid uid being used after logoff. Thanks to Nigel WilliamsJeremy Allison2001-07-281-2/+1
| | | | | for this bug report. Jeremy.
* Fix for potential crash bug with bad fid.Jeremy Allison2001-07-281-1/+13
| | | | Jeremy.
* better debug messages + fix typo in debug messageSimo Sorce2001-07-261-2/+2
|
* Fix from Michael Davidson <md@caldera.com> for DEC OSF/1 ACLs (ie.Jeremy Allison2001-07-261-2/+2
| | | | | Digital UNIX). Jeremy.
* Excellent patch from Anselm Kruis <A.Kruis@science-computing.de> to fixJeremy Allison2001-07-251-1/+1
| | | | | problem with wrong token being used in current_user. Jeremy.
* we need to pull passwords in client charset for crypto to workAndrew Tridgell2001-07-251-1/+1
|
* - don't try to print pointersAndrew Tridgell2001-07-252-13/+2
| | | | - removed some unused mangling code
* Convert other parameters (read list, write list, valid users...) to the ↵Simo Sorce2001-07-242-25/+39
| | | | | | | P_LIST format. changed functions to use list instead of strings addedd lp_list_substitute function
* We were making an assumption in the oplockJeremy Allison2001-07-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | break code path that was invalid (ie. we were assuming we could infer a non-levelII oplock when such an oplock was detected - this may no longer be valid once we've processed the break process dealing with the break will change the state of it anyway. This prevents the state where we get the following packet trace : client server NTcreate -> <- NTcreate resp NTcreate -> <- break to level II ok - broken -> <- break to none Thanks to Alan Romeril for providing the trace that allowed me to track this down. Jeremy.
* Fix case insensitive password change code.Jeremy Allison2001-07-231-1/+1
| | | | | Fixed crash bug with un-zeroed talloced memory. Jeremy.
* This patch fixes up a few issues where we would do lookups in the local systemAndrew Bartlett2001-07-211-38/+42
| | | | | | | | | on username we already know are perfectly valid, and in their final form. In particular we don't want to do a lookup for DOMAIN\nobody, it just does not make sense, nor should we do map_username and the like if the username is as specified in the vuid - we have done it already. Andrew Bartlett
* Tidied up calling yield_connection on connection allocation fail.Jeremy Allison2001-07-172-1/+6
| | | | | Restore debug message to level zero. Jeremy.
* Connection record not existing is not a debug level 0.Jeremy Allison2001-07-171-1/+1
| | | | Jeremy.
* Fixes from Jens-Uwe.Walther@force.de to make the -l option behaveJeremy Allison2001-07-171-1/+1
| | | | | consistently. Jeremy.