s4:rootdse LDB module - remove "priv" checks where not needed
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 16 Sep 2010 12:37:11 +0000 (14:37 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 23 Sep 2010 23:25:42 +0000 (09:25 +1000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/rootdse.c

index 102cd90ce2324ebec6ac4d91e01e9208291905ac..300f622486eca9968c512afddf535b80416ed30c 100644 (file)
@@ -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) {