diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-07-01 16:35:13 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-07-01 16:55:43 +0200 |
commit | db0a105aae2ba32be4aa5658fc8963ba28933a6b (patch) | |
tree | 88380059d39f2324ea64aae874712a4dd661c642 /source4/dsdb/samdb/ldb_modules/rootdse.c | |
parent | 8974bf92a84091ce4b6cd42525648a71a4ca20b4 (diff) | |
download | samba-db0a105aae2ba32be4aa5658fc8963ba28933a6b.tar.gz samba-db0a105aae2ba32be4aa5658fc8963ba28933a6b.tar.bz2 samba-db0a105aae2ba32be4aa5658fc8963ba28933a6b.zip |
schema_fsmo: move fsmo info into struct dsdb_schema
metze
(This used to be commit 8538d305c803268c712a90879f29a2a74ba0ef03)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/rootdse.c')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/rootdse.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c index 50f333d095..75f99a139d 100644 --- a/source4/dsdb/samdb/ldb_modules/rootdse.c +++ b/source4/dsdb/samdb/ldb_modules/rootdse.c @@ -164,14 +164,11 @@ static int rootdse_add_dynamic(struct ldb_module *module, struct ldb_message *ms } if (do_attribute_explicit(attrs, "validFSMOs")) { - const struct dsdb_schema_fsmo *schema_fsmo; const struct dsdb_naming_fsmo *naming_fsmo; const struct dsdb_pdc_fsmo *pdc_fsmo; const char *dn_str; - schema_fsmo = talloc_get_type(ldb_get_opaque(module->ldb, "dsdb_schema_fsmo"), - struct dsdb_schema_fsmo); - if (schema_fsmo && schema_fsmo->we_are_master) { + if (schema && schema->fsmo.we_are_master) { dn_str = ldb_dn_get_linearized(samdb_schema_dn(module->ldb)); if (dn_str && dn_str[0]) { if (ldb_msg_add_fmt(msg, "validFSMOs", "%s", dn_str) != 0) { |