1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

idl: more netlogon merges between s3 and s4.

Guenther
This commit is contained in:
Günther Deschner 2008-10-15 15:14:00 +02:00
parent 714cde8bc1
commit 94d7e52dd8
2 changed files with 52 additions and 16 deletions

View File

@ -1111,6 +1111,16 @@ interface netlogon
/****************/
/* Function 0x1d */
typedef [bitmap32bit] bitmap {
NETR_TRUST_FLAG_IN_FOREST = 0x00000001,
NETR_TRUST_FLAG_OUTBOUND = 0x00000002,
NETR_TRUST_FLAG_TREEROOT = 0x00000004,
NETR_TRUST_FLAG_PRIMARY = 0x00000008,
NETR_TRUST_FLAG_NATIVE = 0x00000010,
NETR_TRUST_FLAG_INBOUND = 0x00000020,
NETR_TRUST_FLAG_MIT_KRB5 = 0x00000080,
NETR_TRUST_FLAG_AES = 0x00000100
} netr_TrustFlags;
typedef [flag(NDR_PAHEX)] struct {
uint16 length;
@ -1138,26 +1148,61 @@ interface netlogon
[case(2)] netr_DomainQuery1 *query1;
} netr_DomainQuery;
typedef struct {
/* these first 3 values come from the fact windows
actually encodes this structure as a UNICODE_STRING
- see MS-NRPC section 2.2.1.3.9 */
[value(8)] uint32 length;
[value(0)] uint32 dummy;
[value(8)] uint32 size;
netr_TrustFlags flags;
uint32 parent_index;
uint32 trust_type;
uint32 trust_attributes;
} netr_trust_extension;
typedef struct {
uint16 length; /* value is 16 when info != NULL, otherwise 0 */
[value(length)] uint16 size; /* value is 16 when info != NULL, otherwise 0 */
netr_trust_extension *info;
} netr_trust_extension_container;
typedef struct {
lsa_String domainname;
lsa_String fulldomainname;
lsa_String forest;
GUID guid;
dom_sid2 *sid;
netr_BinaryString unknown1[4];
uint32 unknown[4];
netr_trust_extension_container trust_extension;
lsa_String dummystring[3];
uint32 dummy[4];
} netr_DomainTrustInfo;
typedef struct {
uint32 policy_size;
[size_is(policy_size)] uint8 *policy;
} netr_LsaPolicyInfo;
typedef [public,bitmap32bit] bitmap {
NETR_WS_FLAG_HANDLES_INBOUND_TRUSTS = 0x00000001,
NETR_WS_FLAG_HANDLES_SPN_UPDATE = 0x00000002
} netr_WorkstationFlags;
typedef struct {
netr_DomainTrustInfo domaininfo;
uint32 num_trusts;
[size_is(num_trusts)] netr_DomainTrustInfo *trusts;
uint32 unknown[14]; /* room for expansion? */
netr_LsaPolicyInfo lsa_policy;
lsa_String dns_hostname;
lsa_String dummystring[3];
netr_WorkstationFlags workstation_flags;
uint32 supported_enc_types;
uint32 dummy[2];
} netr_DomainInfo1;
typedef union {
[case(1)] netr_DomainInfo1 *info1;
[case(2)] netr_DomainInfo1 *info1;
[case(2)] netr_DomainInfo1 *info2;
} netr_DomainInfo;
NTSTATUS netr_LogonGetDomainInfo(
@ -1241,15 +1286,6 @@ interface netlogon
/****************/
/* Function 0x24 */
typedef [bitmap32bit] bitmap {
NETR_TRUST_FLAG_IN_FOREST = 0x00000001,
NETR_TRUST_FLAG_OUTBOUND = 0x00000002,
NETR_TRUST_FLAG_TREEROOT = 0x00000004,
NETR_TRUST_FLAG_PRIMARY = 0x00000008,
NETR_TRUST_FLAG_NATIVE = 0x00000010,
NETR_TRUST_FLAG_INBOUND = 0x00000020
} netr_TrustFlags;
typedef [v1_enum] enum {
NETR_TRUST_TYPE_DOWNLEVEL = 1,
NETR_TRUST_TYPE_UPLEVEL = 2,

View File

@ -46,7 +46,7 @@ interface netlogon
[in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] [string,charset(UTF16)] uint16 account_name[],
[in] [string,charset(UTF16)] uint16 workstation[],
[out,unique] netr_UasInfo *info
[out,ref] netr_UasInfo *info
);
@ -62,7 +62,7 @@ interface netlogon
[in,unique] [string,charset(UTF16)] uint16 *server_name,
[in] [string,charset(UTF16)] uint16 account_name[],
[in] [string,charset(UTF16)] uint16 workstation[],
[out] netr_UasLogoffInfo info
[out,ref] netr_UasLogoffInfo *info
);
@ -883,7 +883,7 @@ interface netlogon
WERROR netr_LogonControl2(
[in,unique] [string,charset(UTF16)] uint16 *logon_server,
[in] uint32 function_code,
[in] netr_LogonControlCode function_code,
[in] uint32 level,
[in][switch_is(function_code)] netr_CONTROL_DATA_INFORMATION data,
[out][switch_is(level)] netr_CONTROL_QUERY_INFORMATION query