summaryrefslogtreecommitdiffstats
path: root/lib/ldb
Commit message (Collapse)AuthorAgeFilesLines
* docs: man ldbsearch: Add missing meta data.Karolin Seeger2012-11-291-0/+3
| | | | | | | | | This avoids warnings during the waf build and removes "FIXME" entries from the manpage. Karolin Reviewed-by: Andreas Schneider <asn@samba.org>
* docs: man ldbrename: Add missing meta data.Karolin Seeger2012-11-291-0/+3
| | | | | | | | | This avoids warnings during the waf build and removes "FIXME" entries from the manpage. Karolin Reviewed-by: Andreas Schneider <asn@samba.org>
* docs: man ldbmodify: Add missing meta data.Karolin Seeger2012-11-291-0/+3
| | | | | | | | | This avoids warnings during the waf build and removes "FIXME" entries from the manpage. Karolin Reviewed-by: Andreas Schneider <asn@samba.org>
* docs: man ldbedit: Add missing meta data.Karolin Seeger2012-11-291-0/+3
| | | | | | | | | This avoids warnings during the waf build and removes "FIXME" entries from the manpage. Karolin Reviewed-by: Andreas Schneider <asn@samba.org>
* docs: man ldbdel: Add missing meta data.Karolin Seeger2012-11-291-0/+3
| | | | | | | | | This avoids warnings during the waf build and removes "FIXME" entries from the manpage. Karolin Reviewed-by: Andreas Schneider <asn@samba.org>
* docs: man ldbadd: Add missing meta data.Karolin Seeger2012-11-291-0/+3
| | | | | | | | | This avoids warnings during the waf build and removes "FIXME" entries from the manpage. Karolin Reviewed-by: Andreas Schneider <asn@samba.org>
* docs: man ldb.3: Add missing meta data.Karolin Seeger2012-11-291-0/+3
| | | | | | | | | This avoids warnings during the waf build and removes "FIXME" entries from the manpage. Karolin Reviewed-by: Andreas Schneider <asn@samba.org>
* lib/ldb: add missing newline in the output of ldb_ldif_write_trace()Stefan Metzmacher2012-11-131-1/+1
| | | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Nov 13 13:53:31 CET 2012 on sn-devel-104
* ldb: fixed callers for ldb_pack_data() and ldb_unpack_data()Andrew Tridgell2012-11-0110-48/+321
| | | | | | | | | | | with ltdb_pack_data() and ltdb_unpack_data() now moved into common, we need to increase the minor version and fixup callers of the API Note that this relies on struct ldb_val being the same shape as TDB_DATA, in much the same way as we rely on ldb_val and DATA_BLOB being the same shape. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: move ldb_pack.c into commonAndrew Tridgell2012-11-011-11/+11
| | | | | | | | | this code should not be tied to the ldb_tdb backend, both because it could be used for any record oriented backend, and because it should be exposed for use by diagnosis/repair tools such as the recently added ldbdump tool Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: Add ldbdump, based on tdbdumpAndrew Bartlett2012-10-302-0/+223
| | | | | | | | | | | | | | | | This uses a tdb_traverse or (more usefully) the tdb_rescue API, like tdbdump. The difference here is that it uses ldb helper functions to further eliminate faulty records, which avoids creating duplicates in the output. (The duplicates come from parts of records that are left in blank space in the db, which tdb_rescue finds, but which are not actually a full record). Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Oct 30 23:56:11 CET 2012 on sn-devel-104
* ldb: Remove no-longer-existing ltdb_unpack_data_free from ldb_tdb.hAndrew Bartlett2012-10-311-2/+0
|
* ldb: Change ltdb_unpack_data to take an ldb_contextAndrew Bartlett2012-10-315-9/+7
| | | | | | It always de-references the module to find the ldb anyway. Andrew Bartlett
* ldb: bump version to 1.1.13 so the 4.0 release can get the isprint fixAndrew Bartlett2012-09-173-1/+263
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Sep 17 23:47:57 CEST 2012 on sn-devel-104
* At Michael's suggestion, factor common code into a function. My bad :-).Jeremy Allison2012-09-111-4/+9
| | | | | Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Sep 11 20:08:37 CEST 2012 on sn-devel-104
* Fix bug #9147 - winbind can't fetch user or group info from AD via LDAPJeremy Allison2012-09-101-2/+4
| | | | | Don't use "isprint" in ldb_binary_encode(). This is locale specific. Restrict to ASCII only, hex encode everything else.
* lib/ldb: Avoid printing secret attributes in ldb trace logsAndrew Bartlett2012-08-298-14/+352
| | | | | | | | These are printed when Samba has debug level 10, which is often used for debugging. Instead, print a note to say that this attribute has been skipped. Andrew Bartlett
* lib/ldb: Bump ldb version to 1.1.11Andrew Bartlett2012-08-283-1/+262
| | | | | | | This will ensure the next Samba release requires an ldb with the recent fixes. Andrew Bartlett
* LDB:ldb_tdb.c - deny multi-valued attributes manipulation with doubletsMatthias Dieter Wallnöfer2012-08-221-1/+18
| | | | | | | | | | | | | | | | This refers to LDB add operations as well, we have only to be careful on "@ATTRIBUTES" entries. E.g. dn: cn=testperson,cn=users,dc=...,dc=... objectClass: person url: www.example.com url: www.example.com should not work. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* LDB:ldbsearch - add search filter testsMatthias Dieter Wallnöfer2012-08-221-0/+2
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* LDB:ldbsearch - search filters do not only contain "="Matthias Dieter Wallnöfer2012-08-221-1/+1
| | | | | | | | | Also "<=", ">=", "~"... are allowed as well. Enumeration taken from ldb_parse_filtertype(). This was the cause of not identifying the search filter as described in bug https://bugzilla.samba.org/show_bug.cgi?id=8647. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* LDB:ldif_handlers.c - LDB_OP_GREATER/LDB_OP_LESS are thought as ">=" or "<="Matthias Dieter Wallnöfer2012-08-221-1/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* lib/ldb: Use tdb_parse_record and a callback rather than tdb_fetch()Andrew Bartlett2012-08-101-16/+38
| | | | | | | This avoid allocation at the tdb layer as we will allocate this with talloc right away anyway. Andrew Bartlett
* lib/ldb: Do not vasprintf() the tevent debug messages that will not be shownAndrew Bartlett2012-08-096-10/+279
| | | | | | | | | | This malloc() and free() actually shows up quite high on a call profile of provision of the AD DC. This allows the debug handler to decide if the argument list should be printed. Andrew Bartlett
* lib/ldb: Use tdb_exists() rather than tdb_fetch()/talloc_free()Andrew Bartlett2012-08-091-7/+7
| | | | | | | This avoids pulling the record and doing an allocation when we just want to know if it exists. Andrew Bartlett
* Revert "ldb: Add parameter to avoid NULL format string flagged by ↵Andrew Bartlett2012-08-061-1/+1
| | | | | | | | | | | | | | -Werror=format" This reverts commit cddcaf7bd2c272bc578ac1e4f7ec438ab94fc243. -Werror=format is no longer uses when it would cause this to fail. This is a legitimate use of the ldb_search API. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Aug 6 14:47:27 CEST 2012 on sn-devel-104
* lib/ldb: Ensure rename target does not exist before deleting old recordAndrew Bartlett2012-07-314-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
* ldb: Add parameter to avoid NULL format string flagged by -Werror=formatAndrew Bartlett2012-07-301-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
* lib/ldb: Bump ldb release due to pyldb changesAndrew Bartlett2012-07-093-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
* pyldb: Add bindings for ldb_dn_remove_base_componentsAndrew Bartlett2012-07-062-0/+20
|
* pyldb: Fix dn concat operation to be the other way aroundAndrew Bartlett2012-07-062-2/+2
| | | | | | This now concatonates Dn(ldb, "cn=config") + Dn(ldb, "dc=samba,dc=org") as "cn=config,dc=samba,dc=org" Andrew Bartlett
* ldb: bump version due to header and internal implementation changesAndrew Bartlett2012-07-033-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
* ccan: we're subsystems, not a library.Rusty Russell2012-06-291-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
* lib/ldb: Print trace messages for modify correctlyAndrew Bartlett2012-06-271-1/+1
|
* ldb: lay foundation for proper utc/generalized time handlingMatthieu Patou2012-06-223-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.
* ldb: add the VERIFY_NAME controlMatthieu Patou2012-06-222-0/+68
|
* ldb: use tdb directly, not tdb_compat.Rusty Russell2012-06-196-18/+20
| | | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* TDB2: make SAMBA use tdb1 again for the moment.Rusty Russell2012-06-192-31/+0
| | | | | | | Otherwise the following surgery will break the SAMBA build and testsuite. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* ldb:tests: fix use of a non-existent word (existant)Michael Adam2012-06-121-1/+1
|
* pyldb: Ensure that the ldb argument is really an ldb before we dereferenceAndrew Bartlett2012-06-111-0/+10
|
* lib/ldb/tools: add missing "replace.h"Stefan Metzmacher2012-06-114-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
* LDB:ldb_tdb/ldb_tdb.c - allow LDB modify replaces with different value orderingMatthias Dieter Wallnöfer2012-04-181-3/+10
| | | | | | This is essential for fixing up wrong ordered "objectClass" attributes. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb: added ldb_msg_element_equal_ordered()Andrew Tridgell2012-04-185-1/+286
| | | | | this gives us a order sensitive msg element comparison. We need this to allow dbcheck to fix the order of objectClass attributes.
* LDB:ldb_msg.c - add another OOM check in "ldb_msg_copy()"Matthias Dieter Wallnöfer2012-04-111-0/+1
|
* ldb-tools: Place the whole of an ldif file in a transactionAndrew Bartlett2012-04-107-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
* ldb: Allow access to the line number while reading ldif from a fileAndrew Bartlett2012-04-105-7/+281
|
* ldb: Detect failures in ldb.base againAndrew Bartlett2012-04-103-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
* Revert "ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl function"Andrew Bartlett2012-04-108-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
* ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl functionMatthieu Patou2012-03-308-23/+28
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Fri Mar 30 11:59:09 CEST 2012 on sn-devel-104
* LDB/s4 - deny the "(dn=...)" syntax on search filters when in AD modeMatthias Dieter Wallnöfer2012-03-263-2/+19
| | | | | | | Achieve this by introducing a "disallowDNFilter" flag. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>