diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-09-17 08:49:07 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-09-24 09:25:43 +1000 |
commit | 29e3806b0e60df2fbadaae248011db7524a71797 (patch) | |
tree | 992b47e8ad61d6d978111103ad2d8ffa516934e9 | |
parent | 9123bcbf77260551bd2b97e93445ae0e67ad89a3 (diff) | |
download | samba-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.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; } } |