s4/fsmo: Naming master support added
[anatoliy/anatoliy.git] / source4 / dsdb / repl / drepl_fsmo.c
index 375e37b517639a769b037b1f0b16e30578a6886f..650b299c1ddf4fe1333c15a4e099112655b5e93b 100644 (file)
@@ -75,7 +75,7 @@ WERROR dreplsrv_fsmo_role_check(struct dreplsrv_service *service,
 
        switch (role) {
        case DREPL_NAMING_MASTER:
-               fsmo_role_dn = samdb_partitions_dn(ldb, tmp_ctx),
+               fsmo_role_dn = samdb_partitions_dn(ldb, tmp_ctx);
                ret = samdb_reference_dn(ldb, tmp_ctx, fsmo_role_dn, "fSMORoleOwner", &role_owner_dn);
                if (ret != LDB_SUCCESS) {
                        DEBUG(0,(__location__ ": Failed to find fSMORoleOwner in Naming Master object - %s",
@@ -83,6 +83,7 @@ WERROR dreplsrv_fsmo_role_check(struct dreplsrv_service *service,
                        talloc_free(tmp_ctx);
                        return WERR_DS_DRA_INTERNAL_ERROR;
                }
+               extended_op = DRSUAPI_EXOP_FSMO_REQ_ROLE;
                break;
        case DREPL_INFRASTRUCTURE_MASTER:
                fsmo_role_dn = samdb_infrastructure_dn(ldb, tmp_ctx);