summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2005-07-26 09:17:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:04 -0500
commit768585b1dd3fcc2f2180528bd94e1fef4a6ead7b (patch)
tree90fd80a754dc0253574b4e0e39e01d6121a06213 /source4/lib/ldb/ldb_tdb
parent18cf9ccba72264a38134246822d5bb62df091175 (diff)
downloadsamba-768585b1dd3fcc2f2180528bd94e1fef4a6ead7b.tar.gz
samba-768585b1dd3fcc2f2180528bd94e1fef4a6ead7b.tar.bz2
samba-768585b1dd3fcc2f2180528bd94e1fef4a6ead7b.zip
r8779: Add rdn module to makefile and headers
Search by distinguishedName as if searching by dn (This used to be commit 1d4046136255aead319ab08da229146dbd285b38)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_search.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_search.c b/source4/lib/ldb/ldb_tdb/ldb_search.c
index 8e84cfa681..922d24b6eb 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_search.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_search.c
@@ -464,7 +464,8 @@ int ltdb_search_bytree(struct ldb_module *module, const char *base,
/* it is important that we handle dn queries this way, and not
via a full db search, otherwise ldb is horribly slow */
if (tree->operation == LDB_OP_EQUALITY &&
- ldb_attr_cmp(tree->u.equality.attr, "dn") == 0) {
+ (ldb_attr_cmp(tree->u.equality.attr, "dn") == 0 ||
+ ldb_attr_cmp(tree->u.equality.attr, "distinguishedName") == 0)) {
return ltdb_search_dn(module, tree->u.equality.value.data, attrs, res);
}