s4-dsdb: remove the naming_fsmo and pdc_fsmo modules
authorAndrew Tridgell <tridge@samba.org>
Thu, 11 Aug 2011 05:43:22 +0000 (15:43 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 12 Aug 2011 02:00:07 +0000 (04:00 +0200)
these are not needed now that the rootdse modules calculates the
validFSMOs attribute at runtime

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/dsdb/samdb/ldb_modules/samba_dsdb.c
source4/dsdb/samdb/ldb_modules/wscript_build
source4/dsdb/samdb/samdb.h

index e4de1524bee5630628d0b971a5f529c173a34fa6..c7c4fe377c057f473db9f4fd7356e726d074b104 100644 (file)
@@ -301,18 +301,6 @@ static int samba_dsdb_init(struct ldb_module *module)
        partition_msg = ldb_msg_new(tmp_ctx);
        partition_msg->dn = ldb_dn_new(partition_msg, ldb, "@" DSDB_OPAQUE_PARTITION_MODULE_MSG_OPAQUE_NAME);
 
-       ret = prepare_modules_line(ldb, tmp_ctx,
-                                  rootdse_msg,
-                                  partition_msg, "defaultNamingContext",
-                                  "pdc_fsmo", backend_modules);
-       CHECK_LDB_RET(ret);
-
-       ret = prepare_modules_line(ldb, tmp_ctx,
-                                  rootdse_msg,
-                                  partition_msg, "configurationNamingContext",
-                                  "naming_fsmo", backend_modules);
-       CHECK_LDB_RET(ret);
-
        ret = prepare_modules_line(ldb, tmp_ctx,
                                   rootdse_msg,
                                   partition_msg, "schemaNamingContext",
index 857237170fe97d5073190508b3ef3018d73b4b85..3212039ff93d54a8fad61d4bbaad5e64c471e22a 100644 (file)
@@ -84,26 +84,6 @@ bld.SAMBA_MODULE('ldb_schema_data',
        )
 
 
-bld.SAMBA_MODULE('ldb_naming_fsmo',
-       source='naming_fsmo.c',
-       subsystem='ldb',
-       init_function='ldb_naming_fsmo_module_init',
-       module_init_name='ldb_init_module',
-       internal_module=False,
-       deps='samdb talloc DSDB_MODULE_HELPERS'
-       )
-
-
-bld.SAMBA_MODULE('ldb_pdc_fsmo',
-       source='pdc_fsmo.c',
-       subsystem='ldb',
-       init_function='ldb_pdc_fsmo_module_init',
-       module_init_name='ldb_init_module',
-       internal_module=False,
-       deps='samdb talloc DSDB_MODULE_HELPERS'
-       )
-
-
 bld.SAMBA_MODULE('ldb_samldb',
        source='samldb.c',
        subsystem='ldb',
index 96f44c356ea7d4bfd2b4cd1bce3cde5cdca8f673..8fb7b644ad96e5421aacf79ad52430543582f4f4 100644 (file)
@@ -131,16 +131,6 @@ struct dsdb_extended_replicated_objects {
        const struct drsuapi_DsReplicaLinkedAttribute *linked_attributes;
 };
 
-struct dsdb_naming_fsmo {
-       bool we_are_master;
-       struct ldb_dn *master_dn;
-};
-
-struct dsdb_pdc_fsmo {
-       bool we_are_master;
-       struct ldb_dn *master_dn;
-};
-
 #define DSDB_EXTENDED_CREATE_PARTITION_OID "1.3.6.1.4.1.7165.4.4.4"
 struct dsdb_create_partition_exop {
        struct ldb_dn *new_dn;