mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s4:rootdse LDB module - remove "priv" checks where not needed
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
f1535694f7
commit
e446ef1c3f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user