diff options
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/rootdse.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c index a786a70ce3..c494cf521c 100644 --- a/source4/dsdb/samdb/ldb_modules/rootdse.c +++ b/source4/dsdb/samdb/ldb_modules/rootdse.c @@ -376,10 +376,9 @@ static int rootdse_add_dynamic(struct ldb_module *module, struct ldb_message *ms } } - if (do_attribute(attrs, "forestFunctionality") - && (val = talloc_get_type(ldb_get_opaque(ldb, "forestFunctionality"), int))) { + if (do_attribute(attrs, "forestFunctionality")) { if (ldb_msg_add_fmt(msg, "forestFunctionality", - "%d", *val) != LDB_SUCCESS) { + "%d", dsdb_forest_functional_level(ldb)) != LDB_SUCCESS) { goto failed; } } |