summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* added spool_io_printer_driver_info_level_6()Andrew Tridgell2000-05-121-1/+1
| | | | | | thsi function and the associated header structure were autogenerated using a little awk based code geerator I wroe ths evening. I'll commit that next ...
* use "winbind separator" option for domain/user separator characterAndrew Tridgell2000-05-122-2/+2
|
* fixed error code for buffer_too_large in trans replyAndrew Tridgell2000-05-121-1/+1
|
* fixed a problem with appliance operationAndrew Tridgell2000-05-121-2/+2
|
* use our primary domain trust account for trusted domain authenticationAndrew Tridgell2000-05-121-2/+2
|
* Check fstat return for error.Jeremy Allison2000-05-121-1/+5
| | | | Jeremy.
* lib/util_unistr.c:Jeremy Allison2000-05-101-1/+1
| | | | | | | | | | libsmb/clilist.c: rpc_server/srv_spoolss_nt.c: smbd/trans2.c: Changed unistr_to_ascii to unistr_to_dos - do codepage conversion. msdfs/msdfs.c: Removed stub unistr_to_dos. libsmb/pwd_cache.c: Removed obfuscation functions as they don't do anything and don't add any security. Jeremy.
* - changed smb_getpwnam() to use winbind style usernamesAndrew Tridgell2000-05-103-10/+21
| | | | - finished ntdom -> winbind rename in head
* treat a blank "password server =" line as a "*" if in domain securityAndrew Tridgell2000-05-101-3/+2
|
* check for sighup on each packet - otherwise it can take a _long_ timeAndrew Tridgell2000-05-101-0/+12
| | | | to reload services
* formatting fixAndrew Tridgell2000-05-101-1/+1
|
* patch from Dominik Kubla <dominik.kubla@uni-mainz.de>Andrew Tridgell2000-05-101-3/+3
|
* more merging voodooAndrew Tridgell2000-05-1025-1/+86
| | | | | | this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic - this isn't permanent, it should go after another few merge steps have been done
* more mergingAndrew Tridgell2000-05-101-2/+3
| | | | | it is now at the stage that winbindd can compile in the head branch, but not link
* Fix for misunderstanding of fsync added when vfs layerHerb Lewis2000-05-103-9/+9
| | | | | was done. Samba was doing fsync's (bleagh). Jeremy.
* Fix for check_kernel_oplocks looking for the var directoryHerb Lewis2000-05-091-2/+2
| | | | | before it may need to be created. Jeremy.
* This is reall Jeremy commiting as Herb at SGI labs. FixHerb Lewis2000-05-091-1/+1
| | | | | | for "socket operation on non-socket" error in log.smb on HEAD branch startup (server_fd not initialized to -1). Jeremy.
* - use smb_gwtpwnam() in another couple of placesAndrew Tridgell2000-05-092-8/+10
| | | | - don't call add/del user if the scripts are empty
* added secrets.tdb and changed storage of trust account password to useAndrew Tridgell2000-05-084-19/+5
| | | | it
* fixed a vfs crash bugAndrew Tridgell2000-05-061-6/+4
|
* Fix for dual unix_to_dos conversion in readdir from A.V.Shutko ↵Jeremy Allison2000-05-051-1/+0
| | | | | | <AVShutko@mail.khstu.ru> Jeremy.
* Fix for read_file() returning -1.Jeremy Allison2000-05-051-0/+2
| | | | Jeremy.
* rpc_server/srv_lsa.c: Bring into sync with 2.0.x.Jeremy Allison2000-05-041-2/+2
| | | | | | | rpc_server/srv_pipe_hnd.c: Bring into sync with 2.0.x. smbd/blocking.c: Improve blocking debug reporting. utils/torture.c: Added check for NT locking bug. Jeremy.
* a minimal change to get appliance mode to work with winbinddAndrew Tridgell2000-05-043-13/+27
| | | | | | | | | we needed to accept usernames of the form DOMAIN/user, which means we needed to pass the domain to a getpwnam() like routine in certain critical spots. What I'd rather do is get rid of "char *user" everywhere and use the new userdom_struct, but that will have to wait a few days.
* - use full_name instead of real_nameAndrew Tridgell2000-05-042-4/+4
| | | | - got rid of guest map code in lpq parser
* if the stat cache is off then don't initialise itAndrew Tridgell2000-05-041-0/+2
|
* Insure uninitialized memory read fixes.Jeremy Allison2000-05-031-0/+2
| | | | Jeremy.
* split the username in the vuser structure into a separateAndrew Tridgell2000-05-024-17/+18
| | | | | | | | userdom_struct. As the name implies this also contains a domain (unused at the moment). This will be important shortly, as operation in appliance mode needs the domain to be always carried with the username.
* fixed a memory leak (calling hash_table_init twice)Andrew Tridgell2000-05-021-1/+7
|
* Moved uglyness needed in fcntl locking (64->32 bit mapping, NFSJeremy Allison2000-05-022-2/+12
| | | | | | | errors etc.) into locking/posix.c, where it is needed. fcntl_lock in lib/util.c is now very small and clean. Added (*lock) op to vfs layer. Jeremy.
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-0211-19/+19
| | | | | of doing a system call every time we want to just get our pid. Jeremy.
* - added some error checkingAndrew Tridgell2000-04-301-8/+0
| | | | - removed the VTP hook in smbd
* fixed dptr_wcard handling (need to use strdup)Andrew Tridgell2000-04-301-1/+1
|
* removed more cruft from our old wildcard matching codeAndrew Tridgell2000-04-301-37/+0
|
* go back to ascii in SMB_FIND_FILE_BOTH_DIRECTORY_INFOAndrew Tridgell2000-04-301-10/+4
| | | | NT gives out unicode, but NT clients can't handle a unicode response!
* fixed our smbsearch code. We now store the mask with the dptr, thisAndrew Tridgell2000-04-302-32/+19
| | | | | | turns out to be essential for a correct implementation (there ins't enough room to store all possible masks in the status return structure!)
* - removed all our old wildcard matching code and replaced it with aAndrew Tridgell2000-04-306-306/+282
| | | | | | | | | | | | | | | | call to ms_fnmatch(). This also removes all the Win9X semantics stuff and a bunch of other associated cruft. - moved the stat cache code into statcache.c - fixed the uint16 alignment requirements of ascii_to_unistr() and unistr_to_ascii() - trans2 SMB_FIND_FILE_BOTH_DIRECTORY_INFO returns the short name as unicode always (at least thats what NT4 does) - fixed some errors in the in-memory tdb code. Still ugly, but doesn't crash as much
* Moved deletion of vfs handle into smbd/conn.c as it was being done tooJeremy Allison2000-04-282-16/+15
| | | | | | | | | | soon in smbd/service.c (file operations were being done after the handle was closed). It looks cleaner in smbd/conn.c as it is part of the closing of a conn struct anyway. Jeremy.
* Made changes suggested by Andrew review.Jeremy Allison2000-04-281-15/+1
| | | | | | | fd_close now calls fd_close_posix() directly. set_posix_lock/release_posix_lock() now handle the reference counting. More changes due when this gets moved to the file locking/posix.c Jeremy.
* Ok - this is more subtle than it looks :-).Jeremy Allison2000-04-272-5/+1
| | | | | | | | | | | | | | | When a file is being closed, once it passes the fnum and tid tests then the locking context should be ignored when removing all locks. This is what is done in the brl close case, but when you have outstanding POSIX locks, then you cannot remove all the brl locks in one go, you have to get the lock list and call do_unlock individually. As this uses global_smbpid as the locking context, you need to make sure that this is set correctly for the specific lock being removed. I now do this by storing the smbpid in each entry in the unlock list returned from the query call. I removed the smbpid from fsp (not needed) and things seem ok (even with the stupid smbpid tricks that smbtorture plays :-). Jeremy.
* Fixed subtle unlocking bug when a file is closed. We need to store theJeremy Allison2000-04-272-1/+5
| | | | | | | | smbpid used when a file was opened in the files_struct. Else we use the wrong global_smbpid when we are closing the file and trying to remove the brl locks - this causes the brl locks to be left when the file is closed as the samba_context check fails. Jeremy.
* Did the rewrite Andrew wanted where all knowledge of POSIX locking isJeremy Allison2000-04-271-114/+1
| | | | | | | | | | removed from the smbd/open.c code. We now use a dlink list of structures indexed by dev/inode to store all pending fd's for close. This could be rewritten to use lib/hash.c if this is discovered to be too slow in use. Andrew, please take a look and let me know if this is what you had in mind. Jeremy.
* Fixed crash bugs Andrew pointed out with LOCK4 smbtortureJeremy Allison2000-04-271-4/+8
| | | | | | | test. Was miscounting posix locks, plus was not taking into account the case where other_fsp == fsp in the 'move locks' case. DOH ! This code will be re-written anyway :-). Jeremy.
* Fixed range check on writeX.Jeremy Allison2000-04-271-1/+4
| | | | Jeremy.
* Tidyup of smbecho.Jeremy Allison2000-04-271-2/+4
| | | | Jeremy.
* moved trans2.h and nterr.h into includes.h with all our other includesAndrew Tridgell2000-04-257-8/+0
|
* Added the code that keeps fd's open across a close if there are other fsp'sJeremy Allison2000-04-241-1/+119
| | | | | | | | | | | | | | | open on the same dev/inode pair with existing POSIX locks. This is done at the smbd/open layer, so smbd just calls fd_close() and the transfer of any open fd's is done under the covers of fd_close(). When an fsp is closed and no other fsp's open on the same dev/inode pair have existing POSIX locks then all fd's associated with this fsp are closed. Now only the hard part of doing the POSIX range unlock code when read locks overlap remains for full POSIX/SMB lock integration.... Jeremy.
* Now that fsp's are created on successful file open, the structure memberJeremy Allison2000-04-247-27/+36
| | | | | | | | | | | | fsp->open is no longer needed (if an fsp pointer is valid, then it's open :-). NB for Luke, this patch also did not apply to TNG. TNG is not yet identical w.r.t file serving with HEAD. This makes it impossible for me to help maintain TNG. Please fix asap. lib/substitute.c: Removed unused variable (pidstr). Jeremy.
* moved INSURE hook into util.cAndrew Tridgell2000-04-241-23/+0
|
* fixed two uninitialised memory referencesAndrew Tridgell2000-04-231-2/+2
|