summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-17 08:49:07 +0200
committerAndrew Bartlett <abartlet@samba.org>2010-09-24 09:25:43 +1000
commit29e3806b0e60df2fbadaae248011db7524a71797 (patch)
tree992b47e8ad61d6d978111103ad2d8ffa516934e9
parent9123bcbf77260551bd2b97e93445ae0e67ad89a3 (diff)
downloadsamba-29e3806b0e60df2fbadaae248011db7524a71797.tar.gz
samba-29e3806b0e60df2fbadaae248011db7524a71797.tar.bz2
samba-29e3806b0e60df2fbadaae248011db7524a71797.zip
s4:rootdse LDB module - make use of "dsdb_forest_functional_level"
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/dsdb/samdb/ldb_modules/rootdse.c5
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;
}
}