2 import
"lsa.idl", "netlogon.idl", "misc.idl", "security.idl", "idmap.idl";
5 uuid("bf09192c-ed60-4928-9dff-d0d7bcb03ed8"),
7 pointer_default(unique),
9 helpstring("winbind parent-child protocol"),
18 [out] uint32
*out_data
21 NTSTATUS wbint_LookupSid
(
23 [out] lsa_SidType
*type
,
24 [out,string,charset
(UTF8
)] char **domain
,
25 [out,string,charset
(UTF8
)] char **name
28 NTSTATUS wbint_LookupSids
(
29 [in] lsa_SidArray
*sids
,
30 [out,ref] lsa_RefDomainList
*domains
,
31 [out,ref] lsa_TransNameArray
*names
34 NTSTATUS wbint_LookupName
(
35 [in,string,charset
(UTF8
)] char *domain
,
36 [in,string,charset
(UTF8
)] char *name
,
38 [out] lsa_SidType
*type
,
51 [size_is(num_ids
)] wbint_TransID ids
[];
54 NTSTATUS wbint_Sids2UnixIDs
(
55 [in] lsa_RefDomainList
*domains
,
56 [in,out] wbint_TransIDArray
*ids
59 NTSTATUS wbint_UnixIDs2Sids
(
60 [in,string,charset
(UTF8
)] char *domain_name
,
62 [in,out] unixid xids
[num_ids
],
63 [out] dom_sid sids
[num_ids
]
66 NTSTATUS wbint_AllocateUid
(
70 NTSTATUS wbint_AllocateGid
(
74 typedef [public] struct {
75 [string,charset
(UTF8
)] char *domain_name
;
76 [string,charset
(UTF8
)] char *acct_name
;
77 [string,charset
(UTF8
)] char *full_name
;
78 [string,charset
(UTF8
)] char *homedir
;
79 [string,charset
(UTF8
)] char *shell
;
82 [string,charset
(UTF8
)] char *primary_group_name
;
87 NTSTATUS wbint_GetNssInfo
(
88 [in,out] wbint_userinfo
*info
91 typedef [public] struct {
93 [size_is(num_sids
)] dom_sid sids
[];
96 typedef [public] struct {
98 [size_is(num_rids
)] uint32 rids
[];
101 NTSTATUS wbint_LookupUserAliases
(
102 [in] wbint_SidArray
*sids
,
103 [out] wbint_RidArray
*rids
106 NTSTATUS wbint_LookupUserGroups
(
108 [out] wbint_SidArray
*sids
111 NTSTATUS wbint_QuerySequenceNumber
(
112 [out] uint32
*sequence
115 typedef [public] struct {
118 [string,charset
(UTF8
)] char *name
;
121 typedef [public] struct {
123 [size_is(num_principals
)] wbint_Principal principals
[];
126 NTSTATUS wbint_LookupGroupMembers
(
128 [in] lsa_SidType type
,
129 [out] wbint_Principals
*members
132 typedef [public] struct {
133 uint32 num_userinfos
;
134 [size_is(num_userinfos
)] wbint_userinfo userinfos
[];
137 NTSTATUS wbint_QueryGroupList
(
138 [out] wbint_Principals
*groups
141 NTSTATUS wbint_QueryUserRidList
(
142 [out] wbint_RidArray
*rids
145 NTSTATUS wbint_DsGetDcName
(
146 [in,string,charset
(UTF8
)] char *domain_name
,
147 [in,unique] GUID
*domain_guid
,
148 [in,string,unique,charset
(UTF8
)] char *site_name
,
150 [out] netr_DsRGetDCNameInfo
**dc_info
153 NTSTATUS wbint_LookupRids
(
154 [in] dom_sid
*domain_sid
,
155 [in] wbint_RidArray
*rids
,
156 [out,string,charset
(UTF8
)] char **domain_name
,
157 [out] wbint_Principals
*names
160 NTSTATUS wbint_CheckMachineAccount
(
163 NTSTATUS wbint_ChangeMachineAccount
(
166 NTSTATUS wbint_PingDc
(
167 [out,string,charset
(UTF8
)] char **dcname
170 /* Public methods available via IRPC */
172 typedef [switch_type(uint16
)] union netr_LogonLevel netr_LogonLevel
;
173 typedef [switch_type(uint16
)] union netr_Validation netr_Validation
;
176 * do a netr_LogonSamLogon() against the right DC
178 NTSTATUS winbind_SamLogon
(
179 [in] uint16 logon_level
,
180 [in] [switch_is(logon_level
)] netr_LogonLevel logon
,
181 [in] uint16 validation_level
,
182 [out] [switch_is(validation_level
)] netr_Validation validation
,
183 [out] uint8 authoritative
186 NTSTATUS winbind_DsrUpdateReadOnlyServerDnsRecords
(
187 [in,unique] [string,charset
(UTF16
)] uint16
*site_name
,
189 [in,out,ref] NL_DNS_NAME_INFO_ARRAY
*dns_names
193 * do a netr_LogonControl2Ex() against the right DC
195 typedef [v1_enum] enum netr_LogonControlCode netr_LogonControlCode
;
196 typedef [switch_type(netr_LogonControlCode
)] union netr_CONTROL_DATA_INFORMATION netr_CONTROL_DATA_INFORMATION
;
197 typedef [switch_type(uint32
)] union netr_CONTROL_QUERY_INFORMATION netr_CONTROL_QUERY_INFORMATION
;
199 WERROR winbind_LogonControl
(
200 [in] netr_LogonControlCode function_code
,
202 [in,ref][switch_is(function_code
)] netr_CONTROL_DATA_INFORMATION
*data
,
203 [out,ref][switch_is(level
)] netr_CONTROL_QUERY_INFORMATION
*query
207 * do a netr_GetForestTrustInformation() against the right DC
209 WERROR winbind_GetForestTrustInformation
(
210 [in,unique] [string,charset
(UTF16
)] uint16
*trusted_domain_name
,
212 [out,ref] lsa_ForestTrustInformation
**forest_trust_info