summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* A small raft of changes, I will sync up with 1.9.18 also.Jeremy Allison1998-02-075-33/+53
| | | | | | | | | | | | | | | | | chgpasswd.c: Fixed typo in debug message. includes.h: Fix include for aix. kanji.c: Added cap_to_sj as inverse of sj_to_cap. loadparm.c: local.h: password.c: Added code for "networkstation user login" parameter. - patch from Rob Nielsen <ran@adc.com>. printing.c: Added further aix printing fixes. reply.c: Changed access time fetch to a function. trans2.c: Changed access time fetch to a function. time.c: Changed access time fetch to a function. server.c: Made NT redirector workaround final. util.c: Added debug for write_socket failing. Jeremy.
* server.c: Added fix where, if all the file entries are beingJeremy Allison1998-01-311-1/+57
| | | | | | | | | used, smbd tries to break an oplock to make room for another file entry. This works well with Windows 95 that seems to keep batch oplocks around for an arbitrarily long time. Also changed rlimit code to ask for MAX_OPEN_FILES + 10 (if allowed) as many systems use file descriptors for directory handles also. Jeremy.
* Makefile: Fix for OSF1 typo.Jeremy Allison1998-01-291-2/+2
| | | | | | | | | | | | asyncdns.c: Fixes that went into 1.9.18p2 - allow unclocking of sigterm. chgpasswd.c: char -> unsigned char fixes. includes.h: AIX fix to get prototype for inet_ntoa. local.h: Tune size of shared memory based on MAX_OPEN_FILES. nmbd_mynames.c: Fix for nmbd repeated refresh bug. nmbd_responserecordsdb.c: Fix for nmbd repeated refresh bug. nmbd_winsserver.c: Fix for multi-homed registration optimisation. smb.h: Moved default shared memory size to local.h Jeremy.
* Fix from Charles Hoch (hoch@hpl.hp.com). Whne there is no dataJeremy Allison1998-01-281-2/+4
| | | | | | | to send, setting the data alignment to a 4 byte boundary causes a few extra bytes to be sent. This seems to cause the NT redirector to *sometimes* fail. Jeremy.
* always align both the parameter and data bytes on a 4 byte boundary inAndrew Tridgell1998-01-251-8/+20
| | | | | | | | | | | trans2 responses. I'm not at all convinced this was causing problems, because observations of Win95 show that it produces totally non-aligned paramater bytes and 2 byte aligned data bytes. We were previously always producing 2 byte aligned data and parameter bytes so we already had "better" alignment than Win95. lets hope no clients rely on servers producing unaligned data or parameters!
* Added get_create_time() function to time.c.Jeremy Allison1998-01-242-7/+10
| | | | | | | This gets the minimum timestamp associated with a file. reply.c and trans2.c then return this as the create time. Designed to fix problems with VC++ and others. Jeremy.
* Changed code that truncates salt after 2 characters so that it becomesJeremy Allison1998-01-231-0/+3
| | | | | | | HPUX specific. This fixes a bug with FreeBSD md5 crypt implementation that needs all of the password characters. It seems better to make this an HPUX specific thing. Jeremy.
* nmbd.c, server.c: Added #ifndef MEM_MAN around code that sets the SIGUSR1Jeremy Allison1998-01-231-0/+5
| | | | | | and SIGUSR2 signals. This allows the MEM_MAN code to be compiled in and the memory debug feature to be used with SIGUSR1. Jeremy.
* This is *not* a big change (although it looks like one).Jeremy Allison1998-01-2215-18/+18
| | | | | | | This is merely updating the Copyright statements from 1997 to 1998. It's a once a year thing :-). NO OTHER CHANGES WERE MADE. Jeremy.
* printing.c: Bug fix for lpng reporting.Jeremy Allison1998-01-221-39/+67
| | | | | | server.c: Large fix for oplock deadlock bug. util.c: Fix for oplock deadlock bug. Jeremy.
* charcnv.c: Added codepage 866 support onto the file system. PatchJeremy Allison1998-01-173-4/+116
| | | | | | | | | | | | | from Max Khon <max@iclub.nsu.ru>. chgpasswd.c: Allow old RAP change password to work with encrypted passwords. Samba can now allow Windows 95/NT clients to securely change the Lanman password ! (But not the NT hash - that gets lost). ipc.c: smbdes.c: smbpass.c: Support for the above. server.c: #ifdef'ed out fix for NT redirector bug. util.c: Fix NIS bug with server name. Jeremy.
* reply.c:Jeremy Allison1998-01-162-14/+34
| | | | | | | server.c: Test fix for NT worstation SMBmv oplock bug. smbdes.c: Addition of 'forward' parameter in preparation of allowing password change. Jeremy.
* reply.c: Added timestamp to attack warning.Jeremy Allison1998-01-152-1/+3
| | | | | | server.c: Fixed security=share problem where the vuid was still being looked at. Jeremy.
* *** empty log message ***Andrew Tridgell1998-01-123-11/+33
|
* *** empty log message ***Andrew Tridgell1998-01-111-0/+5
|
* *** empty log message ***Andrew Tridgell1998-01-111-3/+3
|
* Following discussions with Cristian Gafton (Red Hat) we have decided to makeJohn Terpstra1998-01-101-2/+8
| | | | | | PAM silent about it's actions. This reduced error logging for EVERY password validation request. Refer to password.c PAM section for further info. Fiels Affected: password.c
* ipc.c: Fixed problem where we were not returning 'buffer too small'Jeremy Allison1998-01-101-2/+2
| | | | | when NT sends up a mdrcnt of zero. Jeremy.
* Fixed an apparent typo:Christopher R. Hertel1998-01-081-1/+1
| | | | | | | | 2551c2551 < #endif /NO_FORK_DEBUG */ --- > #endif /* NO_FORK_DEBUG */ Chris -)-----
* Ensure that if we are in share mode security that the smb_uidJeremy Allison1998-01-071-1/+2
| | | | | field is invalid. Jeremy.
* fix printer driver rpc to prevent core dumps.Herb Lewis1998-01-021-65/+73
|
* fixes to make_printerdef.c to generate a correct printers.def fileHerb Lewis1998-01-011-12/+37
| | | | changes to ipc.c to use new printers.def file
* Added SIGUSR1/SIGUSR2 handling.Jeremy Allison1997-12-241-1/+12
| | | | | | Sending nmbd/smbd a SIGUSR1 will raise the debug level by one (capped at 10) sending a SIGUSR2 will lower it (lower limit at zero). Jeremy.
* Fixed nastly little bug where client was sending open_and_X callJeremy Allison1997-12-231-4/+23
| | | | | | | | | | | | | | | | | | | with smb_mode (smb_vwv[3]) of 0x20 == DENY_WRITE + read-only-open. and smb_ofun (smb_vwv[8]) of 0x11 == Create if not exist plus append on a read-only share. This was mapped into the strange unix flags of (O_RDONLY|O_CREAT) - essentially O_CREAT as O_RDONLY == 0. We were checking the unix flags directly against O_RDONLY instead of masking off the open mode flag bits before doing the comparison, so this open was being refused even though it was valid on a read-only share. Also ensured that the O_CREAT bit was masked out of the flags bit if the open was done on a read-only share (as doing a unix open( filename, O_RDONLY|O_CREAT, xxx) will create a zero length file if the user had permission to write into the directory - which should be denied on a read-only share. Thanks to Mark Peek @ Whistle for giving me this test case. Jeremy.
* Fixed security bug when 'force user' and 'user only' are set.Jeremy Allison1997-12-231-2/+5
| | | | | Reported by Brian McCauley <B.A.McCauley@bham.ac.uk>. Jeremy.
* Fixes to compile under OpenBSD from "Todd T. Fries" <toddf@acm.org>Jeremy Allison1997-12-231-10/+10
| | | | Jeremy.
* loadparm.c: Added fix for veto oplock files bug from Charles Hoch ↵Jeremy Allison1997-12-201-0/+9
| | | | | | | | <hoch@hplcgh.hpl.hp.com> server.c, util.c: Added fix for oplock break requests blocking due to server being blocked in read call. Bug found by Charles Hoch <hoch@hplcgh.hpl.hp.com>. Jeremy.
* trans2.c: Forced trans2_findfirst to behave as NT does in error returns.Jeremy Allison1997-12-201-23/+9
| | | | | | util.c: Applied fix from Branko Cibej <branko.cibej@hermes.si> where StrnCaseCmp tests one character too many. Jeremy.
* give out file handles differently on each new connection because of aAndrew Tridgell1997-12-141-10/+29
| | | | | | common bug in MS clients where they try to reuse a file descriptor from an earlier smb connection. This code increases the chance that the errant client will get an error rather than causing corruption
* Fixed bug reported by Gert-Jan Vons <Gert-Jan.Vons@ocegr.fr>Jeremy Allison1997-12-121-0/+12
| | | | | with doing a dir /s into a unix directory ending in a ':'. Jeremy.
* allow local_machine and remote_machine (%L and %m macros) to containAndrew Tridgell1997-12-031-6/+2
| | | | spaces
* allow users to disable the NetWkstaUserLogon call in server levelAndrew Tridgell1997-12-031-0/+2
| | | | | security by changing a setting in local.h or adding it to their Makefile. See comment in local.h
* changing the comment in find_new_file() to say why a base of 1 is usedAndrew Tridgell1997-12-021-2/+1
|
* HPUX trusted systems need to use bigcrypt() not crypt()Andrew Tridgell1997-12-021-0/+4
|
* asyncdns.c: Removed warning when compiling with -DSYNC_DNS.Jeremy Allison1997-12-021-1/+3
| | | | | | | nameelect.c: Tidied up settings of work->ServerType when unbecoming things. nmbd.c: Fixed pidFile warning. server.c: Fixed pidFile warning. Jeremy.
* clientgen.c: Added cli_mv() (used in a recent torture test).Jeremy Allison1997-11-302-24/+58
| | | | | | | | | | reply.c: Changed reply_open_and_X to split out the oplock request bits from core and extended and if an oplock was granted only set the corresponding bit on reply. server.c: Added code to dynamically allocate i/o buffers in oplock_break (prevents recursion problems) , also made reset of sent_oplock_break explicit. Jeremy.
* use -1 not 0xffffffff in SIVALS() macrosAndrew Tridgell1997-11-291-4/+4
| | | | | use the same process_exists() code on all systems (it's probably faster anyway)
* added a sent_oplock_break element to Files[] as a paranoia check so weAndrew Tridgell1997-11-292-10/+24
| | | | | | | | | | | | | | | | can't sent a oplock break twice on the same file. changed some debug levels in the oplock code to level 0 so we can track down a bug zero the returned Files[] entry in find_free_file() don't try to overcome client bugs in the handling of non-encrypted passwords if in server level security mode added paranoid null termination of password buffers slight change to my ajt_panic() routine
* there was a bug in my oplock bugfix :-)Andrew Tridgell1997-11-281-3/+3
| | | | It's fixed properly now :-)
* fixed a very nasty oplock bug. We could send oplock break requests onAndrew Tridgell1997-11-281-3/+4
| | | | | | | | | files that aren't open if the file happened to close while the oplock was in transit. We would end up sending a oplock break request on another random file (actually the open file that happened to have the highest fnum). Then we wouldn't get a response, so smbd would keep sending and would actually flood the net with an infinite number of oplock break requests!
* added some debug lines to the rename codeAndrew Tridgell1997-11-201-4/+13
|
* ipc.c: Changed reply_trans to use receive_next_smb() to copeJeremy Allison1997-11-184-8/+59
| | | | | | | | with local message processing. reply.c: Added check to reply_lockingX for chain after oplock break. server.c: Added receive_next_smb(). trans2.c: Changed reply_trans2 to use receive_next_smb() to cope with local message processing.
* loadparm.c : Added "veto oplock files" parameter.Jeremy Allison1997-11-172-5/+18
| | | | | | | | make_printerdef.c: Fixed warning. quotas.c: Fixed irix root errors. server.c: Fixed oplock reference count bug. smb.h: Added IS_VETO_OPLOCK_PATH(). Jeremy.
* Left global_oplock_break set while request to break oplock isJeremy Allison1997-11-111-4/+5
| | | | | | outstanding to client. Done to allay Andrews' fears about readbraw crossing on the wire :-). Jeremy.
* auto-create the locks directory on startupAndrew Tridgell1997-11-111-0/+4
|
* Rolled back tree state to 11:59pm 8th November 1997 EST toJeremy Allison1997-11-103-110/+212
| | | | | remove problems. Jeremy
* attempting to mark up 32 bit error codes, needed for NT domains.Luke Leighton1997-11-093-212/+110
| | | | | | | | | | | | separated out smb server-mode password validation into a separate file. added called and calling netbios names to client gen state: referenced section in rfc1002.txt. created workstation trust account checking code in ntclient.c there might be a bug in reply_session_setup_andX. i indented and added { } around single-line if statements: the lm password checking code now doesn't look right (around the GUEST_SESSSETUP bits). *no code semantics have been changed by the indentation process*.
* ipc.c :Luke Leighton1997-11-072-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added a #define around the alignment thing: it's a way to stop NetMonitor from decoding your packets!!!! proto.h : usual. reply.c : added what i believe to be the correct error messages for getting correct domain joining. smb.h : some guesses at good names of the SAMR_XXXX functions. sorting out the SAMR_LOOKUP_RIDS function. this is *not* the same as the LSA_LOOKUP_RIDS function, unless paul accidentally put it on the ntlsa pipe by mistake, instead of the samr pipe :-) rpc_pipes/lsa_hnd.c rpc_pipes/pipe_hnd.c : moved creation and allocation of unique policy handles into this module. rpc_pipes/pipesamr.c rpc_pipes/samrparse.c rpc_pipes/smbparse.c : SAMR_LOOKUP_RIDS is beginning to look _suspiciously_ like the LSA_LOOKUP_RIDS function. but i know that there are subtle discrepancies.
* Modified Files:Christopher R. Hertel1997-11-072-242/+317
| | | | | | | | | | | | | | | | | | | | | | | | mangle.c server.c proto.h mangle.c I am planning to replace the mangled_stack array with a proper stack, but found many style inconsistencies (no, really). As you might expect, I have standardized on my own preferences. ;) I also found a potential problem in create_mangled_stack (which I've renamed as reset_mangled_stack). If the stack size were passed into the function as 0 or less, there was the possibility that the array would have been freed twice. I doubt that this ever happens, but I don't like to leave holes. Of course, the fix will be irrelevent once I replace the array with a linked-list-based stack. server.c Changed the call to create_mangled_stack() to a call to reset_mangled_stack(). proto.h Regenerated to match the above changes. (A real comment! How unusual!)
* ipc.c: Changing back arbitrary alignment change until I know *why*Jeremy Allison1997-11-062-2/+2
| | | | | | | | luke changed it. proto.h: The usual. uid.c: Fix crash bug when attaching with smbclient -mCORE. A vuid pointer was being used when it was null. Jeremy.