summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* Makefile: Added cleandir target.Samba Release Account1997-02-233-14/+23
| | | | | | | | | | | | | | | chgpasswd.c: Added patch from Roland Haag <haag@think.de> to allow password changes to be done more than once. loadparm.c: Added entries for the "directory mode/directory mask parameters". Changed default file mode to 644. proto.h: Added sys_gethostbyname. server.c: Added directory mode changes. system.c: Added sys_gethostbyname. trans2.c: Added NT_FILE_ATTRIBUTE_NORMAL patch from Roger Orr <rorr@csfp.csfb.com> trans2.h: Defined NT_FILE_ATTRIBUTE_NORMAL for above patch. util.c: Changes calls to gethostbyname to sys_gethostbyname. jra@cygnus.com
* Fixed problem with renaming folder on top level share.Samba Release Account1997-02-181-15/+35
| | | | jra@cygnus.com
* Replaced YOST code with more functionally equivalent code thatSamba Release Account1997-02-114-28/+25
| | | | | changes a bit less. Also added fix to tricky reply_mv case. jra@cygnus.com
* Removed YOST code. Removal of leading ./ chars shouldSamba Release Account1997-02-101-20/+0
| | | | | be done in unix_clean_name in util.c jra@cygnus.com
* JHT ===> William Yost patches integrated to fix leading path on 8.3Samba Release Account1997-02-102-0/+25
| | | | | | | | | | | | | | | | | | filename problem. Problem conditions: case sensitive = no default case = lower mangle case = yes preserve case = yes short preserve case = yes Problem: Win95 still writes upper case file names. Patches supplied have been incorporated into mangle.c and server.c but needs YOSTW to be defined for it to take effect. Action: ======= If we are happy with the patch, delete old code in mangle.c, then remove all YOSTW #ifdefs.
* JHT ===> Fixed potential PAM Security hole and second chance syndromeSamba Release Account1997-02-041-0/+9
| | | | spurious warning message "Warning - no crypt available"
* Fixed my stupid typo in earlier fix.Samba Release Account1997-02-041-1/+1
| | | | jra@cygnus.com
* Fixed up problems with CDROM filesystems (return EROFS) andSamba Release Account1997-02-031-1/+9
| | | | | also compile issue with USE_MMAP code. jra@cygnus.com
* Fixed bug with NT and large directories.Samba Release Account1997-02-031-2/+2
| | | | jra@cygnus.com
* util.c: StrCaseCmp and StrnCaseCmp terminated incorrectly, giving falseSamba Release Account1997-02-021-4/+18
| | | | | | | | | | | | | | answers when a string was partially identical. this issue is still outstanding, and needs to be investigated further. loadparm.c: added lp_logon_path() parameter. ipc.c: in NetUserGetInfo, lp_logon_path() can be returned instead of always specifying \\SAMBA_SERVER\HOMES (which may not necessarily exist). it is now possible to specify lp_logon_path() as \\ARBITRARY_SERVER\%U, just like NT server can. the default is \\SAMBA_SERVER\HOMES, just like it used to be. lkcl
* line 1960 - call to atexit - address of higher order function killkidsSamba Release Account1997-02-021-1/+1
| | | | | | not needed (address already specified). lkcl
* Added fix for file descriptor re-use failing whenSamba Release Account1997-01-231-2/+2
| | | | | file_exists is false. Jeremy (jra@cygnus.com).
* locking.c proto.h shmem.c smb.h status.c :Samba Release Account1997-01-151-1/+1
| | | | | | | | Changed shm_ prefixes to smb_shm_ prefixes as shm_ is a POSIX.4 prefix. Updated fd code in FAST_SHARE_MODE code to work with new fd indirection. quotas.c: Fixed #ifdef not on position zero. Jeremy. (jra@cygnus.com).
* Added an extra parameter for unix_convert. If present this is theSamba Release Account1997-01-134-24/+87
| | | | | | | | | last component of the modified pathname before modification. This is needed due to an exceptional condition in reply_mv when the filesystem is case preserving, but not case sensitive and the user wants to change the case of a filename. Code for this is also added to reply.c Jeremy (jra@cygnus.com).
* Makefile: Changes to split Solaris into Solaris2.3 and previous, and 2.4 and ↵Samba Release Account1997-01-094-110/+368
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after from Paul Eggert. Makefile: Added AMIGA changes from Rask Ingemann Lambertsen <rask@k4315.kampsax.dtu.dk>. charset.c: Patch for Western European Languages from Josef Hinteregger <joehtg@joehtg.co.at> charset.h: Patch for Western European Languages from Josef Hinteregger <joehtg@joehtg.co.at> clitar.c: Patch to re-sync after read fail from (lost contributor name, sorry). includes.h: Patch for AMIGA from Rask Ingemann Lambertsen <rask@k4315.kampsax.dtu.dk> includes.h: Patch for SunOS atexit by Jeremy (jra@cygnus.com) interface.c: Patch for AMIGA from Rask Ingemann Lambertsen <rask@k4315.kampsax.dtu.dk> kanji.h: Patch for Western European Languages from Josef Hinteregger <joehtg@joehtg.co.at> locking.c: Patch to fix file locking from Jeremy (jra@cygnus.com) locking.c: Patch to add granularity of lock files to usec by Jeremy (jra@cygnus.com) pipes.c: Patch to fix file locking from Jeremy (jra@cygnus.com) proto.h: Patch to fix file locking from Jeremy (jra@cygnus.com) reply.c: Patch to fix file locking from Jeremy (jra@cygnus.com) server.c: Patch to fix file locking from Jeremy (jra@cygnus.com) server.c: Patch for FAST_SHARE_MODE fix from (lost contributor name, sorry). smb.h: Patch to fix file locking from Jeremy (jra@cygnus.com) smb.h: Patch to add granularity of lock files to usec by Jeremy (jra@cygnus.com) status.c: Patch to fix file locking from Jeremy (jra@cygnus.com) statuc.c: Patch to add granularity of lock files to usec by Jeremy (jra@cygnus.com) system.c: Patch for Western European Languages from Josef Hinteregger <joehtg@joehtg.co.at> trans2.c: Patch to fix file locking from Jeremy (jra@cygnus.com) trans2.c: Patch to fix volume name reported to Win95 from Jeremy (jra@cygnus.com) util.c: Patch for Western European Languages from Josef Hinteregger <joehtg@joehtg.co.at> util.c: Patch to fix client_name from continuously returning UNKNOWN (from various contributors). version.h: Update to 1.9.16p10.
* JHT ==> Added extensions for PAM (Pluggable Authentication Module) supportSamba Release Account1997-01-021-0/+102
| | | | | | for Linux and other little beasties that use PAM. Source: ftp.redhat.com/pub/Incoming/samba-1.9.16p9.src.rpm Originally from RedHat modifications to samba-1.9.15p8
* Added -f lockfile support.Samba Release Account1996-12-101-2/+58
| | | | jra@cygnus.com
* Fixed quota support for FreeBsd.Samba Release Account1996-12-101-4/+18
| | | | jra@cygnus.com
* Added in veto files parameter create by Whistle.Samba Release Account1996-12-101-0/+3
| | | | jra@cygnus.com
* Added Volkers fix for bundary condition. Needed as wordSamba Release Account1996-12-031-3/+6
| | | | | alignment wasn't being taken into account in space calculations.
* Set num_validated_users to zero if Realloc fails.Samba Release Account1996-11-091-0/+1
|
* Changed become_user to take a vuid as second arg.Samba Release Account1996-10-251-7/+7
| | | | | | Consistent with other changes to make smb_uid an index+offset into the validated_users table. jra@cygnus.com
* Modified all references to smb_uid to be vuid's.Samba Release Account1996-10-251-6/+7
| | | | jra@cygnus.com
* Modified all references to uid to vuid.Samba Release Account1996-10-251-26/+29
| | | | jra@cygnus.com
* Core of the changes for returning smb_uid's. smb_uid's are nowSamba Release Account1996-10-251-60/+57
| | | | | | | | | | | | | | | returned as an index plus offset into the valudated_users table. The offset (100) is added so that an smb_uid of zero becomes an invalid value. All access into the validated_users table are done by removing the offset and indexing into the table. Out of ranges return NULL. Causes accesses into the validated_users table to be more consistant and controlled. This change made due to the fact that the uid field is only 16 bits in the smb header and we need for this not to be a unix user id (which can ge 32 bits). jra@cygnus.com
* Changed definitions of prototypes to take uint16 vuid's notSamba Release Account1996-10-251-69/+69
| | | | | | | | int uid's. Part of the change for Samba to return an index+offset into the registered users table rather than a raw unix uid. Added casts to required prototypes for function pointers in tables. jra@cygnus.com
* - added support for TMPDIR env variableAndrew Tridgell1996-10-242-2/+2
| | | | | | - fixed fault.c for linux 2.1 - put back in the FIND_SELF failing code - cleaned up casts in encryption
* Jeremy <jra@cygnus.com>Samba Release Account1996-10-231-1/+1
| | | | | | | | Removed AS_USER requirement for SMBulogoff. A valid TID (cnum) is not given for this call, which become_user needs if it is not to return an error. This fixes a specific case with NT4.0 which stops users attaching to a Samba server using a different account to the one they are logged in under.
* - correctly handle non-encrypted share mode session-setup. We wereAndrew Tridgell1996-10-091-3/+7
| | | | | losing the username due to the recent "handle broken password lengths" patch.
* - revert to old idle dir code (marty pointed out a problem with theAndrew Tridgell1996-10-073-5/+10
| | | | | | | new code) - handle server level security in the new "detect NT password length stuffups" code
* - continue when failing to load config file in nmblookup and smbclientAndrew Tridgell1996-10-071-1/+1
| | | | | - fix important bug in nmbd where it set the return code for a negative name response to 0 (which means success!)
* - replace the base36 function with one that works on more systemsAndrew Tridgell1996-10-053-15/+28
| | | | | | | | | | | (compiler bugs were the problem) - minor password cleanups (catch WfWG bug where it sets the password to a space instead of a NULL) - fix printing problem for kanji users - minor cleanups
* I have fixed quite a few important bugs in this commit.Andrew Tridgell1996-10-054-22/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Luke, can you take special note of the bug fixes to nmbd so you can propogate them to your new code. - rewrote the code that used to use fromhost(). We now call gethostbyaddr() only if necessary and a maximum of once per connection. Calling gethostbyaddr() causes problems on some systems so avoiding it if possible is a good thing :-) - added the "fake oplocks" option. See the docs in smb.conf(5) and Speed.txt - fixed a serious bug in nmbd where it would try a DNS lookup on FIND_SELF queries. This caused a lot of unnecessary (and incorrect) DNS lookups to happen. FIND_SELF queries should only go to the internal name tables. - don't set FIND_SELF for name queries if we are a wins proxy, as we are supposed to be answering queries for other hosts. - fixed a bug in nmbd which had "if (search | FIND_LOCAL)" instead of "if (search & FIND_LOCAL)". Luke, this was in nameservreply.c - the above 3 bugs together meant that DNS queries were being cached, but the cache wasn't being used, so every query was going to DNS, no wonder nmbd has been chewing so much CPU time! Another side effect was that queries on names in lmhosts weren't being answered for bcast queries with "wins proxy" set. - ignore the maxxmit for seconday session setups (see CIFS spec) - close user opened files in a uLogoffX for user level security (see CIFS spec) - added uid into the files struct to support the above change
* - use workgroup from smb.conf in smbclientAndrew Tridgell1996-10-053-3/+9
| | | | | | | | | | | | | | | - change debug level on clitar stuff - define MAP_FILE if not defined - ensure we never set authoritative on queries in nmbd - fake a positive response to SMBioctl, apparently this is needed for some WfWg printer drivers - deny file access for non-fcbopen queries when (access_allowed == AREAD && flags == O_RDWR) - add sys_waitpid()
* - changed the umask handling. We now set the umask to 0 and explicitlyAndrew Tridgell1996-10-043-40/+152
| | | | | | | | | | | | | | | | | | | | | | | | set the mode on all created files. I think this is a better policy. - change the debug levels on some items - fix a charset handling bug which affected foreign and extended charset users - no longer switch back to the original directory when idle, instead switch to / as the original directory may not be readable by ordinary users. - fix some bugs where the create mode of files was not being explicitly set (it was relying on the umask and using fopen). Not a big bug as it only affected obscure commands like the messaging ops. - got rid of the lock code in the lpq cache as its no longer needed - rewrote smbrun to be faster and to remove the security hole. We now don't actually need a external smbrun binary, its all done by smbd. - add a more explicit warning about uids and gids of -1 or 65535
* - fix the EALREADY bug so connections to slow hosts with smbclient getAndrew Tridgell1996-10-021-18/+23
| | | | | | | through - add workarounds to handle the win95 and WinNT bugs in handling password lengths in sessionsetup
* backout all the changes to nmbd.Andrew Tridgell1996-10-024-73/+15
| | | | | The 1.9.16 tree is now back to 1.9.16p2 as far as nmbd is concerned apart from a small change that fixes the announce type in two places.
* - a huge pile of changes from Luke which implement the browse.confAndrew Tridgell1996-10-024-19/+77
| | | | | | | stuff and also fix a pile of nmbd bugs. Unfortunately I found it very hard to disentangle the new features from the bug fixes so I am putting in the new code. I hope this is the last big pile of changes to the 1.9.16 series!
* - accept either NT or lanman passwords in tconXAndrew Tridgell1996-10-021-10/+9
|
* added debug infoAndrew Tridgell1996-08-241-1/+1
|
* removed all of lukes recent changes. I need to do a p2 release butSamba Release Account1996-08-242-37/+3
| | | | | | | can't test the multi group changes. I also found that some of lukes changes wiped out some recent bug fixes. Is your CVS tree ok luke?
* fixed dircahe bugSamba Release Account1996-08-241-2/+2
|
* - fixed bugs in nmb response packet checking.Samba Release Account1996-08-232-3/+37
| | | | | | | - added multiple workgroup code - samba can register under different (unique) NetBIOS aliases, one per workgroup it joins. lkcl
* - add timeouts to connect() for password server connections. ThisAndrew Tridgell1996-08-221-1/+1
| | | | makes multiple password servers practical.
* - fix a bug handling readraw packets that caused the timeout to be 30Andrew Tridgell1996-08-212-2/+2
| | | | | milliseconds instead of 30 seconds as was intended. Thanks to Paul Nelson for finding this bug.
* handle sigpipe better for server securityAndrew Tridgell1996-08-211-0/+14
|
* JHT ==> Upgraded Samba to Windows NT Server version 4.1Samba Release Account1996-08-211-1/+1
| | | | | | Just to keep ahead of the pack. Note: Really only done to differntiate our version ID from existing SMB Servers.
* - new handling of ST_TYPE bits, they are now consolidated much more inAndrew Tridgell1996-08-211-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DFLT_SERVER_TYPE in nameserv.h - got rid of a lot of spurious domain controller stuff. Samba is not a domain controller yet, but it can be a domain master. We were claiming to be a domain controller in some packets which may have caused problems - don't do preferred master startups on the WINS pseudo-net - don't do election requests on the WINS pseudo-net - fix a nasty bug in become_non_master() which wiped out the bits in remove_type before using them. The result was that samba didn't like losing its master status. - changed the logic in the election packet handling to enable us to become a non-master whenever we receive a winning election frame, even if we aren't expecting it - get another packet from the socket in nmbd when we reject one of our own packets, this stops us from going into the packet reading code too often and makes nmbd much snappier - always remove a name immediately when we try to release it, don't wait for the lack of response from the network, otherwise we will end up replying to name that we don't really own. We still send the dereg packets, we just don't wait for them to time out.
* - fix a bug in NetServerEnum where counted and total were not countedAndrew Tridgell1996-08-203-47/+57
| | | | | | | | | | | | | | correctly if there were multiple instances of a name. This led to the infamous "not enough memory" error when browsing (but this isn't the only cause of that message) - fix a triple-chaining bug which affected OpenX following a TconX - fix a serious nmbd bug that meant nmdb would answer packets that it wasn't supposed to, causing havoc with browse lists. - never time out SELF packets. This is an interim fix until I find out why nmbd thought they should be timed out.
* fix a bug in the new chaining codeAndrew Tridgell1996-08-191-6/+10
|