diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-12-16 09:01:35 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-12-17 12:29:28 +1100 |
commit | d68ad8218ff104da35c2ed5b389c18926484c3af (patch) | |
tree | 4db49378db4bf56ccc3f90dc9043d1200cb767c5 /source4/dsdb | |
parent | 596fe759e1fed835173146a74ac9986066acc48e (diff) | |
download | samba-d68ad8218ff104da35c2ed5b389c18926484c3af.tar.gz samba-d68ad8218ff104da35c2ed5b389c18926484c3af.tar.bz2 samba-d68ad8218ff104da35c2ed5b389c18926484c3af.zip |
s4:rootdse: fix the logic to indentify a rootdse search
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/rootdse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c index 04a97fcd3b..461a554ec0 100644 --- a/source4/dsdb/samdb/ldb_modules/rootdse.c +++ b/source4/dsdb/samdb/ldb_modules/rootdse.c @@ -301,8 +301,7 @@ static int rootdse_search(struct ldb_module *module, struct ldb_request *req) int ret; /* see if its for the rootDSE - only a base search on the "" DN qualifies */ - if (req->op.search.scope != LDB_SCOPE_BASE || - ( ! ldb_dn_is_null(req->op.search.base))) { + if (!(req->op.search.scope == LDB_SCOPE_BASE && ldb_dn_is_null(req->op.search.base))) { /* Otherwise, pass down to the rest of the stack */ return ldb_next_request(module, req); } |