summaryrefslogtreecommitdiff
path: root/lib/ldb
AgeCommit message (Collapse)AuthorFilesLines
2012-07-31lib/ldb: Ensure rename target does not exist before deleting old recordAndrew Bartlett4-3/+301
This is all in a transaction, but when we are handling rename errors in the repl_meta_data module, we key off the error, and do not close the transaction. We found that the old record was gone and so could not try renaming it again to a conflict DN. Andrew Bartlett
2012-07-30ldb: Add parameter to avoid NULL format string flagged by -Werror=formatAndrew Bartlett1-1/+1
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Jul 30 15:48:53 CEST 2012 on sn-devel-104
2012-07-09lib/ldb: Bump ldb release due to pyldb changesAndrew Bartlett3-1/+261
We strictly need these changes to pass make test, and the concat change is backwards incompatible, so we really want to use the right version. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Jul 9 04:34:06 CEST 2012 on sn-devel-104
2012-07-06pyldb: Add bindings for ldb_dn_remove_base_componentsAndrew Bartlett2-0/+20
2012-07-06pyldb: Fix dn concat operation to be the other way aroundAndrew Bartlett2-2/+2
This now concatonates Dn(ldb, "cn=config") + Dn(ldb, "dc=samba,dc=org") as "cn=config,dc=samba,dc=org" Andrew Bartlett
2012-07-03ldb: bump version due to header and internal implementation changesAndrew Bartlett3-1/+261
We need this version, not the previous release, for Samba. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Jul 3 17:20:32 CEST 2012 on sn-devel-104
2012-06-29ccan: we're subsystems, not a library.Rusty Russell1-4/+1
Don't expose a libccan.so; it would produce clashes if someone else does the same thing. Unfortunately, if we just change it from a SAMBA_LIBRARY to a SAMBA_SUBSYSTEM, it doesn't create a static library as we'd like, but links all the object files in. This means we get many duplicates (eg. everyone gets a copy of tally, even though only ntdb wants it). So, the solution is twofold: 1) Make the ccan modules separate. 2) Make the ccan modules SAMBA_SUBSYSTEMs not SAMBA_LIBRARYs so we don't build shared libraries which we can't share. 3) Make the places which uses ccan explicit. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date(master): Fri Jun 29 06:22:44 CEST 2012 on sn-devel-104
2012-06-27lib/ldb: Print trace messages for modify correctlyAndrew Bartlett1-1/+1
2012-06-22ldb: lay foundation for proper utc/generalized time handlingMatthieu Patou3-5/+42
We use to handle UTCtime and generalized time the same way. The thing is that it's not the case, they are different in the way they are set (most of the time) with different format and also stored and return in different format too.
2012-06-22ldb: add the VERIFY_NAME controlMatthieu Patou2-0/+68
2012-06-19ldb: use tdb directly, not tdb_compat.Rusty Russell6-18/+20
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-06-19TDB2: make SAMBA use tdb1 again for the moment.Rusty Russell2-31/+0
Otherwise the following surgery will break the SAMBA build and testsuite. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-06-12ldb:tests: fix use of a non-existent word (existant)Michael Adam1-1/+1
2012-06-11pyldb: Ensure that the ldb argument is really an ldb before we dereferenceAndrew Bartlett1-0/+10
2012-06-11lib/ldb/tools: add missing "replace.h"Stefan Metzmacher4-0/+4
This has to be the first header! metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Jun 11 01:21:01 CEST 2012 on sn-devel-104
2012-04-18LDB:ldb_tdb/ldb_tdb.c - allow LDB modify replaces with different value orderingMatthias Dieter Wallnöfer1-3/+10
This is essential for fixing up wrong ordered "objectClass" attributes. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2012-04-18ldb: added ldb_msg_element_equal_ordered()Andrew Tridgell5-1/+286
this gives us a order sensitive msg element comparison. We need this to allow dbcheck to fix the order of objectClass attributes.
2012-04-11LDB:ldb_msg.c - add another OOM check in "ldb_msg_copy()"Matthias Dieter Wallnöfer1-0/+1
2012-04-10ldb-tools: Place the whole of an ldif file in a transactionAndrew Bartlett7-16/+136
This ensures that when operating ldbadd and ldbmodify against local ldb files, either an ldif file succeeds or fails as a whole. Also tests to verify that this is working correctly, and an ABI bump due to the extra (private, but exported to ldb* tools) symbol and behaviour change. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Apr 10 11:14:43 CEST 2012 on sn-devel-104
2012-04-10ldb: Allow access to the line number while reading ldif from a fileAndrew Bartlett5-7/+281
2012-04-10ldb: Detect failures in ldb.base againAndrew Bartlett3-4/+15
We need to wrap the ldb tests in the subunit blackbox helpers. We also needed to change to the right directory, or else the :< file:// syntax check does not work, as samba4.png is not found. Andrew Bartlett
2012-04-10Revert "ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl function"Andrew Bartlett8-28/+23
This reverts commit 40a4aea8918c2637703af03383f440d068820e48. Autocommit is important, as otherwise an ldb module could error out during an operation, and leave an corrupt database. Andrew Bartlett
2012-03-30ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl functionMatthieu Patou8-23/+28
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Fri Mar 30 11:59:09 CEST 2012 on sn-devel-104
2012-03-26LDB/s4 - deny the "(dn=...)" syntax on search filters when in AD modeMatthias Dieter Wallnöfer3-2/+19
Achieve this by introducing a "disallowDNFilter" flag. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-03-16build: Fix build issue on OpenBSD 5.xAmitay Isaacs1-1/+1
Do not use -Wl,-no-undefined flag on OpenBSD 5.x (tested on 5.0) Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Mar 16 05:14:03 CET 2012 on sn-devel-104
2012-03-02pyldb: Fix some more long lines, fix formatting.Jelmer Vernooij1-14/+37
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Mar 2 05:26:56 CET 2012 on sn-devel-104
2012-03-01pyldb: Avoid using PyErr_LDB_ERROR_IS_ERR_RAISE where PyErr_SetLdbError ↵Jelmer Vernooij1-13/+16
suffices. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Mar 1 23:06:55 CET 2012 on sn-devel-104
2012-02-13LDB:pyldb.c - use always the case insensitive comparison for attribute namesMatthias Dieter Wallnöfer1-2/+2
We can make no assumptions about our users Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-02-01selftest: Remove unused support for --exeextAndrew Bartlett4-58/+58
2012-01-25ldbedit: prevent a transaction warning on failureKelly Yeoh1-0/+1
if a modify fails then cancel the transaction to prevent a dangling transaction error Signed-off-by: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Jan 25 07:06:40 CET 2012 on sn-devel-104
2012-01-03pyldb: raise an exception if we can't add the attributeMatthieu Patou1-1/+6
2012-01-02ldb:ldb/common/ldb_controls.c - reference "err_string" variable correctlyMatthias Dieter Wallnöfer1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-12-23ldb:ldb_tdb.c - fix warnings in "ltdb_init_rootdse"Matthias Dieter Wallnöfer1-7/+1
We should ignore the LDB result. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-12-08pyldb: Add more docstrings.Jelmer Vernooij1-7/+12
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Dec 8 22:08:49 CET 2011 on sn-devel-104
2011-11-30Update ldb API sigs.Jelmer Vernooij2-0/+258
2011-11-30Bump ldb version to 1.1.4 after introduction of ldb_module_error.Jelmer Vernooij1-1/+1
2011-11-17ldb: Add handy macros for reporting error inside ldb moduleAmitay Isaacs1-0/+2
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org> Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu Nov 17 05:24:46 CET 2011 on sn-devel-104
2011-11-13waf: Factor checking for undefined symbol flags out into separate method.Jelmer Vernooij1-0/+2
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 13 19:38:38 CET 2011 on sn-devel-104
2011-11-13ldb: Only check for pkg-config file when checking for system ldb.Jelmer Vernooij1-2/+2
2011-11-13ldb: Use pyembed rather than pyext for ldb-util library.Jelmer Vernooij1-1/+1
2011-11-10ldb: Re-apply pyldb fixes from Tridge and Amity, using unittest ratherJelmer Vernooij1-33/+37
than samba.tests.
2011-11-10Revert "pyldb: fixed ldb API test"Jelmer Vernooij1-36/+39
This reverts commit 333248f08c83cc5b18f8e7e84cb19d79a8309d6e. This commit made the pyldb tests depend on the Samba testsuite.
2011-11-10pyldb: fixed ldb API testAndrew Tridgell1-39/+36
it was failing previously, but the failure wasn't being noticed
2011-11-10pyldb: enhanced get() method on msg objectAndrew Tridgell1-14/+33
get() now takes a default value and an idx, allowing for much easier usage Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-11-02pyldb: Remove duplicate definition of SYNTAX_DN.Jelmer Vernooij1-1/+0
2011-11-02ldb: fix compiler warningDavid Disseldorp1-1/+1
Mixed declarations and code. Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Wed Nov 2 16:51:24 CET 2011 on sn-devel-104
2011-10-27ldb:common/ldb_modules.c - fix a typo in commentMatthias Dieter Wallnöfer1-1/+1
Reviewed-by: abartlet
2011-10-20ldb: ldb_errstring() takes ldb_contxt as an argumentAmitay Isaacs1-1/+1
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-20dsdb: improve debug messageAndrew Tridgell2-6/+6
show the reply type in "Invalid reply type" messages Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Oct 20 00:57:05 CEST 2011 on sn-devel-104
2011-10-18ldb: Output more error information when a connect failsAndrew Bartlett2-1/+6