summaryrefslogtreecommitdiff
path: root/lib/ldb-samba
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-09-16 14:22:53 -0700
committerNadezhda Ivanova <nivanova@samba.org>2013-09-17 05:56:56 +0200
commitf2bccebd913f023e3d99282be4e831d012cd3578 (patch)
tree77f37cdfe66605946baed87631ac913ae516163a /lib/ldb-samba
parent6ef3c98ade76e361d210366a0fe79fc3b66e63be (diff)
downloadsamba-f2bccebd913f023e3d99282be4e831d012cd3578.tar.gz
samba-f2bccebd913f023e3d99282be4e831d012cd3578.tar.bz2
samba-f2bccebd913f023e3d99282be4e831d012cd3578.zip
lib/ldb-samba/ldb_ildap: Also skip special base DNs
This is so we do not search for @REPLCHANGED against ldap Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
Diffstat (limited to 'lib/ldb-samba')
-rw-r--r--lib/ldb-samba/ldb_ildap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ldb-samba/ldb_ildap.c b/lib/ldb-samba/ldb_ildap.c
index 3c28690bd6..18853ebccf 100644
--- a/lib/ldb-samba/ldb_ildap.c
+++ b/lib/ldb-samba/ldb_ildap.c
@@ -681,6 +681,9 @@ static bool ildb_dn_is_special(struct ldb_request *req)
struct ldb_dn *dn = NULL;
switch (req->operation) {
+ case LDB_SEARCH:
+ dn = req->op.search.base;
+ break;
case LDB_ADD:
dn = req->op.add.message->dn;
break;