summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Add initial vesion of new module systemJelmer Vernooij2002-10-301-0/+63
|
* Fix bug in '-d'Jelmer Vernooij2002-10-261-1/+1
|
* First cut of new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.Jeremy Allison2002-10-231-92/+108
| | | | | | | 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.
* reverted an incorrect fix. What I was trying to do was fix a problemAndrew Tridgell2002-10-211-1/+1
| | | | | | | with filenames with spaces in mangle_hash.c but the real problem is that mangle_hash.c assumes that the set of valid characters for 8.3 names is the same as the set of valid characters for long names. Thats an invalid assumption, with space being the obvious example.
* a space is a standard valid character in a filenameAndrew Tridgell2002-10-211-1/+1
|
* Bugfix for pidfile_create() from Kelledin.Tim Potter2002-10-211-1/+1
|
* It seems that I'm meant to be using the helper function here, not the structAndrew Bartlett2002-10-181-1/+1
| | | | | | directly... Andrew Bartlett
* Format objectGUIDs on ads dumps.Jim McDonough2002-10-181-4/+35
|
* Start to merge the new ACL mapping code from Andreas Gruenbacher ↵Jeremy Allison2002-10-181-38/+68
| | | | | | <agruen@suse.de>. Jeremy.
* Nice *big* patch from metze.Andrew Bartlett2002-10-121-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* try to put every security descriptors related definitions in the same file.Simo Sorce2002-10-062-14/+30
| | | | | | also try to uniform names to a clean scheme. first part.
* Add more common options to popt_common - and start usingJelmer Vernooij2002-10-051-6/+54
| | | | the ones for debuglevel and configuration file in pdbedit
* Add a timeout to tdb_lock_bystring(). Ensure we never have more thanJeremy Allison2002-10-041-1/+1
| | | | | MAX_PRINT_JOBS in a queue. Jeremy.
* Remove useless spaces - this broke make protoJelmer Vernooij2002-10-041-1/+1
|
* Another patch from Steve Langasek <vorlon@netexpress.net>, again from theAndrew Bartlett2002-10-032-6/+6
| | | | | | | | | | | | Debian patchset. The idea is to still allow DNS domains to be specified in 'hosts allow' and 'hosts deny' without making the admin set 'hostname lookups' in their smb.conf. His concern is about upgrades. This has been designed not to change the value of %M. Andrew Bartlett
* Added const. Anal formatting fixup.Jeremy Allison2002-10-021-175/+222
| | | | Jeremy.
* Fix Solaris sendfile detection. Add small fixes to sendfile code.Jeremy Allison2002-10-011-3/+2
| | | | Jeremy.
* Added Solaris sendfile patch + configure tests from Pierre Belanger ↵Jeremy Allison2002-09-301-3/+84
| | | | | | <belanger@yahoo.com>. Jeremy.
* Don't zero out numwritten before using.... Found by Pierre Belanger ↵Jeremy Allison2002-09-301-2/+2
| | | | | | belanger@pobox.com Jeremy.
* Fix the compile issue in bin/samtest, and make the 'system' token just have theAndrew Bartlett2002-09-301-5/+2
| | | | | System sid. This avoids comparing with ACEs that we don't yet support in the ADS Domain security descriptor.
* Remove sam/api.c.Andrew Bartlett2002-09-291-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | In order to reduce complexity, this patch removes the upper layer of the SAM API. Also, we remove the function pointers on the sam context - there really is no point making these replaceable - that's for the modules. Move a number of functions in include/interface.c around to allow for use of 'static' and to keep the external API in one chunk, at the bottem. All these functions were renamed to remove the context_sam -> sam Consequential changes in the samtest module, and back out metze's change for ACB filtering, becouse I think it belongs in the SAM backeds. (But I will take debate on this one). Changes to the lib/util_sid.c code to create a 'system' token, and make it a SAM_ASSERT() enforced requirement to have a token on those calls that specify it. samtest now uses this. We should have a samtest call to set your own token. We also need to extend our se_access code to cover the things that Win2k is returning in it's access tokens. Currently our system token doesn't pass, due to unexpected flags. (When running sam_ads against Win2k) Andrew Bartlett
* Add const.Andrew Bartlett2002-09-281-1/+1
|
* Add const.Andrew Bartlett2002-09-281-4/+4
|
* Vance picked up a pile of typos etc at the CIFS confernce, and finally got themAndrew Bartlett2002-09-271-8/+8
| | | | | | off his laptop :-) Andrew Bartlett
* Some small cleanups to the libads code (mainly error checking), and give aAndrew Bartlett2002-09-271-2/+2
| | | | | | sane prototype for the push_utf8_allocate code. Andrew Bartlett
* Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de> to do a *much*Andrew Bartlett2002-09-261-2/+12
| | | | | | | | | | | | better job of working with usrmgr. Previously we were blanking out entires, and all sort of mischif. The new patch (which I've now had a chance to test/modify) also takes care not to expand % values (ie we go \\%L\%U -> \\server\user, we don't want to store \\server\user back) and to correctly notice 'not set' compared to 'null string' etc. Andrew Bartlett
* Kill of Get_Pwnam_Modify and smb_getpwnam(). The latter assumes some thingsAndrew Bartlett2002-09-251-57/+0
| | | | | | | | 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
* Merge of "profile acls" code.Jeremy Allison2002-09-251-2/+7
| | | | Jeremy.
* Merge back Richard's FreeBSD sendfile fixes.Jeremy Allison2002-09-211-5/+5
| | | | Jeremy.
* HPUX sendfile is now detected correctly.Jeremy Allison2002-09-181-1/+2
| | | | Jeremy.
* Never, *ever* hold a mutex lock in the message database where there mayJeremy Allison2002-09-172-72/+2
| | | | | | | be traversals being attempted. Yes, this was from bitter experience (and an out of control server :-). Also allow callers to break out of a tdb_chainlock with sigalarm if desired. Jeremy.
* Actually use sendfile if selected.Jeremy Allison2002-09-171-2/+2
| | | | Jeremy.
* Attempt to make broken Linux sendfile work.... Still in progress.Jeremy Allison2002-09-171-7/+17
| | | | Jeremy.
* Put unixsocket calls between #ifdef HAVE_UNIXSOCKET's - required for Stratus VOSJelmer Vernooij2002-09-151-0/+5
| | | | (Double checked)
* Use HAVE_SENDFILE64, not SENDFILE64.Jeremy Allison2002-09-141-2/+5
| | | | Jeremy.
* Added fix for broken Linux (no sendfile64). When offset + count > 2GBJeremy Allison2002-09-141-0/+57
| | | | | then return ENOSYS and let the upper layer handle it. Jeremy
* Fixed up FreeBSD sendfile code - only Solaris left then I can add theJeremy Allison2002-09-121-22/+55
| | | | | configure tests... Jeremy.
* HPUX takes offset, not pointer to offset.Jeremy Allison2002-09-121-2/+2
| | | | Jeremy.
* Fixup sendfile to match HPUX semantics with signal interrups. This wasJeremy Allison2002-09-121-12/+52
| | | | | fiddly.... :-(. Jeremy.
* First cut at portable sendfile code. Only used in readX at the momentJeremy Allison2002-09-121-0/+158
| | | | | | | | and doesn't actually call sendfile. Needs to be vectored through the VFS and tested on all supported platforms (Solaris/HPUX/FreeBSD/Linux). Linux doesn't actually work (2.4.19 kernel) at the moment because it doesn't have a 64-bit clean sendfile. Jeremy.
* added gencache implementation from mimir - thanks!Andrew Tridgell2002-09-111-0/+319
|
* lowercase global_myname in %L substitutionHerb Lewis2002-09-091-2/+7
|
* configure.in:Simo Sorce2002-09-071-0/+13
| | | | | | | reflect the new example/VFS/ directory organization lib/substitue.c: added helper functions needed by recycle bin
* As per the 'OK' at CIFS2002, only use the readline headers (and this crasyAndrew Bartlett2002-09-061-0/+18
| | | | | | | | #ifdef mess...) in readline.c, we don't need or use them in the rest of Samba. (This OK was of course conditional on 'if you break it, you better fix it...') Andrew Bartlett
* patch from metze: add a 'vfs' debug classAndrew Bartlett2002-09-061-0/+1
|
* Add bcast_msg_flags to connection struct. Allows sender to filter whenJeremy Allison2002-09-041-3/+22
| | | | | | sending broadcast messages. Also initial cut-down of printing notify messages (not yet finished). Jeremy.
* Fix typo - Thanks KaiJelmer Vernooij2002-09-021-1/+1
|
* wrong way to handle things, bug found by kaiSimo Sorce2002-09-011-8/+6
|
* Add a bit of 'const' and move a lot of our 'repeditive' DEBUG() statements toAndrew Bartlett2002-08-312-53/+49
| | | | | | | | 'DEBUGADD', so we don't repeat headers. (Makes them much easier to read). (Based on patch by kai) Andrew Bartlett
* based on function prototype, the args were switched - this gave an errorHerb Lewis2002-08-301-1/+1
| | | | | on the IRIX compiler. could whoever put the FIXME message take a look and see if it is still broken.