summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* moved access.c into lib/ from smbd/ as it is needed by testparm. IAndrew Tridgell1998-08-101-3/+9
| | | | | modified it not to need any smbd specific structures and instead pass things from smbd.
* split the system password checking routines out of smbd/password.c andAndrew Tridgell1998-08-102-1042/+143
| | | | | into passdb/pass_check.c. This means SWAT no longer needs to link to smbd/password.c
* this gets smbd compiling and linking correctly with the new layout.Andrew Tridgell1998-08-094-599/+18
|
* added ignore rules for the dummy filesAndrew Tridgell1998-08-091-0/+1
|
* these dummy files are needed for autoconf processingAndrew Tridgell1998-08-091-0/+0
|
* Fixed memory leak when freeing ChangeNotify structures.Jeremy Allison1998-08-051-6/+6
| | | | Jeremy.
* nttrans.c: Fix change_notify. Queue processing code wasn't changing toJeremy Allison1998-08-042-18/+54
| | | | | | | | | the correct directory before doing the stat. Doh ! uid.c: Fix for performance in security=share mode. Invalid vuid meant that in security=share mode Samba was always doing the become_user/ undebome_user pairs for *every* smb. This code fixes it, but tridge should review for security implications. Jeremy.
* loadparm.c: Added "debug timestamp" synonym for Chris.Jeremy Allison1998-08-043-39/+28
| | | | | | | nttrans.c: Moved common code into function in server.c Removed left over debug level 0. server.c: Moved common code into function in server.c Jeremy.
* First implementation of ChangeNotify - this version only checksJeremy Allison1998-08-032-20/+297
| | | | | | | | | | | | | | | | | | | for changes in the directory modify timestamps. A better version will look at the requested client flags, and create a hash that represents the current state of the directory, and check against this instead. debug.c: Added lp_timestamp_logs() function. loadparm.c: Added "change notify timeout" in seconds (default 60) - this is the scan rate for a directory. Added ""timestamp logs" boolean - default True. Turns off log timestamps (so I can read them :-). nttrans.c: ChangeNotify implementation. server.c: ChangeNotify implementation. shmem_sysv.c: Added exits on shmem errors (without them smbd can core dump if some calls fail). smb.h: Added ChangeNotify flags for future use. util.c: Tidied up typedef. Jeremy.
* As per a Andrew's message, I went through and removed the timestring()Christopher R. Hertel1998-07-319-237/+280
| | | | | | | | | timestamps from several DEBUG messages. The timestamps are redundant now that DEBUG() provides them automatically. There are still a few more files to do, but I've got to get home for dinner. Chris -)-----
* Makefile.in: Moved UBIQX stuff into UTILOBJ.Jeremy Allison1998-07-304-217/+332
| | | | | | | | | | | | | | | | loadparm.c: Added "ole locking compatibility" option (default "true"). locking.c: Changes to implement union in files_struct. locking_shm.c: Changes to implement union in files_struct. nttrans.c: Made opening a directory explicit (we have to). Added create directory code for nttrans. reply.c: Changes to implement union in files_struct. server.c: Changes to implement union in files_struct. Added create directory code. trans2.c: Changes to implement union in files_struct. smb.h: Changes to implement union in files_struct. util.c: Changed linked list code to UNIQX linked list. This will make the other lists I need to implement for ChangeNotify and blocking locks easier. Jeremy.
* get rid of the runtime test for broken getgroups() and add a compileAndrew Tridgell1998-07-293-85/+37
| | | | | time test instead. This also allows us to get rid of the igroups element of a couple of structures.
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-2911-976/+440
|
* locking.c: Print messages when we downgrade a lock.Jeremy Allison1998-07-292-19/+32
| | | | | | | reply.c: Do the same mask expansion we do in trans2.c - needed for Win98. trans2.c: Make the mask expansion into a function call now we have to do it twice. Jeremy.
* loadparm.c: Added strict sync parameter.Jeremy Allison1998-07-282-16/+14
| | | | | | | locking.c: Added code to deal with real open mode of file. reply.c: Added strict sync parameter. server.c: Added strict sync parameter. Fixed open modes. Jeremy.
* chgpasswd.c: Fixed up debug calls to stop crashes if ptsname failed.Jeremy Allison1998-07-274-29/+18
| | | | | | | | | | | | local.h: Kept FSTYPE_STRING as Samba for now. nmbd_browsesync.c: Added bugfix from Matt Chapman mattyc@cyberdude.com - lmb_browserlist is now a struct ubi_dlList not a struct browse_cache_record *. server.c: smb.h: uid.c: password.c: Removed attrs code - it is not used anywhere. Jeremy
* Noticed that I was using the strlen() of a string that I had strdup()'dChristopher R. Hertel1998-07-251-1/+1
| | | | before testing that the strdup() worked. Fixed.
* Changed the definition of the linked list header used in the directoryChristopher R. Hertel1998-07-241-1/+1
| | | | cache so that it uses the new ubi_dlNewList() macro in ubi_dLinkList.h.
* locking.c: Added lock type to is_locked() and do_lock()Jeremy Allison1998-07-233-20/+35
| | | | | | | | | | | | as the code in reply_lockingX wasn't taking account of the difference between read and write locks ! How did this ever work :-) ! reply.c: server.c: Add lock type to is_locked() and do_lock(). util.c: Also added code from klausr@ITAP.Physik.Uni-Stuttgart.De to fix problem with log files growing too large if an smbd writes less than 100 debug messages. Jeremy.
* Fixed bug found by Richard Sharpe. After increasing files_struct size byJeremy Allison1998-07-223-12/+12
| | | | | | | | | MAX_OPEN_DIRECTORIES for nttrans I forgot to update the code that enumerates the array. Created new MAX_FNUMS in local.h, changed all code that iterates through the files_struct array to use this. (sorry Richard). Jeremy.
* includes.h: Added feature type USE_GRANTPT for pty code.Jeremy Allison1998-07-221-5/+9
| | | | | chgpasswd.c: Updated to use USE_GRANTPT feature definition. Jeremy.
* Forgot to increase size of files_struct by MAX_OPEN_DIRECTORIES inJeremy Allison1998-07-171-1/+1
| | | | | previous checkin. Jeremy.
* Code added to fix the renaming of a directory under NT SMB calls.Jeremy Allison1998-07-174-61/+204
| | | | | | | | | | | | | | | | local.h: Changed MAXDIR to MAX_OPEN_DIRECTORIES - shmem size also tuned by this. dir.c: Use MAX_OPEN_DIRECTORIES. nttrans.c: Allow opening of a directory to succeed. Doesn't actually open a file descriptor but takes a files_struct slot marked as an fd. reply.c: Changed to close any outstanding is_directory files. reply_close changed to understand directory files. server.c: Added open_directory(), close_directory() calls. smb.h: Added is_directory to files_struct. Changed OPEN_FNUM to check that target is !is_directory (this prevents the normal file calls from processing a directory files_struct. Jeremy.
* nttrans.c: Added FILE_EXECUTE to required permissions checked.Jeremy Allison1998-07-172-11/+13
| | | | | | | | | trans2.c: Fixed up the SMB_QUERY_FILE_ALT_NAME_INFO code, now I've got an NT client to generate it. It uses unicode without bothering to check the unicode bit of course, but now we can execute 16 bit exe's on a WinNT client from a long filename directory (hurrah). Jeremy.
* local.h: Added NTFS define if HAVE_NT_SMBS is defined.Jeremy Allison1998-07-171-4/+10
| | | | | nttrans.c: Fixed issue with access DELETE on renaming files. Jeremy.
* Makefile: Added nttrans.oJeremy Allison1998-07-163-213/+283
| | | | | | | | | includes.h: Added termios.h for AIX. nttrans.c: Working NT SMB calls ! pipes.c: Use strequal instead of strcmp. server.c: Use #defines rather than numbers. smb.h: Updated NT SMB #defines. Jeremy.
* Makefile: Added CC=gcc to DGUX on Intel. Comment from ross@filmworks.com.Jeremy Allison1998-07-161-9/+26
| | | | | | | | | | | | ipc.c: loadparm.c: printing.c: Added code from <Dirk.DeWachter@rug.ac.be> to implement print queue pausing. New parameters are "queuepause command" and "queueresume command". util.c: Added fix for mount options in autmount map. lib/rpc/include/rpc_misc.h: Removed duplicate pipe names for Jean-Francois. Jeremy.
* loadparm.c:Jeremy Allison1998-07-143-103/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | With apologies to Charlton Heston and Pierre Boule. "You damn fools, you finally did it". Changed default security mode to be security=user. Yes this is a big (although small in code) change. It's something we've been discussing for a while, to finally wean people off the legacy security=share mode which is *never* what you want. Jeremy. nmbd_incomingrequests.c: Bug fix for nmbd core dumps caused by overrun. Found by <samuel@public.szonline.net>. nttrans.c: More NT smb stuff. reply.c: Unlink will overwrite an existing file. Well you learn something new about POSIX every day. :-). server.c: Tidyup unreadable code. smbpasswd.c: Code to allow -U remote_username to allow ordinary users to change remote passwords if their NT username is different from their UNIX username. Patch from <torbjorn.lindh@allgon.se>. Jeremy.
* nntrans.c: Fully implemented transact rename.Jeremy Allison1998-07-112-6/+40
| | | | | | reply.c: Added NT specific rename if exists flag to rename_internals(). smb.h: Added NT rename flag. Jeremy.
* nttrans.c: More NT SMB stuff.Jeremy Allison1998-07-113-76/+103
| | | | | | | | reply.c: Broke out the internals of reply_mv so that they may be called externally from the NT transact rename. server.c: Changed stat calls to sys_stat - found in code review of bugfix. Jeremy.
* Fix for bug PR#8294 reported by <detlef.lammermann@er.materna.de>Jeremy Allison1998-07-101-1/+8
| | | | | | | - the Files array was storing the 'dos_to_unix' translated name, rather than the untranslated name. This could case problems when the name was run through dos_to_unix again. Jeremy.
* AIX patch from Michael Wojcik <mww@microfocus.com> adding detailJeremy Allison1998-07-101-4/+135
| | | | | to the AIX specific (and undocumented) setpriv and setuidx calls. Jeremy.
* Needed fix to SIGHUP handling donated by branko.cibej@hermes.siJeremy Allison1998-07-091-8/+29
| | | | | (I can't believe we've had that bug so long :-). Jeremy.
* New version of the DFS_AUTH code from Karsten Muuss <muuss@or.uni-bonn.de>Jeremy Allison1998-07-091-39/+242
| | | | Jeremy.
* NT SMB trans reply code.Jeremy Allison1998-07-092-74/+291
| | | | Jeremy.
* Implementing more NT SMB functionality.Jeremy Allison1998-07-081-82/+332
| | | | Jeremy.
* password.c: Fixes to allow Win95 clients to have lm encrypted passwordsJeremy Allison1998-07-061-2/+5
| | | | | | | | | recognised. lib/rpc/client/cli_login.c: Fix debug comment. lib/rpc/parse/parse_misc.c: Fix for passing null pointers. lib/rpc/parse/parse_net.c: Send correct password lengths when called from Win95. Jeremy.
* nttrans.c: More NT SMB stuff.Jeremy Allison1998-07-021-2/+2
| | | | | | | shmem_sysv.c: Fix for shared memory problems on several systems, Second and subsequent use of shmget should use zero as the size. Fix from Veselin Terzic <vterzic@systems.DHL.COM> Jeremy.
* chgpasswd.c: Fix from Peter Debus <pdebus@turing.une.edu.au> for Digital UNIXJeremy Allison1998-07-022-42/+53
| | | | | | | password change core dump bug. nmbd_subnetdb.c: Make namelist_entry_compare() static. nttrans.c: More NT SMB stuff. Jeremy.
* includes.h: AIX fix.Jeremy Allison1998-07-012-28/+109
| | | | | | | | | nttrans.c: More NT SMB work. smb.h: More NT SMB defines. trans2.c: Change call response as I now have docs on what the flags mean. #ifdef it with JRATEST until I'm sure it's ok though. Jeremy.
* nttrans.c: More code towards NT protocol.Jeremy Allison1998-06-301-13/+91
| | | | | | smb.h: More code towards NT protocol. time.c: Fix for sco bug. Jeremy.
* Added SSL support from Christian Starkjohann <cs@obdev.at>Jeremy Allison1998-06-162-0/+291
| | | | | | | This patch may not yet compile with -DUSE_SSL enabled, further Makefile changes may be needed. But it was important to get this code in place before I go off to USENIX. Jeremy.
* client.c: Made -L do a null-session share unless -U user is specified.Jeremy Allison1998-06-151-0/+34
| | | | | | clientutil.c: Fixed NT session to add NT password. groupname.c: Added lookup function. Jeremy.
* Makefile:Jeremy Allison1998-06-151-8/+20
| | | | | | | smbumount.c: Added fixes to compile under Linux. includes.h: Added SunOS 4.x QSORT_CAST fix. reply.c: Fixed user name mapping function for security=server, security=domain. Jeremy.
* Makefile: Added ubi_sLinkList.o as the groupname.o file needs it. Added ↵Jeremy Allison1998-06-131-1/+1
| | | | | | | | | | | | | | | groupname.o includes.h: Added ubi_sLinkList.h include. loadparm.c: Added groupname map parameter. password.c: Fix HPUX big_crypt. username.c: New user_in_list() code. Moved groupname map code to groupname.c lib/rpc/server/srv_util.c: Added lookup_wellknown_sid_from_name(). New groupname map stuff. Note that nothing currently uses this but at compiles ok. Jeremy.
* Groupname mapping code now lives here.Jeremy Allison1998-06-131-0/+204
| | | | Jeremy.
* ipc.c: map_username is now a BOOL function.Jeremy Allison1998-06-123-33/+47
| | | | | | | | | | | reply.c: map_username is now a BOOL function. server.c: Added capability to do map_username on service names when looking for a home directory. That's what the original code would do. lib/rpc/server/srv_util.c: Changed domain_ to builtin_ for BUILTIN aliases. username.c: Work in progress on groupname map parameter. Jeremy
* Minor changes as I've now discovered gcc -pedantic-errors. ThisJeremy Allison1998-06-101-2/+1
| | | | | does the signed/unsigned warnings I've been missing. Jeremy
* De-coupled the mapping of a Windows to UNIX username from the Get_PwnamJeremy Allison1998-06-102-3/+64
| | | | | | | | | | | | username case conversion wrapper. It is now (very) explicit where we are mapping between an incoming Windows username, and when we are doing a UNIX password entry lookup, which may change the case of the given username. This makes things *much* clearer (IMHO:-) and will ease the adding of the 'groupname map' parameter, and the addition of the special 'jeremy' mode for Samba where unix users will not be needed. (We must think of a better name for it :-). Jeremy.
* client.c: Allowed client to proceed even if it gets error 234 (more dataJeremy Allison1998-06-041-6/+5
| | | | | | | available) when scanning server/workgroup/share lists. ipc.c: Removed redundent definition of ERROR_MORE_DATA (234) we already have ERRmoredata in smb.h Jeremy.