summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
* | sync with tpot's change to gencache_get() in HEADGerald Carter2003-01-241-22/+31
| |
* | masking an assert error in Tim's wins server checking code; needs a proper ↵Gerald Carter2003-01-241-0/+11
| | | | | | | | fix after I talk to tpot
* | Memory leak fix from Leo Qiu <leoxqiu@yahoo.com>.Jeremy Allison2003-01-241-1/+4
| | | | | | | | Jeremy.
* | merging [un]signed declarationGerald Carter2003-01-241-1/+1
| |
* | Merge of wins server dead list into gencache.tdbTim Potter2003-01-221-60/+54
| |
* | Janitorial duty...Jeremy Allison2003-01-171-4/+8
| | | | | | | | | | | | fix some undefined behaviour with increments in C. In theory a compiler could have produced complete crap for this code. (tridge). Jeremy.
* | Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.Jeremy Allison2003-01-161-2/+4
| | | | | | | | Jeremy.
* | Remove a wayward file.Richard Sharpe2003-01-151-281/+0
| |
* | *lots of small merges form HEADGerald Carter2003-01-152-86/+18
| | | | | | | | | | | | *sync up configure.in *don't build torture tools in make all *make sure to remove torture tools as part of make clean
* | Merge from HEAD:Andrew Bartlett2003-01-141-2/+0
| | | | | | | | | | | | | | | | - remove useless #else - signed/unsigned fixes - use an fstring for LM hash buffer. Andrew Bartlett
* | Don't touch data after a free.Jeremy Allison2003-01-131-1/+0
| | | | | | | | Jeremy.
* | More janitorial duties. Pulling these in from samba-head.Richard Sharpe2003-01-131-0/+281
| |
* | Added new message_send_pid() code that uses tdb append to reduce lockingJeremy Allison2003-01-111-54/+55
| | | | | | | | | | contention on the messaging tdb. Jeremy.
* | First part of efficiency fixes for message sending to pid's (cutting downJeremy Allison2003-01-101-48/+95
| | | | | | | | | | | | | | | | the amount of time we hold tdb locks). Gulp down all messages at once rather than reading/re-writing one at a time. NOTE: All dispatch routines *must* be able to cope with incoming message on *odd* byte boundaries (all current handlers do). Jeremy.
* | Merge from HEAD - whitespace :-)Andrew Bartlett2003-01-042-1/+1
| |
* | Merge from HEAD - baseless parinoia about never having a closed dbf (the debugAndrew Bartlett2003-01-041-2/+4
| | | | | | | | | | | | file pointer). Andrew Bartlett
* | Merge from HEAD - mimir's new gencache based namecache code.Andrew Bartlett2003-01-042-13/+164
| | | | | | | | Andrew Bartlett
* | patch to include support for daemontools from Michael HandlerGerald Carter2003-01-032-3/+7
| |
* | Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-0312-26/+27
| | | | | | | | | | | | warnings. (Adds a lot of const). Andrew Bartlett
* | Merge from HEAD - add PRINTF_ATTRIBUTE to a few more functions.Andrew Bartlett2003-01-035-7/+7
| |
* | Merge from HEAD - tridge's new timegm() that actually works on solaris.Andrew Bartlett2003-01-031-18/+15
| | | | | | | | Andrew Bartlett
* | Finish adding strings to all talloc_init() calls.Jeremy Allison2002-12-231-1/+0
| | | | | | | | Jeremy.
* | talloc_init_named -> talloc_init.Jeremy Allison2002-12-221-1/+1
| | | | | | | | Jeremy.
* | Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-202-4/+4
| | | | | | | | | | named. Ensure we can query them. Jeremy.
* | merge from 2.2Herb Lewis2002-12-191-0/+2
| | | | | | | | actually print args for %g and %e
* | The name pointer in the talloc context must not be a talloced entry asJeremy Allison2002-12-141-2/+13
| | | | | | | | | | calling talloc_destroy_pool(as we do sometimes) will destroy it. Jeremy.
* | Fixed auth module code. Added VALGRIND defines to reduce spurious warnings.Jeremy Allison2002-12-112-0/+13
| | | | | | | | Jeremy.
* | The _abs time functions should not be converting from/to GMT.Jeremy Allison2002-12-101-18/+11
| | | | | | | | | | Patch from "Jordan Russell" <jr-list-samba-technical@quo.to> Jeremy.
* | Ensure global_scope() returns "", not the NULL string. Froma tpot fix.Jeremy Allison2002-12-061-0/+6
| | | | | | | | Jeremy.
* | fns for retrieving dns host name and domain name (get rid of lp_realm hacks).Jim McDonough2002-12-031-0/+56
| |
* | Merge from HEAD, struct in_addr is always in network byte order, so we don'tAndrew Bartlett2002-12-011-5/+0
| | | | | | | | need a little-endian case here.
* | Merge a bunch of trivial changes from HEAD. The difference remainingTim Potter2002-11-291-1/+1
| | | | | | | | | | | | | | | | | | should actual functional differences between HEAD and 3.0. - Mostly reformatting - Removal of unecessary #include "smb.h" - Merge of dyn_DRIVERFILE removal - Silly bug fix for python code