summaryrefslogtreecommitdiff
path: root/source4/librpc/idl
diff options
context:
space:
mode:
authorNadezhda Ivanova <nivanova@samba.org>2010-08-25 00:22:16 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-09-10 13:08:17 +0300
commit657b7039c38e97af9dbacafb5ab7a5966f52eaea (patch)
treefbd25f4c9914089ec4975882de98f1c3366a6bf9 /source4/librpc/idl
parentc8794d2625e81b8c11dec7726a42e632854472af (diff)
downloadsamba-657b7039c38e97af9dbacafb5ab7a5966f52eaea.tar.gz
samba-657b7039c38e97af9dbacafb5ab7a5966f52eaea.tar.bz2
samba-657b7039c38e97af9dbacafb5ab7a5966f52eaea.zip
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 <anatoliy.atanasov@postpath.com> who kindly helped to debug it.
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r--source4/librpc/idl/irpc.idl16
1 files changed, 16 insertions, 0 deletions
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
+ );
+
}