summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed nasty bug where file writes with start offsets in the rangeJeremy Allison2002-12-033-23/+24
| | | | | | | | | | 0x80000000 -> 0xFFFFFFFF would fail as they were being cast from IVAL (uint32) to SMB_OFF_T (off_t or off64_t, both *signed* types). The sign extension would cause the offset to be treated as negative. Thanks to Herb for helping me track this one down (IRIX is good for large file tests :-). Jeremy. PS. That horrid EXEXIST thing has broken configure.....
* As per Jeremy's request back this out, so as to re-gain the implicit lengthAndrew Bartlett2002-12-011-7/+5
| | | | | | check. Andrew Bartlett
* No need for fstring manipulation here (Tcon&X), just use string pointers.Andrew Bartlett2002-12-011-5/+7
| | | | Andrew Bartlett
* Having waited for *way* too long, this is mimir's namecache and trusted domainAndrew Bartlett2002-11-261-0/+1
| | | | | | | | | | | | cache code. This uses gencache, mimir's new caching code that stores at text-based cache of various data. Mimir has done a *lot* of work on this patch, and it is finally time to get it in CVS. Andrew Bartlett
* a better for for using %U in smb.confAndrew Tridgell2002-11-192-3/+11
| | | | | this follows the method used for remote_machine and also fixes the problem of anonymous connections clobbering the string
* Very curious. It turns out attribute matching on truncate only mattersJeremy Allison2002-11-191-2/+2
| | | | | | when opening truncate with current SYSTEM|HIDDEN -> NONE. It's fine to truncate on open with current NONE -> SYSTEM | HIDDEN. Jeremy.
* the change in the way %U is handled to use current_user has brokenAndrew Tridgell2002-11-181-0/+3
| | | | | | | some basic usages like 'include = smb.conf.%U' This changes fixes things again, by checking for reload after we setup current_user in tconx.
* Add const to PACKS()Andrew Bartlett2002-11-151-2/+2
|
* small patch to makesure we fallback to <xfs/xqm.h> if <linux/xqm.h> doesn't ↵Jelmer Vernooij2002-11-131-0/+5
| | | | exist (e.g. in SuSE 8.1) (by metze)
* Load modules in lp_modules() after fork()Jelmer Vernooij2002-11-131-0/+4
|
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-1212-66/+44
| | | | | | dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy.
* Compleatly remove support for logfile truncation. All logs are opened forAndrew Bartlett2002-11-081-3/+0
| | | | | | | | append writes. (blessed by jra) Andrew Bartlett
* Make append_log work againJelmer Vernooij2002-11-071-0/+3
|
* Stop using hardcoded transact commandsJim McDonough2002-11-071-3/+3
|
* Merge of get_dc_list() api change. This was slightly more intrusiveTim Potter2002-11-061-11/+4
| | | | than the version in APPLIANCE so watch out for boogs.
* Ensure can_delete returns correct error code.Jeremy Allison2002-11-051-1/+4
| | | | Jeremy.
* Fix to correctly return NT_STATUS_DELETE_PENDING.Jeremy Allison2002-11-052-0/+4
| | | | Jeremy.
* Remove DRIVERFILE constant. It was removed with the old win95Tim Potter2002-11-051-1/+0
| | | | printer driver stuff.
* Handle -p correctlyJelmer Vernooij2002-11-041-1/+1
|
* Make IRIX happyJelmer Vernooij2002-11-041-3/+3
|
* Remove obsolete function usage and some unused variablesJelmer Vernooij2002-11-021-27/+1
|
* Convert to popt.Jelmer Vernooij2002-11-021-75/+23
| | | | Removed -o and -a options - these have been broken since 2.2 without complaints from users
* Fix slowdown because of enumerating all print queues on every smbd startup.Jeremy Allison2002-10-311-4/+7
| | | | Jeremy.
* Fix a nice little memory leak in our uid changing code.Andrew Bartlett2002-10-291-0/+2
| | | | Andrew Bartlett
* Fix fd leak with kernel change notify.Jeremy Allison2002-10-281-1/+1
| | | | Jeremy.
* First cut of new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.Jeremy Allison2002-10-235-108/+430
| | | | | | | This is not 100% the same as what SuSE shipped in their Samba, there is a crash bug fix, a race condition fix, and a few logic changes I'd like to discuss with Andreas. Added Andreas to (C) notices for posix_acls.c Jeremy.
* Fix for systems that allow more than 65536 open files per process.Jeremy Allison2002-10-221-1/+8
| | | | Jeremy.
* merge from samba_3_0Gerald Carter2002-10-212-225/+94
| | | | | | | | | | | removed the following parameters * postscript * printer driver * printer driver location * printer driver file also removed the get_a_printer_driver_9x_compatible() function
* This moves the group mapping API into the passdb backend.Volker Lendecke2002-10-211-1/+1
| | | | | | | | | | | | Currently this calls back to mapping.c, but we have the framework to get the information into LDAP and the passdb.tdb (should we? I think so..). This has received moderate testing with net rpc vampire and usrmgr. I found the add_groupmem segfault in add_aliasmem as well, but that will be another checkin. Volker
* add a 'mangle prefix' option to allow people to tune the number ofAndrew Tridgell2002-10-211-16/+41
| | | | | | | | | characters used in the prefix for 8.3 names in the hash2 algorithm. The longer the prefix the more readable the 8.3 names will be, but the weaker the hash. this was added because of someone complaining that the new hashing algorithm was unreadable but the old one was broken :)
* Added new error codes. Fix up connection code to retry in the same wayJeremy Allison2002-10-171-1/+1
| | | | | that app-head does. Jeremy.
* Change default of max_xmit to match W2K. Ensure NT negprot uses it.Jeremy Allison2002-10-151-1/+1
| | | | Jeremy.
* fixed a crash bug on 64 bit systems. Thanks to Anton Blanchard forAndrew Tridgell2002-10-151-4/+2
| | | | finding this.
* Nice *big* patch from metze.Andrew Bartlett2002-10-122-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The actual design change is relitivly small however: It all goes back to jerry's 'BOOL store', added to many of the elements in a SAM_ACCOUNT. This ensured that smb.conf defaults did not get 'fixed' into ldap. This was a great win for admins, and this patch follows in the same way. This patch extends the concept - we don't store values back into LDAP unless they have been changed. So if we read a value, but don't update it, or we read a value, find it's not there and use a default, we will not update ldap with that value. This reduced clutter in our LDAP DB, and makes it easier to change defaults later on. Metze's particular problem was that when we 'write back' an unchanged value, we would clear any muliple values in that feild. Now he can still have his mulitivalued 'uid' feild, without Samba changing it for *every* other operation. This also applies to many other attributes, and helps to eliminate a nasty race condition. (Time between get and set) This patch is big, and needs more testing, but metze has tested usrmgr, and I've fixed some pdbedit bugs, and tested domain joins, so it isn't compleatly flawed ;-). The same system will be introduced into the SAM code shortly, but this fixes bugs that people were coming across in production uses of Samba 3.0/HEAD, hence it's inclusion here. Andrew Bartlett
* Turns out with Win9x, we could occasionally return from unix_convert() givenJeremy Allison2002-10-111-0/+12
| | | | | | | | | a mangled name without a valid stat struct if the file existed. This would then cause open_file_shared1() to erroneously think the file open was new, thus not check for oplock break, thus causing a spurious EAGAIN reply to the open on a file we already had kernel oplocked.... (phew - that was fun to track down :-). Jeremy.
* Fix based on Jim McDonough's code for ACL inheritance problem.Jeremy Allison2002-10-081-9/+60
| | | | Jeremy.
* Fix from Andreas Gruenbacher <agruen@suse.de> to prevent ACL set on read-onlyJeremy Allison2002-10-071-0/+5
| | | | | share. Jeremy.
* Push Steve Langasek's fix ...Richard Sharpe2002-10-051-1/+1
|
* merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter2002-10-041-1/+1
| | | | from APP_HEAD
* Added ASCII art to make this clearer.Jeremy Allison2002-10-031-1/+73
| | | | Jeremy.
* Write cache bugfix from Rasmus Borup Hansen, system adm. Email: ↵Jeremy Allison2002-10-031-0/+13
| | | | | | rbh@math.ku.dk Jeremy.
* Metze claims that without this his win2k server gets horribly confused lookingAndrew Bartlett2002-09-251-2/+2
| | | | | | | | | for all sorts of AD things in lp_realm(). We need to get some non-Win2k NTLMSSP and chase this up a bit, but this will do for now. (Hmm, this might affect NTLMv2 as well) Andrew Bartlett
* Kill of Get_Pwnam_Modify and smb_getpwnam(). The latter assumes some thingsAndrew Bartlett2002-09-251-2/+2
| | | | | | | | that just don't apply any more - now that we always keep username and domain seperate. Also, the policy it was trying to permit is now implemented by the auth code. Andrew Bartlett
* Move to common user token debugging, and ensure we always print both theAndrew Bartlett2002-09-251-11/+2
| | | | | | | NT_TOKEN and the unix credentials - as we incresingly use the NT stuff we want to make it easy to check they don't get out of wack. Andrew Bartlett
* Merge of "profile acls" code.Jeremy Allison2002-09-251-2/+28
| | | | Jeremy.
* "@" is valid in NetBIOS domain names.Jeremy Allison2002-09-201-1/+1
| | | | Jeremy.
* change ADS negprot to match more closely the options used by w2k. ThisAndrew Tridgell2002-09-201-5/+3
| | | | affects the principal used and the order of SPNEGO OIDs
* Use sendfile in readbraw.Jeremy Allison2002-09-191-11/+56
| | | | Jeremy.
* Added "use sendfile" per share option.Jeremy Allison2002-09-181-1/+1
| | | | Jeremy.
* We had a race condition when changing a machine acount password as weJeremy Allison2002-09-181-0/+9
| | | | | were no longer locking the secrets entry. I saw this on a live system. Jeremy.