1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s4:role transfer - use always type "enum drepl_role_master" for role specifications

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov 27 16:03:43 CET 2010 on sn-devel-104
This commit is contained in:
Matthias Dieter Wallnöfer 2010-11-27 14:40:53 +01:00
parent d613f91a74
commit 258dc02a9d
4 changed files with 6 additions and 5 deletions

View File

@ -30,8 +30,7 @@
#include "smbd/service.h"
#include "dsdb/repl/drepl_service.h"
#include "param/param.h"
#include "lib/messaging/irpc.h"
#include "librpc/gen_ndr/ndr_irpc.h"
#include "librpc/gen_ndr/irpc.h"
static void drepl_role_callback(struct dreplsrv_service *service,
WERROR werr,
@ -59,7 +58,7 @@ static bool fsmo_master_cmp(struct ldb_dn *ntds_dn, struct ldb_dn *role_owner_dn
see which role is we are asked to assume, initialize data and send request
*/
WERROR dreplsrv_fsmo_role_check(struct dreplsrv_service *service,
uint32_t role)
enum drepl_role_master role)
{
struct ldb_dn *role_owner_dn, *fsmo_role_dn, *ntds_dn;
TALLOC_CTX *tmp_ctx = talloc_new(service);

View File

@ -233,6 +233,8 @@ struct dreplsrv_service {
bool am_rodc;
};
enum drepl_role_master;
#include "dsdb/repl/drepl_out_helpers.h"
#include "dsdb/repl/drepl_service_proto.h"

View File

@ -1154,7 +1154,7 @@ static int rootdse_add(struct ldb_module *module, struct ldb_request *req)
static int rootdse_become_master(struct ldb_module *module,
struct ldb_request *req,
uint32_t role)
enum drepl_role_master role)
{
struct drepl_takeFSMORole r;
struct messaging_context *msg;

View File

@ -176,7 +176,7 @@ import "misc.idl", "security.idl", "nbt.idl", "netlogon.idl";
} drepl_role_master;
WERROR drepl_takeFSMORole(
[in] uint32 role
[in] drepl_role_master role
);
/*