summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* ldb: change version to 1.1.3 after pyldb changesldb-1.1.3Stefan Metzmacher2011-10-103-1/+259
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 10 14:24:25 CEST 2011 on sn-devel-104
* Revert "ldb: support raw OIDs in control string parsing"Stefan Metzmacher2011-10-072-19/+0
| | | | | | | | This reverts commit ea41860d32d38448e08cefd79d30ee1150317a9e. This is not needed, because we already have the 'local_oid' magic. metze
* ldb/ldb_controls: allow oid up to 255 charsStefan Metzmacher2011-10-071-1/+1
| | | | | | We have char oid[256], so allow sscanf() to consume 255 chars. metze
* uid_wrapper: Add uwrap_setresuid().Andreas Schneider2011-10-072-0/+17
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Fri Oct 7 12:04:05 CEST 2011 on sn-devel-104
* uid_wrapper: Add uwrap_setregid().Andreas Schneider2011-10-072-0/+17
|
* uid_wrapper: Add uwrap_setreuid().Andreas Schneider2011-10-072-0/+17
|
* build: Reduce build systems to just top level waf and autoconfAndrew Bartlett2011-10-071-7/+6
| | | | | | | | | The s3-waf build system is a key component of the top level build, but with this commit is is no longer available directly. This reduces the number of build system combinations in master as we prepare for the Samba 4.0 release. Andrew Bartlett
* s3: Use the uid_wrapperVolker Lendecke2011-10-061-0/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org>
* uid_wrapper: We have talloc_array_length, no need for an explicit lengthVolker Lendecke2011-10-061-9/+9
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* lib/util: consolidate module loadingAndrew Bartlett2011-10-062-32/+36
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Oct 6 08:52:30 CEST 2011 on sn-devel-104
* modules: standardise on samba_init_module as the hook symbol to resolveAndrew Bartlett2011-10-062-4/+4
|
* lib/util: Use only init_module_fn typedef in module loadingAndrew Bartlett2011-10-062-3/+2
|
* lib/util: Remove unused module loading functionsAndrew Bartlett2011-10-062-14/+2
|
* lib/util: consolidate module loading into common codeAndrew Bartlett2011-10-063-0/+314
| | | | | | This creates a samba-modules private libary that handles the details. Andrew Bartlett
* ldb: support raw OIDs in control string parsingAndrew Tridgell2011-10-062-0/+19
| | | | | | | this makes it possible to use a raw OID string on the command line or in python scripts Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: fixed memory leak in control string parsingAndrew Tridgell2011-10-061-0/+24
| | | | | | if parsing fails, free ctrl Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* lib/util: make sure panic action can attach a debugger on ubuntu (>=10.10)Stefan Metzmacher2011-10-041-0/+7
| | | | | | | | By default user processes can't attach a debugger to a process. So explicitly allow that for all child processes, before calling the panic action script. metze
* s4-ldb: enable display of partialAttributeSet with --show-binaryAndrew Tridgell2011-10-042-1/+23
|
* testtools: Import new upstream snapshot.Jelmer Vernooij2011-10-0310-33/+597
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Oct 3 13:54:06 CEST 2011 on sn-devel-104
* socket_wrapper: correctly handle dup()/dup2() ref countingStefan Metzmacher2011-09-291-85/+81
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 29 13:13:56 CEST 2011 on sn-devel-104
* socket_wrapper: pass down the fd explictly from the swrap_*() to the ↵Stefan Metzmacher2011-09-291-10/+11
| | | | | | real_*() calls metze
* addns: Remove unused empty header fileKai Blin2011-09-251-30/+0
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Sun Sep 25 09:15:09 CEST 2011 on sn-devel-104
* net: Don't register link local addresses with DNSKai Blin2011-09-242-0/+24
|
* addns: Allow creating AAAA records during updatesKai Blin2011-09-242-4/+60
|
* build: Fix waf build on MacOS XAndrew Bartlett2011-09-231-1/+1
| | | | | | | | | | | The -framework CoreFoundation is required by the charset_macosxfs module The system/time.h header is required to access the replacement clock_gettime() Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Sep 23 10:58:02 CEST 2011 on sn-devel-104
* build: avoid util.h as a public header name due to conflict with MacOSAndrew Bartlett2011-09-237-7/+7
|
* lib/util: move some timespec helpers from source3 to the toplevelStefan Metzmacher2011-09-232-0/+127
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Sep 23 00:15:31 CEST 2011 on sn-devel-104
* tdb2: change --enable-tdb2-breaks-compat to --enable-tdb2Rusty Russell2011-09-211-2/+2
| | | | | | | | | Since we no longer break compatibility, don't scare people. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Sep 21 09:25:11 CEST 2011 on sn-devel-104
* tdb_compat: add "TDB_COMPAT_USE_TDB2" environment variableRusty Russell2011-09-211-0/+4
| | | | | | | | | | | | When BUILD_TDB2 is defined, add TDB_VERSION1 flag to all tdb_open() calls, unless this flag is set. This means we use the tdb1 on-disk format unless the user specifically asks for tdb2. We'd love to do this using loadparm, but we need to work with both Samba 3 and Samba 4's loadparm, and they're not unified yet. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat: honour hashsize arg when using tdb2 with TDB_VERSION1 flag.Rusty Russell2011-09-212-3/+10
| | | | | | | We use the TDB_ATTRIBUTE_TDB1_HASHSIZE to set the hash size. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat: handle TDB_VOLATILE flag.Rusty Russell2011-09-212-2/+12
| | | | | | | | | This is only meaningful when using the TDB_VERSION1 flag: we set the attribute to control the maximum number of dead records (to 5, which is what TDB_VOLATILE did for tdb1). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat: handle TDB_INCOMPATIBLE_HASH flag.Rusty Russell2011-09-212-2/+12
| | | | | | | | | This is only meaningful when using the TDB_VERSION1 flag: it is done by using a magic hash value (which will fall back to the default hash if that works instead). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: allow readonly changes even while holding locks.Rusty Russell2011-09-201-10/+0
| | | | | | | | | | | | | | This happens in SAMBA with the TDB_VERSION1, presumably due to a read-only traverse nested inside a normal traverse (since it doesn't occur without TDB_VERSION1). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 24e5ddb143fb5e79112649472258f5da67cc7362) Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue Sep 20 09:35:10 CEST 2011 on sn-devel-104
* lib/util/charset: remove charset module loadingAndrew Bartlett2011-09-209-172/+105
| | | | | | | | | | | | | Now that the 'table' modules are gone, there is no reason for there to be charset modules at all. This builds the macosxfs and weird modules into the binary at the appropriate times, and changes the tests to test instead the difference between the remaining internal handlers and iconv(). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Sep 20 06:27:06 CEST 2011 on sn-devel-104
* lib/util/charcnv: Remove broken internal CP850 and CP464 modulesAndrew Bartlett2011-09-204-364/+0
| | | | | | | | These modules are now known to be faulty, and Samba 3.6.0 didn't include support for them, so we now require a system iconv if you wish to support these character sets for the non-ASCII range. Andrew Bartlett
* ldb:"ldb_extended" -make the call more similar to "ldb_search"Matthias Dieter Wallnöfer2011-09-191-2/+6
| | | | | | For example NULL out the LDB result pointer on failures. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* swrap: Fix a c++ warningVolker Lendecke2011-09-181-1/+2
|
* pyldb: Drop unnecessary dependency on pytalloc-util.Jelmer Vernooij2011-09-182-2/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Sep 18 17:23:40 CEST 2011 on sn-devel-104
* talloc: change version to 2.0.7talloc-2.0.7Stefan Metzmacher2011-09-153-1/+69
| | | | | | | | | | The version change is needed because the ABI file of the pytalloc code was fixed. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 22:32:59 CEST 2011 on sn-devel-104
* tdb2: remove bogus leftover .orig file.Rusty Russell2011-09-141-618/+0
| | | | | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Sep 14 06:06:41 CEST 2011 on sn-devel-104
* tdb_compat: change offset of CLEAR_IF_FIRST lock.Rusty Russell2011-09-141-2/+2
| | | | | | | | | | This makes it match tdb1, which mean it will Just Work as TDB2 gets tdb1 format support. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Sep 14 02:21:29 CEST 2011 on sn-devel-104
* tdb_compat: support tdb_reopen/tdb_reopen_all for TDB2Rusty Russell2011-09-142-3/+49
| | | | | | | | This matters with the clear-if-first support: we need to re-establish those locks at this point. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: fix prototypes which return enum TDB_ERROR.Rusty Russell2011-09-142-10/+10
| | | | | | | | | | Since enums and ints are compatible in C, the compiler didn't warn that our prototypes for these functions disagreed with the definitions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 6d3832ee613adeb9ae7ed6454996ffa39c32650f)
* tdb2: fix return handling in pytdb wrapper.Rusty Russell2011-09-141-8/+10
| | | | | | | | tdb_close() does genuinely return non-zero, not an error code, even in tdb2. And tdb_exists() returns true or false, not an error code. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: add error conversion functions.Rusty Russell2011-09-1412-91/+97
| | | | | | | | | | This clarifies the code a little, but also provides a more explicit mechanism which can be used to debug error handling (by introducing tdb_err_t and making it a pointer type). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit afa6d57b7d93fe4675a952f556eb462951baa257)
* tdb2: set tdb_error() on tdb_transaction_prepare_commit.Rusty Russell2011-09-141-1/+1
| | | | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit feb36b14278b4230af70dab90369a345b6a027ef)
* tdb2: make tests work in parallel.Rusty Russell2011-09-146-6/+6
| | | | | | | | Lazy cut & paste of tdb names causes failure when we run in parallel. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 380372e733416c2b348d5307f536d0a0807e95df)
* tdb2: fix error handling for tdb1_transaction_commit.Rusty Russell2011-09-141-1/+2
| | | | | | | | | tdb_repack() returns an enum TDB_ERROR, whereas tdb1_transaction_commit is expected to return 0 or -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit b679512e4260b9847e2f846b07443e6907d8276f)
* tdb2: don't return -1 (ie. TDB_ERR_CORRUPT) on transaction write fail.Rusty Russell2011-09-141-1/+1
| | | | | | | | A left-over -1 return; should be returning ecode (probably TDB_ERR_IO). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 077bdae6877d26749987b26a1b5b28cdba5ebbdd)
* tdb2: enhance tdb1 porting document.Rusty Russell2011-09-141-0/+28
| | | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 9cbae0f976118472f0065eee674eacf6ab4b80c5)