summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-04-09 19:07:12 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-04-10 21:41:02 +1000
commit5ebeab379430104c615fd401abe9a8c7dc3339b8 (patch)
tree65355318b15923da3eab2eafb2154254ec020c6a /source4/dsdb/samdb/ldb_modules
parent6ef167c37bcf2842434a51733c351246294842a2 (diff)
downloadsamba-5ebeab379430104c615fd401abe9a8c7dc3339b8.tar.gz
samba-5ebeab379430104c615fd401abe9a8c7dc3339b8.tar.bz2
samba-5ebeab379430104c615fd401abe9a8c7dc3339b8.zip
s4:dsdb Don't return operational attributes on special DNs
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/operational.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/operational.c b/source4/dsdb/samdb/ldb_modules/operational.c
index 9fc0d1aeae..94fe411157 100644
--- a/source4/dsdb/samdb/ldb_modules/operational.c
+++ b/source4/dsdb/samdb/ldb_modules/operational.c
@@ -497,6 +497,11 @@ static int operational_search(struct ldb_module *module, struct ldb_request *req
unsigned int i, a;
int ret;
+ /* There are no operational attributes on special DNs */
+ if (ldb_dn_is_special(req->op.search.base)) {
+ return ldb_next_request(module, req);
+ }
+
ldb = ldb_module_get_ctx(module);
ac = talloc(req, struct operational_context);