From 29e3806b0e60df2fbadaae248011db7524a71797 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 17 Sep 2010 08:49:07 +0200 Subject: s4:rootdse LDB module - make use of "dsdb_forest_functional_level" Signed-off-by: Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/rootdse.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source4/dsdb') 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; } } -- cgit