Author: metze
Date: 2007-01-13 15:28:24 +0000 (Sat, 13 Jan 2007)
New Revision: 20732

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20732

Log:
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
Modified:
   branches/SAMBA_4_0/source/librpc/idl/drsblobs.idl
   branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/drsblobs.idl
===================================================================
--- branches/SAMBA_4_0/source/librpc/idl/drsblobs.idl   2007-01-13 15:03:00 UTC 
(rev 20731)
+++ branches/SAMBA_4_0/source/librpc/idl/drsblobs.idl   2007-01-13 15:28:24 UTC 
(rev 20732)
@@ -144,6 +144,37 @@
                [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;

Modified: branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl
===================================================================
--- branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl    2007-01-13 15:03:00 UTC 
(rev 20731)
+++ branches/SAMBA_4_0/source/librpc/idl/drsuapi.idl    2007-01-13 15:28:24 UTC 
(rev 20732)
@@ -336,7 +336,7 @@
                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;

Reply via email to