summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-16 14:37:11 +0200
committerAndrew Bartlett <abartlet@samba.org>2010-09-24 09:25:42 +1000
commite446ef1c3fc3ebcc511caf5d1d94804cfb7a8202 (patch)
treedea5e6a8687519e530219b15b1091027fa3e38f2 /source4
parentf1535694f76afdd1c1d5db4240abe0f94b90f8c5 (diff)
downloadsamba-e446ef1c3fc3ebcc511caf5d1d94804cfb7a8202.tar.gz
samba-e446ef1c3fc3ebcc511caf5d1d94804cfb7a8202.tar.bz2
samba-e446ef1c3fc3ebcc511caf5d1d94804cfb7a8202.zip
s4:rootdse LDB module - remove "priv" checks where not needed
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/rootdse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c
index 102cd90ce2..300f622486 100644
--- a/source4/dsdb/samdb/ldb_modules/rootdse.c
+++ b/source4/dsdb/samdb/ldb_modules/rootdse.c
@@ -329,14 +329,14 @@ static int rootdse_add_dynamic(struct ldb_module *module, struct ldb_message *ms
}
}
- if (priv && do_attribute(attrs, "domainFunctionality")) {
+ if (do_attribute(attrs, "domainFunctionality")) {
if (ldb_msg_add_fmt(msg, "domainFunctionality",
"%d", dsdb_functional_level(ldb)) != LDB_SUCCESS) {
goto failed;
}
}
- if (priv && do_attribute(attrs, "forestFunctionality")
+ if (do_attribute(attrs, "forestFunctionality")
&& (val = talloc_get_type(ldb_get_opaque(ldb, "forestFunctionality"), int))) {
if (ldb_msg_add_fmt(msg, "forestFunctionality",
"%d", *val) != LDB_SUCCESS) {
@@ -344,7 +344,7 @@ static int rootdse_add_dynamic(struct ldb_module *module, struct ldb_message *ms
}
}
- if (priv && do_attribute(attrs, "domainControllerFunctionality")
+ if (do_attribute(attrs, "domainControllerFunctionality")
&& (val = talloc_get_type(ldb_get_opaque(ldb, "domainControllerFunctionality"), int))) {
if (ldb_msg_add_fmt(msg, "domainControllerFunctionality",
"%d", *val) != LDB_SUCCESS) {