summaryrefslogtreecommitdiff
path: root/lib/ldb
AgeCommit message (Collapse)AuthorFilesLines
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
2011-10-18ldb: fixed a race in ldb initialisationAndrew Tridgell1-1/+9
This fixes a race when two processes initialise the same ldb database at the same time. One of them could fail due to the other creating the @BASEINFO record first. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Oct 18 03:54:42 CEST 2011 on sn-devel-104
2011-10-11ldb:ldb_autotransaction_request - error string shouldn't be set hereMatthias Dieter Wallnöfer1-5/+0
A generic error string should be set independently of the access mechanism to an LDB operation. Hence it should be handled in "ldb_wait" and "ldb_request" Signed-off-by: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Oct 11 10:15:18 CEST 2011 on sn-devel-104
2011-10-11ldb:pyldb.c - py_ldb_* modification calls - error string shouldn't be set hereMatthias Dieter Wallnöfer1-17/+1
As discussed with Jelmer, we shouldn't be setting a generic LDB error string only for the Python bindings alone. This should be done in "ldb_request" and "ldb_wait" - the common place for all possible LDB access mechanisms. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-11ldb:ldb.c/"ldb_wait" - make "ldb_wait" always return an error stringMatthias Dieter Wallnöfer1-4/+39
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-11ldb:ldb.c/"ldb_wait" - change "ldb_wait" slightly in order to introduce ↵Matthias Dieter Wallnöfer1-3/+5
error messages In this occasion remove a redundant check for "LDB_ASYNC_DONE": if (handle->state == LDB_ASYNC_DONE || if (handle->state == LDB_ASYNC_DONE) handle->status != LDB_SUCCESS) { return handle->status; return handle->status; == if (handle->status != LDB_SUCCESS) } return handle->status; ... ... return LDB_SUCCESS; return LDB_SUCCESS; Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-11ldb:ldb.c/"ldb_request" - make "ldb_request" always return an error stringMatthias Dieter Wallnöfer1-1/+15
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-11ldb:ldb.c - "ldb_set_errstring" can be implemented by using ↵Matthias Dieter Wallnöfer1-10/+7
"ldb_asprintf_errstring" Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-11ldb:ldb_autotransaction_request - fix a typo in a commentMatthias Dieter Wallnöfer1-1/+1
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-10ldb: change version to 1.1.3 after pyldb changesStefan Metzmacher3-1/+259
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 10 14:24:25 CEST 2011 on sn-devel-104
2011-10-07Revert "ldb: support raw OIDs in control string parsing"Stefan Metzmacher2-19/+0
This reverts commit ea41860d32d38448e08cefd79d30ee1150317a9e. This is not needed, because we already have the 'local_oid' magic. metze
2011-10-07ldb/ldb_controls: allow oid up to 255 charsStefan Metzmacher1-1/+1
We have char oid[256], so allow sscanf() to consume 255 chars. metze