summaryrefslogtreecommitdiffstats
path: root/lib/ldb/common
Commit message (Collapse)AuthorAgeFilesLines
* ldb: added a new always-fail ldap extended match OIDAndrew Tridgell2011-08-041-1/+12
| | | | | | | 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 ldb_parse_tree_walk()Andrew Tridgell2011-08-041-16/+70
| | | | | | | 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-041-0/+56
| | | | | | | | | | 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>
* 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: added ldb_val_string_cmp()Andrew Tridgell2011-07-131-0/+12
| | | | | | 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: make ldb a top level library for Samba 4.0Andrew Bartlett2011-07-0514-0/+11302
Signed-off-by: Andrew Tridgell <tridge@samba.org>