1 #include "librpc/gen_ndr/ndr_netlogon.h"
2 #ifndef __CLI_NETLOGON__
3 #define __CLI_NETLOGON__
4 NTSTATUS
rpccli_netr_LogonUasLogon(struct rpc_pipe_client
*cli
,
6 const char *server_name
/* [in] [unique,charset(UTF16)] */,
7 const char *account_name
/* [in] [charset(UTF16)] */,
8 const char *workstation
/* [in] [charset(UTF16)] */,
9 struct netr_UasInfo
*info
/* [out] [ref] */,
11 NTSTATUS
rpccli_netr_LogonUasLogoff(struct rpc_pipe_client
*cli
,
13 const char *server_name
/* [in] [unique,charset(UTF16)] */,
14 const char *account_name
/* [in] [charset(UTF16)] */,
15 const char *workstation
/* [in] [charset(UTF16)] */,
16 struct netr_UasLogoffInfo
*info
/* [out] [ref] */,
18 NTSTATUS
rpccli_netr_LogonSamLogon(struct rpc_pipe_client
*cli
,
20 const char *server_name
/* [in] [unique,charset(UTF16)] */,
21 const char *computer_name
/* [in] [unique,charset(UTF16)] */,
22 struct netr_Authenticator
*credential
/* [in] [unique] */,
23 struct netr_Authenticator
*return_authenticator
/* [in,out] [unique] */,
24 enum netr_LogonLevel logon_level
/* [in] */,
25 union netr_LogonInfo
*logon
/* [in] [ref,switch_is(logon_level)] */,
26 uint16_t validation_level
/* [in] */,
27 union netr_Validation
*validation
/* [out] [ref,switch_is(validation_level)] */,
28 uint8_t *authoritative
/* [out] [ref] */);
29 NTSTATUS
rpccli_netr_LogonSamLogoff(struct rpc_pipe_client
*cli
,
31 const char *server_name
/* [in] [unique,charset(UTF16)] */,
32 const char *computer_name
/* [in] [unique,charset(UTF16)] */,
33 struct netr_Authenticator
*credential
/* [in] [unique] */,
34 struct netr_Authenticator
*return_authenticator
/* [in,out] [unique] */,
35 enum netr_LogonLevel logon_level
/* [in] */,
36 union netr_LogonInfo logon
/* [in] [switch_is(logon_level)] */);
37 NTSTATUS
rpccli_netr_ServerReqChallenge(struct rpc_pipe_client
*cli
,
39 const char *server_name
/* [in] [unique,charset(UTF16)] */,
40 const char *computer_name
/* [in] [charset(UTF16)] */,
41 struct netr_Credential
*credentials
/* [in] [ref] */,
42 struct netr_Credential
*return_credentials
/* [out] [ref] */);
43 NTSTATUS
rpccli_netr_ServerAuthenticate(struct rpc_pipe_client
*cli
,
45 const char *server_name
/* [in] [unique,charset(UTF16)] */,
46 const char *account_name
/* [in] [charset(UTF16)] */,
47 enum netr_SchannelType secure_channel_type
/* [in] */,
48 const char *computer_name
/* [in] [charset(UTF16)] */,
49 struct netr_Credential
*credentials
/* [in] [ref] */,
50 struct netr_Credential
*return_credentials
/* [out] [ref] */);
51 NTSTATUS
rpccli_netr_ServerPasswordSet(struct rpc_pipe_client
*cli
,
53 const char *server_name
/* [in] [unique,charset(UTF16)] */,
54 const char *account_name
/* [in] [charset(UTF16)] */,
55 enum netr_SchannelType secure_channel_type
/* [in] */,
56 const char *computer_name
/* [in] [charset(UTF16)] */,
57 struct netr_Authenticator
*credential
/* [in] [ref] */,
58 struct netr_Authenticator
*return_authenticator
/* [out] [ref] */,
59 struct samr_Password
*new_password
/* [in] [ref] */);
60 NTSTATUS
rpccli_netr_DatabaseDeltas(struct rpc_pipe_client
*cli
,
62 const char *logon_server
/* [in] [charset(UTF16)] */,
63 const char *computername
/* [in] [charset(UTF16)] */,
64 struct netr_Authenticator
*credential
/* [in] [ref] */,
65 struct netr_Authenticator
*return_authenticator
/* [in,out] [ref] */,
66 enum netr_SamDatabaseID database_id
/* [in] */,
67 uint64_t *sequence_num
/* [in,out] [ref] */,
68 struct netr_DELTA_ENUM_ARRAY
**delta_enum_array
/* [out] [ref] */,
69 uint32_t preferredmaximumlength
/* [in] */);
70 NTSTATUS
rpccli_netr_DatabaseSync(struct rpc_pipe_client
*cli
,
72 const char *logon_server
/* [in] [charset(UTF16)] */,
73 const char *computername
/* [in] [charset(UTF16)] */,
74 struct netr_Authenticator credential
/* [in] */,
75 struct netr_Authenticator
*return_authenticator
/* [in,out] [ref] */,
76 enum netr_SamDatabaseID database_id
/* [in] */,
77 uint32_t *sync_context
/* [in,out] [ref] */,
78 uint32_t preferredmaximumlength
/* [in] */,
79 struct netr_DELTA_ENUM_ARRAY
*delta_enum_array
/* [out] [ref] */);
80 NTSTATUS
rpccli_netr_AccountDeltas(struct rpc_pipe_client
*cli
,
82 const char *logon_server
/* [in] [unique,charset(UTF16)] */,
83 const char *computername
/* [in] [charset(UTF16)] */,
84 struct netr_Authenticator credential
/* [in] */,
85 struct netr_Authenticator
*return_authenticator
/* [in,out] [ref] */,
86 struct netr_UAS_INFO_0 uas
/* [in] */,
87 uint32_t count
/* [in] */,
88 uint32_t level
/* [in] */,
89 uint32_t buffersize
/* [in] */,
90 struct netr_AccountBuffer
*buffer
/* [out] [ref,subcontext(4)] */,
91 uint32_t *count_returned
/* [out] [ref] */,
92 uint32_t *total_entries
/* [out] [ref] */,
93 struct netr_UAS_INFO_0
*recordid
/* [out] [ref] */);
94 NTSTATUS
rpccli_netr_AccountSync(struct rpc_pipe_client
*cli
,
96 const char *logon_server
/* [in] [unique,charset(UTF16)] */,
97 const char *computername
/* [in] [charset(UTF16)] */,
98 struct netr_Authenticator credential
/* [in] */,
99 struct netr_Authenticator
*return_authenticator
/* [in,out] [ref] */,
100 uint32_t reference
/* [in] */,
101 uint32_t level
/* [in] */,
102 uint32_t buffersize
/* [in] */,
103 struct netr_AccountBuffer
*buffer
/* [out] [ref,subcontext(4)] */,
104 uint32_t *count_returned
/* [out] [ref] */,
105 uint32_t *total_entries
/* [out] [ref] */,
106 uint32_t *next_reference
/* [out] [ref] */,
107 struct netr_UAS_INFO_0
*recordid
/* [in,out] [ref] */);
108 NTSTATUS
rpccli_netr_GetDcName(struct rpc_pipe_client
*cli
,
110 const char *logon_server
/* [in] [charset(UTF16)] */,
111 const char *domainname
/* [in] [unique,charset(UTF16)] */,
112 const char **dcname
/* [out] [ref,charset(UTF16)] */,
114 NTSTATUS
rpccli_netr_LogonControl(struct rpc_pipe_client
*cli
,
116 const char *logon_server
/* [in] [unique,charset(UTF16)] */,
117 enum netr_LogonControlCode function_code
/* [in] */,
118 uint32_t level
/* [in] */,
119 union netr_CONTROL_QUERY_INFORMATION
*info
/* [out] [ref,switch_is(level)] */,
121 NTSTATUS
rpccli_netr_GetAnyDCName(struct rpc_pipe_client
*cli
,
123 const char *logon_server
/* [in] [unique,charset(UTF16)] */,
124 const char *domainname
/* [in] [unique,charset(UTF16)] */,
125 const char **dcname
/* [out] [ref,charset(UTF16)] */,
127 NTSTATUS
rpccli_netr_LogonControl2(struct rpc_pipe_client
*cli
,
129 const char *logon_server
/* [in] [unique,charset(UTF16)] */,
130 enum netr_LogonControlCode function_code
/* [in] */,
131 uint32_t level
/* [in] */,
132 union netr_CONTROL_DATA_INFORMATION
*data
/* [in] [ref,switch_is(function_code)] */,
133 union netr_CONTROL_QUERY_INFORMATION
*query
/* [out] [ref,switch_is(level)] */,
135 NTSTATUS
rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client
*cli
,
137 const char *server_name
/* [in] [unique,charset(UTF16)] */,
138 const char *account_name
/* [in] [charset(UTF16)] */,
139 enum netr_SchannelType secure_channel_type
/* [in] */,
140 const char *computer_name
/* [in] [charset(UTF16)] */,
141 struct netr_Credential
*credentials
/* [in] [ref] */,
142 struct netr_Credential
*return_credentials
/* [out] [ref] */,
143 uint32_t *negotiate_flags
/* [in,out] [ref] */);
144 NTSTATUS
rpccli_netr_DatabaseSync2(struct rpc_pipe_client
*cli
,
146 const char *logon_server
/* [in] [charset(UTF16)] */,
147 const char *computername
/* [in] [charset(UTF16)] */,
148 struct netr_Authenticator
*credential
/* [in] [ref] */,
149 struct netr_Authenticator
*return_authenticator
/* [in,out] [ref] */,
150 enum netr_SamDatabaseID database_id
/* [in] */,
151 uint16_t restart_state
/* [in] */,
152 uint32_t *sync_context
/* [in,out] [ref] */,
153 struct netr_DELTA_ENUM_ARRAY
**delta_enum_array
/* [out] [ref] */,
154 uint32_t preferredmaximumlength
/* [in] */);
155 NTSTATUS
rpccli_netr_DatabaseRedo(struct rpc_pipe_client
*cli
,
157 const char *logon_server
/* [in] [charset(UTF16)] */,
158 const char *computername
/* [in] [charset(UTF16)] */,
159 struct netr_Authenticator credential
/* [in] */,
160 struct netr_Authenticator
*return_authenticator
/* [in,out] [ref] */,
161 uint8_t *change_log_entry
/* [in] [unique,size_is(change_log_entry_size)] */,
162 uint32_t change_log_entry_size
/* [in] */,
163 struct netr_DELTA_ENUM_ARRAY
*delta_enum_array
/* [out] [ref] */);
164 NTSTATUS
rpccli_netr_LogonControl2Ex(struct rpc_pipe_client
*cli
,
166 const char *logon_server
/* [in] [unique,charset(UTF16)] */,
167 uint32_t function_code
/* [in] */,
168 uint32_t level
/* [in] */,
169 union netr_CONTROL_DATA_INFORMATION data
/* [in] [switch_is(function_code)] */,
170 union netr_CONTROL_QUERY_INFORMATION
*query
/* [out] [ref,switch_is(level)] */,
172 NTSTATUS
rpccli_netr_NetrEnumerateTrustedDomains(struct rpc_pipe_client
*cli
,
174 const char *server_name
/* [in] [unique,charset(UTF16)] */,
175 struct netr_Blob
*trusted_domains_blob
/* [out] [ref] */,
177 NTSTATUS
rpccli_netr_DsRGetDCName(struct rpc_pipe_client
*cli
,
179 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
180 const char *domain_name
/* [in] [unique,charset(UTF16)] */,
181 struct GUID
*domain_guid
/* [in] [unique] */,
182 struct GUID
*site_guid
/* [in] [unique] */,
183 uint32_t flags
/* [in] */,
184 struct netr_DsRGetDCNameInfo
**info
/* [out] [ref] */,
186 NTSTATUS
rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client
*cli
,
189 NTSTATUS
rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client
*cli
,
192 NTSTATUS
rpccli_netr_LogonGetTrustRid(struct rpc_pipe_client
*cli
,
194 const char *server_name
/* [in] [unique,charset(UTF16)] */,
195 const char *domain_name
/* [in] [unique,charset(UTF16)] */,
196 uint32_t *rid
/* [out] [ref] */,
198 NTSTATUS
rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client
*cli
,
201 NTSTATUS
rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client
*cli
,
204 NTSTATUS
rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client
*cli
,
206 const char *server_name
/* [in] [unique,charset(UTF16)] */,
207 const char *account_name
/* [in] [charset(UTF16)] */,
208 enum netr_SchannelType secure_channel_type
/* [in] */,
209 const char *computer_name
/* [in] [charset(UTF16)] */,
210 struct netr_Credential
*credentials
/* [in,out] [ref] */,
211 uint32_t *negotiate_flags
/* [in,out] [ref] */,
212 uint32_t *rid
/* [out] [ref] */);
213 NTSTATUS
rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client
*cli
,
215 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
216 const char *domain_name
/* [in] [unique,charset(UTF16)] */,
217 struct GUID
*domain_guid
/* [in] [unique] */,
218 const char *site_name
/* [in] [unique,charset(UTF16)] */,
219 uint32_t flags
/* [in] */,
220 struct netr_DsRGetDCNameInfo
**info
/* [out] [ref] */,
222 NTSTATUS
rpccli_netr_DsRGetSiteName(struct rpc_pipe_client
*cli
,
224 const char *computer_name
/* [in] [unique,charset(UTF16)] */,
225 const char **site
/* [out] [ref,charset(UTF16)] */,
227 NTSTATUS
rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client
*cli
,
229 const char *server_name
/* [in] [charset(UTF16)] */,
230 const char *computer_name
/* [in] [unique,charset(UTF16)] */,
231 struct netr_Authenticator
*credential
/* [in] [ref] */,
232 struct netr_Authenticator
*return_authenticator
/* [in,out] [ref] */,
233 uint32_t level
/* [in] */,
234 union netr_DomainQuery query
/* [in] [switch_is(level)] */,
235 union netr_DomainInfo
*info
/* [out] [ref,switch_is(level)] */);
236 NTSTATUS
rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client
*cli
,
238 const char *server_name
/* [in] [unique,charset(UTF16)] */,
239 const char *account_name
/* [in] [charset(UTF16)] */,
240 enum netr_SchannelType secure_channel_type
/* [in] */,
241 const char *computer_name
/* [in] [charset(UTF16)] */,
242 struct netr_Authenticator
*credential
/* [in] [ref] */,
243 struct netr_Authenticator
*return_authenticator
/* [out] [ref] */,
244 struct netr_CryptPassword
*new_password
/* [in] [ref] */);
245 NTSTATUS
rpccli_netr_ServerPasswordGet(struct rpc_pipe_client
*cli
,
247 const char *server_name
/* [in] [unique,charset(UTF16)] */,
248 const char *account_name
/* [in] [charset(UTF16)] */,
249 enum netr_SchannelType secure_channel_type
/* [in] */,
250 const char *computer_name
/* [in] [charset(UTF16)] */,
251 struct netr_Authenticator
*credential
/* [in] [ref] */,
252 struct netr_Authenticator
*return_authenticator
/* [out] [ref] */,
253 struct samr_Password
*password
/* [out] [ref] */,
255 NTSTATUS
rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client
*cli
,
258 NTSTATUS
rpccli_netr_DsRAddressToSitenamesW(struct rpc_pipe_client
*cli
,
260 const char *server_name
/* [in] [unique,charset(UTF16)] */,
261 uint32_t count
/* [in] [range(0,32000)] */,
262 struct netr_DsRAddress
*addresses
/* [in] [ref,size_is(count)] */,
263 struct netr_DsRAddressToSitenamesWCtr
**ctr
/* [out] [ref] */,
265 NTSTATUS
rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client
*cli
,
267 const char *server_unc
/* [in] [unique,charset(UTF16)] */,
268 const char *client_account
/* [in] [unique,charset(UTF16)] */,
269 uint32_t mask
/* [in] */,
270 const char *domain_name
/* [in] [unique,charset(UTF16)] */,
271 struct GUID
*domain_guid
/* [in] [unique] */,
272 const char *site_name
/* [in] [unique,charset(UTF16)] */,
273 uint32_t flags
/* [in] */,
274 struct netr_DsRGetDCNameInfo
**info
/* [out] [ref] */,
276 NTSTATUS
rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client
*cli
,
279 NTSTATUS
rpccli_netr_NetrEnumerateTrustedDomainsEx(struct rpc_pipe_client
*cli
,
281 const char *server_name
/* [in] [unique,charset(UTF16)] */,
282 struct netr_DomainTrustList
*dom_trust_list
/* [out] [ref] */,
284 NTSTATUS
rpccli_netr_DsRAddressToSitenamesExW(struct rpc_pipe_client
*cli
,
286 const char *server_name
/* [in] [unique,charset(UTF16)] */,
287 uint32_t count
/* [in] [range(0,32000)] */,
288 struct netr_DsRAddress
*addresses
/* [in] [ref,size_is(count)] */,
289 struct netr_DsRAddressToSitenamesExWCtr
**ctr
/* [out] [ref] */,
291 NTSTATUS
rpccli_netr_DsrGetDcSiteCoverageW(struct rpc_pipe_client
*cli
,
293 const char *server_name
/* [in] [unique,charset(UTF16)] */,
294 struct DcSitesCtr
*ctr
/* [out] [ref] */,
296 NTSTATUS
rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client
*cli
,
298 const char *server_name
/* [in] [unique,charset(UTF16)] */,
299 const char *computer_name
/* [in] [unique,charset(UTF16)] */,
300 enum netr_LogonLevel logon_level
/* [in] */,
301 union netr_LogonInfo
*logon
/* [in] [ref,switch_is(logon_level)] */,
302 uint16_t validation_level
/* [in] */,
303 union netr_Validation
*validation
/* [out] [ref,switch_is(validation_level)] */,
304 uint8_t *authoritative
/* [out] [ref] */,
305 uint32_t *flags
/* [in,out] [ref] */);
306 NTSTATUS
rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client
*cli
,
308 const char *server_name
/* [in] [unique,charset(UTF16)] */,
309 uint32_t trust_flags
/* [in] */,
310 struct netr_DomainTrustList
*trusts
/* [out] [ref] */,
312 NTSTATUS
rpccli_netr_DsrDeregisterDNSHostRecords(struct rpc_pipe_client
*cli
,
314 const char *server_name
/* [in] [unique,charset(UTF16)] */,
315 const char *domain
/* [in] [unique,charset(UTF16)] */,
316 struct GUID
*domain_guid
/* [in] [unique] */,
317 struct GUID
*dsa_guid
/* [in] [unique] */,
318 const char *dns_host
/* [in] [ref,charset(UTF16)] */,
320 NTSTATUS
rpccli_netr_ServerTrustPasswordsGet(struct rpc_pipe_client
*cli
,
322 const char *server_name
/* [in] [unique,charset(UTF16)] */,
323 const char *account_name
/* [in] [charset(UTF16)] */,
324 enum netr_SchannelType secure_channel_type
/* [in] */,
325 const char *computer_name
/* [in] [charset(UTF16)] */,
326 struct netr_Authenticator
*credential
/* [in] [ref] */,
327 struct netr_Authenticator
*return_authenticator
/* [out] [ref] */,
328 struct samr_Password
*password
/* [out] [ref] */,
329 struct samr_Password
*password2
/* [out] [ref] */);
330 NTSTATUS
rpccli_netr_DsRGetForestTrustInformation(struct rpc_pipe_client
*cli
,
332 const char *server_name
/* [in] [unique,charset(UTF16)] */,
333 const char *trusted_domain_name
/* [in] [unique,charset(UTF16)] */,
334 uint32_t flags
/* [in] */,
335 struct lsa_ForestTrustInformation
**forest_trust_info
/* [out] [ref] */,
337 NTSTATUS
rpccli_netr_GetForestTrustInformation(struct rpc_pipe_client
*cli
,
339 const char *server_name
/* [in] [unique,charset(UTF16)] */,
340 const char *trusted_domain_name
/* [in] [ref,charset(UTF16)] */,
341 struct netr_Authenticator
*credential
/* [in] [ref] */,
342 struct netr_Authenticator
*return_authenticator
/* [out] [ref] */,
343 uint32_t flags
/* [in] */,
344 struct lsa_ForestTrustInformation
**forest_trust_info
/* [out] [ref] */,
346 NTSTATUS
rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client
*cli
,
348 const char *server_name
/* [in] [unique,charset(UTF16)] */,
349 const char *computer_name
/* [in] [unique,charset(UTF16)] */,
350 struct netr_Authenticator
*credential
/* [in] [unique] */,
351 struct netr_Authenticator
*return_authenticator
/* [in,out] [unique] */,
352 enum netr_LogonLevel logon_level
/* [in] */,
353 union netr_LogonInfo logon
/* [in] [switch_is(logon_level)] */,
354 uint16_t validation_level
/* [in] */,
355 union netr_Validation
*validation
/* [out] [ref,switch_is(validation_level)] */,
356 uint8_t *authoritative
/* [out] [ref] */,
357 uint32_t *flags
/* [in,out] [ref] */);
358 NTSTATUS
rpccli_netr_NETRSERVERGETTRUSTINFO(struct rpc_pipe_client
*cli
,
361 #endif /* __CLI_NETLOGON__ */