From 5cd6b460ff763615d1b7ce38f52b7d6fc9e20867 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 8 Sep 2009 11:51:01 +1000 Subject: s4: added the structure for repsTo This structure is stored in NDR format in the repsTo attribute of each partition. It is updated by the DSUpdateRefs DSRUAPI call --- librpc/idl/drsblobs.idl | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'librpc/idl') diff --git a/librpc/idl/drsblobs.idl b/librpc/idl/drsblobs.idl index fb37500fea..8ec8458f6b 100644 --- a/librpc/idl/drsblobs.idl +++ b/librpc/idl/drsblobs.idl @@ -174,6 +174,38 @@ interface drsblobs { [in] prefixMapBlob blob ); + + /* + * repsTo structure. This is not sent over the wire so we are + * free to choose our own format. It is updated by the + * DRSUpdateRefs DRSUAPI call. This is stored in NDR format + * in the root of each partition in the repsTo attribute + */ + typedef [v1_enum] enum { + REPSTO_VERSION1 = 1 + } repsToVersion; + + typedef struct { + utf8string dest_dsa_dns_name; + GUID dest_guid; + uint32 options; + } repsToDest; + + typedef struct { + uint32 count; + [size_is(count)] repsToDest reps[]; + } repsTov1; + + typedef [nodiscriminant] union { + [case(REPSTO_VERSION1)] repsTov1 r; + } repsToCtr; + + typedef [public] struct { + repsToVersion version; + [switch_is(version)] repsToCtr ctr; + } repsTo; + + /* * the cookie for the LDAP dirsync control */ -- cgit