From 04103008107442c6f561b35d7824f644470bb3e9 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 13 Jan 2007 15:28:24 +0000 Subject: r20732: add idl for storing the prefixMap attribute as w2k3 doesn't return it when you ask for we don't know the exact format, but we assume that it starts with a uint32 version and as this attribute is not replicated we can chosse our own version... metze (This used to be commit cf546b7c182f6a9b636023377b5260d155bc15dd) --- source4/librpc/idl/drsblobs.idl | 31 +++++++++++++++++++++++++++++++ source4/librpc/idl/drsuapi.idl | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/source4/librpc/idl/drsblobs.idl b/source4/librpc/idl/drsblobs.idl index f5147d2a45..96ef65003e 100644 --- a/source4/librpc/idl/drsblobs.idl +++ b/source4/librpc/idl/drsblobs.idl @@ -144,6 +144,37 @@ interface drsblobs { [in] partialAttributeSetBlob blob ); + /* + * prefixMap + * w2k unknown + * w2k3 unknown + * samba4 uses 0x44544442 'DSDB' + * + * as we windows don't return the prefixMap attribute when you ask for + * we don't know the format, but the attribute is not replicated + * so that we can choose our own format... + */ + typedef [v1_enum] enum { + PREFIX_MAP_VERSION_DSDB = 0x44544442 + } prefixMapVersion; + + typedef [nodiscriminant] union { + [case(PREFIX_MAP_VERSION_DSDB)] drsuapi_DsReplicaOIDMapping_Ctr dsdb; + } prefixMapCtr; + + typedef [public] struct { + prefixMapVersion version; + uint32 reserved; + [switch_is(version)] prefixMapCtr ctr; + } prefixMapBlob; + + void decode_prefixMap( + [in] prefixMapBlob blob + ); + + /* + * the cookie for the LDAP dirsync control + */ typedef [nodiscriminant,gensize] union { [case(0)]; [default] replUpToDateVectorBlob uptodateness_vector; diff --git a/source4/librpc/idl/drsuapi.idl b/source4/librpc/idl/drsuapi.idl index e537b94d9c..a605271ad0 100644 --- a/source4/librpc/idl/drsuapi.idl +++ b/source4/librpc/idl/drsuapi.idl @@ -336,7 +336,7 @@ interface drsuapi drsuapi_DsReplicaOID oid; } drsuapi_DsReplicaOIDMapping; - typedef struct { + typedef [public] struct { [range(0,0x100000)] uint32 num_mappings; [size_is(num_mappings)] drsuapi_DsReplicaOIDMapping *mappings; } drsuapi_DsReplicaOIDMapping_Ctr; -- cgit