summaryrefslogtreecommitdiffstats
path: root/lib/ldb
Commit message (Collapse)AuthorAgeFilesLines
* ldb:ldb_controls.c - remove duplicate definition of "LDB_CONTROL_CMP"Matthias Dieter Wallnöfer2011-09-111-11/+3
| | | | | | And fix the comment Reviewed-by: Jelmer
* ldb:pyldb.c - point out that "PyLdbResult_AsResult" does not convert everythingMatthias Dieter Wallnöfer2011-09-111-1/+4
| | | | Reviewed-by: Jelmer
* ldb: make the 'spy' code more paranoidAndrew Tridgell2011-09-012-10/+12
| | | | | | | | | | | | | | the spy code in ldb_tdb was added a while ago to overcome a memory hierarchy problem with async ldb errors. Recently we started to get valgrind errors related to the order of free in the spy code. This patch ensures that we don't try to use a freed spy pointer. This prevents the valgrind errors, although I suspect that the memory hierarchy we have here is more complex than it needs to be Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Sep 1 08:54:23 CEST 2011 on sn-devel-104
* ldb: fixed ldbsearch when no baseDN specified and cross-ncs is usedAndrew Tridgell2011-09-011-4/+24
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* pyldb: added OID_COMPARATOR constantsAndrew Tridgell2011-09-011-9/+11
| | | | | | | This also changes the other constants to remove the LDB_ prefix, which is redundent Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* pyldb: fixed a warningAndrew Tridgell2011-08-251-2/+2
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* wafsamba: Only install .pc files if libraries are public.Jelmer Vernooij2011-08-211-6/+2
|
* ldb:ldb_controls.c - cosmetic indentation fixMatthias Dieter Wallnöfer2011-08-191-5/+4
|
* ldb - two cosmetic fixesMatthias Dieter Wallnöfer2011-08-192-4/+2
| | | | | @ldb.h: Removes an invalid comment line @pyldb.c: Fixes indentation
* ldb: Remove use after free in error caseAndrew Bartlett2011-08-131-1/+0
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Aug 13 13:49:44 CEST 2011 on sn-devel-104
* ldb: fix the canonicalisation of booleansAndrew Tridgell2011-08-091-3/+3
| | | | | | we were canonicalising "FALSE" to "FALS" Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* pyldb: fix uninitialized memory bug in PyArg_ParseTuple() argumentStefan Metzmacher2011-08-081-1/+1
| | | | | | | | "s#", &str, &len) required 'len' as 'int' not as 'Py_ssize_t'. With Py_ssize_t the 2nd half of a 64bit Py_ssize_t, will be uninitialized as 'int' is only 32bit. metze
* pyldb: Generate ABI file.Jelmer Vernooij2011-08-072-2/+6
|
* pyldb: Consistently use pyldb_ prefix.Jelmer Vernooij2011-08-073-125/+129
|
* ldb: rule_id in ldb_parse_tree should be constAndrew Tridgell2011-08-041-1/+1
| | | | | | this allows assignment to a constant string without allocation Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: added a new always-fail ldap extended match OIDAndrew Tridgell2011-08-042-1/+14
| | | | | | | this is used when rewriting filter rules to replace a filter rule with one that is guaranteed not to match Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: added signatures for 1.1.2Andrew Tridgell2011-08-041-0/+256
|
* ldb: raise minor versionldb-1.1.2Andrew Tridgell2011-08-041-1/+1
| | | | | | | needed for new module function ldb_dn_replace_components() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* ldb: added ldb_parse_tree_walk()Andrew Tridgell2011-08-042-16/+77
| | | | | | | this walks a ldb parse tree, calling a callback on each node Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* ldb: added ldb_dn_replace_components()Andrew Tridgell2011-08-042-0/+63
| | | | | | | | | | this allows you to replace the string part of a DN with the string part from another DN. This is useful when you want to fix a DN that has the right GUID but the wrong string part, because the target object has moved. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* pyldb: return a copy of key constant DNs via python interfaceAndrew Tridgell2011-08-031-4/+21
| | | | | | | | | | this prevents an easy coding error where the caller modifies one of the key DNs for the database, by using an add_child function or similar Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* pyldb: added binary_encode() and binary_decode() methodsAndrew Tridgell2011-07-292-0/+57
| | | | | | | this gives access to RFC2254 encoding from python Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* ldb: added a test for an invalid search expressionAndrew Tridgell2011-07-291-0/+3
| | | | | | | this tests the fix for invalid expressions in & and | expressions Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* ldb: fixed a search expression parse bugAndrew Tridgell2011-07-291-1/+11
| | | | | | | | | | | | | | | | when a secondary component of a & or | expression was invalid, it was ignored rather than giving an error. For example: (|(objectclass=user)(samaccountname=foo\blah)) was treated as being: (objectclass=user) whereas it should be an error, as foo\blah is invalid Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: Expose ldb_handler_fold() funcionAmitay Isaacs2011-07-281-6/+11
| | | | | | This allows creation of derived syntax handlers from the base directory string. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* pyldb: use dn.is_child_of() instead of dn.compare_base()Andrew Tridgell2011-07-212-9/+10
| | | | | | | | the compare_base() C API doesn't really fit well in python, as it returns 0 for true. Better to have a boolean function for the python interface. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* pyldb: add unit test for ldbDn.compare_baseMatthieu Patou2011-07-211-0/+11
|
* ldb-python: add a function to Dn object to compare the Dn with a base DNMatthieu Patou2011-07-211-0/+17
|
* ldb: added ldb_val_string_cmp()Andrew Tridgell2011-07-134-1/+272
| | | | | | this should help fix some places where we run past the end of a string Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: don't return special DNs on non-base searchesAndrew Tridgell2011-07-131-0/+5
| | | | | | to look at a special DN, give the full DN Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: don't shortcut dn comparison for mismatched special DNsAndrew Tridgell2011-07-131-1/+1
| | | | | | | DNs that start with @ can't be compared via string comparison with normal DNs Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb-tdb: Introduce a flag on ltdb_add_internal to indicate whether unique ↵Matthieu Patou2011-07-131-4/+11
| | | | | | | | | | | | | | | | | | | | | | value test should be performed or not The function ltdb_add_internal is called either from ltdb_add or ltdb_rename. In case of add we enforce the unique test (unless it has been relaxed by a upper module through the LDB_FLAG_INTERNAL_DISABLE_SINGLE_VALUE_CHECK flag), but for rename as it is translated by a delete + a add we relax the test as we can have one or more attribute which are supposed to be single valued but that are not (ie. when we have a couple of deleted value on a single valued attribute), we have already done the tests on insert so make the assumption that the values are OK. Without this patch deleting a subnet that has been affected to more than one site fails as the delete is in fact a rename to GUID\0DEL ... with an attribute siteObject that has 1 active link value and 1 inactive link value Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Jul 13 02:29:20 CEST 2011 on sn-devel-104
* ldb: set -Wl,-no-undefined only on standalone buildAndrew Bartlett2011-07-051-5/+5
| | | | | | | | | | This ensures that the flag is not propogated to other projects, such as Samba's source3 waf build. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Jul 5 10:37:30 CEST 2011 on sn-devel-104
* ldb: make ldb a top level library for Samba 4.0Andrew Bartlett2011-07-05140-0/+46149
Signed-off-by: Andrew Tridgell <tridge@samba.org>