summaryrefslogtreecommitdiff
path: root/source4/librpc/idl/drsuapi.idl
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/idl/drsuapi.idl')
-rw-r--r--source4/librpc/idl/drsuapi.idl286
1 files changed, 283 insertions, 3 deletions
diff --git a/source4/librpc/idl/drsuapi.idl b/source4/librpc/idl/drsuapi.idl
index b4784da95b..15d1ca8efc 100644
--- a/source4/librpc/idl/drsuapi.idl
+++ b/source4/librpc/idl/drsuapi.idl
@@ -17,8 +17,12 @@ interface drsuapi
[size_is(length)] uint8 data[];
} drsuapi_DsBindInfo;
- /* this is a magic guid you need to pass to DsBind to make drsuapi_DsWriteAccountSpn() work */
+ /* this is a magic guid you need to pass to DsBind to make drsuapi_DsWriteAccountSpn() work
+ *
+ * maybe the bind_guid could also be the invocation_id see drsuapi_DsReplicaConnection04
+ */
const string DRSUAPI_DS_BIND_GUID = "e24d201a-4fd6-11d1-a3da-0000f875ae0d";
+
/* this are the bind info blobs returned (seemed to be const):
w2k3 7ffbff1f81a6ff5d80139441a372e9b779d70268f801000000000000
@@ -310,8 +314,284 @@ interface drsuapi
WERROR DRSUAPI_EXECUTE_KCC();
/*****************/
- /* Function 0x13 */
- WERROR DRSUAPI_GET_REPL_INFO();
+ /* Function 0x13 */
+ typedef enum {
+ DRSUAPI_DS_REPLICA_GET_INFO = 1,
+ DRSUAPI_DS_REPLICA_GET_INFO2 = 2
+ } drsuapi_DsReplicaGetInfoLevel;
+
+ typedef enum {
+ DRSUAPI_DS_REPLICA_INFO_NEIGHBORS = 0,
+ DRSUAPI_DS_REPLICA_INFO_CURSORS = 1,
+ DRSUAPI_DS_REPLICA_INFO_OBJ_METADATA = 2,
+ DRSUAPI_DS_REPLICA_INFO_KCC_DSA_CONNECT_FAILURES = 3,
+ DRSUAPI_DS_REPLICA_INFO_KCC_DSA_LINK_FAILURES = 4,
+ DRSUAPI_DS_REPLICA_INFO_PENDING_OPS = 5,
+ DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA = 6,
+ DRSUAPI_DS_REPLICA_INFO_CURSORS2 = 7,
+ DRSUAPI_DS_REPLICA_INFO_CURSORS3 = 8,
+ DRSUAPI_DS_REPLICA_INFO_OBJ_METADATA2 = 9,
+ DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA2 = 10,
+ DRSUAPI_DS_REPLICA_INFO_NEIGHBORS02 = -2,
+ DRSUAPI_DS_REPLICA_INFO_CONNECTIONS04 = -4,
+ DRSUAPI_DS_REPLICA_INFO_CURSURS05 = -5,
+ DRSUAPI_DS_REPLICA_INFO_06 = -6
+ } drsuapi_DsReplicaInfoType;
+
+ typedef struct {
+ int32 info_type;
+ unistr *object_dn;
+ GUID guid1;
+ } drsuapi_DsReplicaGetInfoRequest1;
+
+ typedef struct {
+ int32 info_type;
+ unistr *object_dn;
+ GUID guid1;
+ uint32 unknown1;
+ unistr *string1;
+ unistr *string2;
+ uint32 unknown2;
+ } drsuapi_DsReplicaGetInfoRequest2;
+
+ typedef union {
+ [case(1)] drsuapi_DsReplicaGetInfoRequest1 req1;
+ [case(2)] drsuapi_DsReplicaGetInfoRequest2 req2;
+ } drsuapi_DsReplicaGetInfoRequest;
+
+ typedef struct {
+ unistr *naming_context_dn;
+ unistr *source_dsa_obj_dn;
+ unistr *source_dsa_address;
+ unistr *transport_obj_dn;
+ uint32 replica_flags;
+ uint32 reserved;
+ GUID naming_context_obj_guid;
+ GUID source_dsa_obj_guid;
+ GUID source_dsa_invocation_id;
+ GUID transport_obj_guid;
+ uint64 tmp_highest_usn;
+ uint64 highest_usn;
+ NTTIME last_success;
+ NTTIME last_attempt;
+ WERROR result_last_attempt;
+ uint32 consecutive_sync_failures;
+ } drsuapi_DsReplicaNeighbour;
+
+ typedef struct {
+ uint32 count;
+ uint32 reserved;
+ [size_is(count)] drsuapi_DsReplicaNeighbour array[];
+ } drsuapi_DsReplicaNeighbourCtr;
+
+ typedef struct {
+ GUID source_dsa_invocation_id;
+ uint64 highest_usn;
+ } drsuapi_DsReplicaCoursor;
+
+ typedef struct {
+ uint32 count;
+ uint32 reserved;
+ [size_is(count)] drsuapi_DsReplicaCoursor array[];
+ } drsuapi_DsReplicaCoursorCtr;
+
+ typedef struct {
+ unistr *attribute_name;
+ uint32 version;
+ NTTIME originating_last_changed;
+ GUID originating_dsa_invocation_id;
+ uint64 originating_usn;
+ uint64 local_usn;
+ } drsuapi_DsReplicaObjMetaData;
+
+ typedef struct {
+ uint32 count;
+ uint32 reserved;
+ [size_is(count)] drsuapi_DsReplicaObjMetaData array[];
+ } drsuapi_DsReplicaObjMetaDataCtr;
+
+ typedef struct {
+ unistr *dsa_obj_dn;
+ GUID dsa_obj_guid;
+ NTTIME first_failure;
+ uint32 num_failures;
+ WERROR last_result;
+ } drsuapi_DsReplicaKccDsaFailure;
+
+ typedef struct {
+ uint32 count;
+ uint32 reserved;
+ [size_is(count)] drsuapi_DsReplicaKccDsaFailure array[];
+ } drsuapi_DsReplicaKccDsaFailuresCtr;
+
+ typedef struct {
+ NTTIME operation_start;
+ uint32 serial_num; /* unique till reboot */
+ uint32 priority;
+ uint16 operation_type;
+ uint32 options_flags;
+ unistr *nc_dn;
+ unistr *remote_dsa_obj_dn;
+ unistr *remote_dsa_address;
+ GUID nc_obj_guid;
+ GUID remote_dsa_obj_guid;
+ } drsuapi_DsReplicaOp;
+
+ typedef struct {
+ NTTIME time;
+ uint32 count;
+ [size_is(count)] drsuapi_DsReplicaOp array[];
+ } drsuapi_DsReplicaOpCtr;
+
+ typedef struct {
+ unistr *attribute_name;
+ unistr *object_dn;
+ uint32 value_length;
+ [size_is(value_length)] uint8 *value;
+ NTTIME deleted;
+ NTTIME created;
+ uint32 version;
+ NTTIME originating_last_changed;
+ GUID originating_dsa_invocation_id;
+ uint64 originating_usn;
+ uint64 local_usn;
+ } drsuapi_DsReplicaAttrValMetaData;
+
+ typedef struct {
+ uint32 count;
+ int32 enumeration_context;
+ [size_is(count)] drsuapi_DsReplicaAttrValMetaData array[];
+ } drsuapi_DsReplicaAttrValMetaDataCtr;
+
+ typedef struct {
+ GUID source_dsa_invocation_id;
+ uint64 highest_usn;
+ NTTIME last_sync_success;
+ } drsuapi_DsReplicaCoursor2;
+
+ typedef struct {
+ uint32 count;
+ int32 enumeration_context;
+ [size_is(count)] drsuapi_DsReplicaCoursor2 array[];
+ } drsuapi_DsReplicaCoursor2Ctr;
+
+ typedef struct {
+ GUID source_dsa_invocation_id;
+ uint64 highest_usn;
+ NTTIME last_sync_success;
+ unistr *source_dsa_obj_dn;
+ } drsuapi_DsReplicaCoursor3;
+
+ typedef struct {
+ uint32 count;
+ int32 enumeration_context;
+ [size_is(count)] drsuapi_DsReplicaCoursor3 array[];
+ } drsuapi_DsReplicaCoursor3Ctr;
+
+ typedef struct {
+ uint32 attribute_name;/*unistr *attribute_name;*/
+ uint32 version;
+ NTTIME originating_last_changed;
+ GUID originating_dsa_invocation_id;
+ uint64 originating_usn;
+ uint64 local_usn;
+ uint32 originating_dsa_obj_dn;/*unistr *originating_dsa_obj_dn;*/
+ uint32 u1; /* in the last element this is not present; some stupid alignment? */
+ } drsuapi_DsReplicaObjMetaData2;
+
+ typedef struct {
+ uint32 count;
+ int32 enumeration_context;
+ [size_is(count)] drsuapi_DsReplicaObjMetaData2 array[];
+ } drsuapi_DsReplicaObjMetaData2Ctr;
+
+ typedef struct {
+ unistr *attribute_name;
+ unistr *object_dn;
+ uint32 value_length;
+ [size_is(value_length)] uint8 *value;
+ NTTIME deleted;
+ NTTIME created;
+ uint32 version;
+ NTTIME originating_last_changed;
+ GUID originating_dsa_invocation_id;
+ uint64 originating_usn;
+ uint64 local_usn;
+ unistr *originating_dsa_obj_dn;
+ } drsuapi_DsReplicaAttrValMetaData2;
+
+ typedef struct {
+ uint32 count;
+ int32 enumeration_context;
+ [size_is(count)] drsuapi_DsReplicaAttrValMetaData2 array[];
+ } drsuapi_DsReplicaAttrValMetaData2Ctr;
+
+ typedef struct {
+ uint64 u1; /* session number? */
+ uint32 u2;
+ uint32 u3;
+ GUID bind_guid;
+ NTTIME_1sec bind_time;
+ uint32 u4; /* flags? */
+ uint32 u5;
+ } drsuapi_DsReplicaConnection04;
+
+ typedef struct {
+ [range(0,10000)] uint32 count;
+ uint32 reserved;
+ [size_is(count)] drsuapi_DsReplicaConnection04 array[];
+ } drsuapi_DsReplicaConnection04Ctr;
+
+ typedef struct {
+ uint32 u1;
+ uint32 u2;
+ [range(0,0x100000)] uint32 count;
+ uint32 u3;
+ [size_is(count)] drsuapi_DsReplicaCoursor array[];
+ } drsuapi_DsReplicaCoursor05Ctr;
+
+ typedef struct {
+ unistr *str1;
+ uint32 u1;
+ uint32 u2;
+ uint32 u3;
+ uint32 u4;
+ uint32 u5;
+ uint64 u6;
+ uint32 u7;
+ } drsuapi_DsReplica06;
+
+ typedef struct {
+ [range(0,256)] uint32 count;
+ uint32 reserved;
+ [size_is(count)] drsuapi_DsReplica06 array[];
+ } drsuapi_DsReplica06Ctr;
+
+ typedef union {
+ [case(0)] drsuapi_DsReplicaNeighbourCtr *neighbours;
+ [case(1)] drsuapi_DsReplicaCoursorCtr *coursors;
+ [case(2)] drsuapi_DsReplicaObjMetaDataCtr *objmetadata;
+ [case(3)] drsuapi_DsReplicaKccDsaFailuresCtr *connectfailures;
+ [case(4)] drsuapi_DsReplicaKccDsaFailuresCtr *linkfailures;
+ [case(5)] drsuapi_DsReplicaOpCtr *pendingops;
+ [case(6)] drsuapi_DsReplicaAttrValMetaDataCtr *attrvalmetadata;
+ [case(7)] drsuapi_DsReplicaCoursor2Ctr *coursors2;
+ [case(8)] drsuapi_DsReplicaCoursor3Ctr *coursors3;
+ [case(9)] drsuapi_DsReplicaObjMetaData2Ctr *objmetadata2;
+ [case(10)] drsuapi_DsReplicaAttrValMetaData2Ctr *attrvalmetadata2;
+ [case(-2)] drsuapi_DsReplicaNeighbourCtr *neighbours02;
+ [case(-4)] drsuapi_DsReplicaConnection04Ctr *connections04;
+ [case(-5)] drsuapi_DsReplicaCoursor05Ctr *coursors05;
+ [case(-6)] drsuapi_DsReplica06Ctr *i06;
+ } drsuapi_DsReplicaInfo;
+
+ WERROR drsuapi_DsReplicaGetInfo(
+ [in,ref] policy_handle *bind_handle,
+ [in] int32 level,
+ [in,switch_is(level)] drsuapi_DsReplicaGetInfoRequest req,
+ [out] int32 info_type,
+ [out,switch_is(info_type)] drsuapi_DsReplicaInfo info
+ );
/*****************/
/* Function 0x14 */