From 657b7039c38e97af9dbacafb5ab7a5966f52eaea Mon Sep 17 00:00:00 2001 From: Nadezhda Ivanova Date: Wed, 25 Aug 2010 00:22:16 +0300 Subject: s4-drs: Implementation of GetNCChanges extended op 6 - fsmo role transfer Basically the candidate owner makes a getncchanges call with extended op 6 when they want to become the new owner. The current owner then updates the corresponding fSMORoleOwner attribute in its database with the new owner, and replicates the change to the candidate, who then becomes the owner. The patch was made in cooperation with Anatoliy Atanasov who kindly helped to debug it. --- source4/librpc/idl/irpc.idl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source4/librpc/idl') diff --git a/source4/librpc/idl/irpc.idl b/source4/librpc/idl/irpc.idl index 35204dbedc..2b88dc749b 100644 --- a/source4/librpc/idl/irpc.idl +++ b/source4/librpc/idl/irpc.idl @@ -157,4 +157,20 @@ import "misc.idl", "security.idl", "nbt.idl"; * If empy/NULL, refresh all partitions. */ WERROR dreplsrv_refresh(); + + /* + called when role transfer is requested via LDAP + */ + typedef [v1_enum] enum { + DREPL_SCHEMA_MASTER, + DREPL_RID_MASTER, + DREPL_INFRASTRUCTURE_MASTER, + DREPL_NAMING_MASTER, + DREPL_PDC_MASTER + } drepl_role_master; + + NTSTATUS drepl_takeFSMORole( + [in] uint32 role + ); + } -- cgit