re-run make idl.
[Samba.git] / source / librpc / gen_ndr / cli_netlogon.h
blob2033315a5d5fb9b824222fb6c71f1b92f0650f15
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,
5 TALLOC_CTX *mem_ctx,
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] */,
10 WERROR *werror);
11 NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli,
12 TALLOC_CTX *mem_ctx,
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] */,
17 WERROR *werror);
18 NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli,
19 TALLOC_CTX *mem_ctx,
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,
30 TALLOC_CTX *mem_ctx,
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,
38 TALLOC_CTX *mem_ctx,
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,
44 TALLOC_CTX *mem_ctx,
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,
52 TALLOC_CTX *mem_ctx,
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,
61 TALLOC_CTX *mem_ctx,
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,
71 TALLOC_CTX *mem_ctx,
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,
81 TALLOC_CTX *mem_ctx,
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,
95 TALLOC_CTX *mem_ctx,
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,
109 TALLOC_CTX *mem_ctx,
110 const char *logon_server /* [in] [charset(UTF16)] */,
111 const char *domainname /* [in] [unique,charset(UTF16)] */,
112 const char **dcname /* [out] [ref,charset(UTF16)] */,
113 WERROR *werror);
114 NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli,
115 TALLOC_CTX *mem_ctx,
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)] */,
120 WERROR *werror);
121 NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli,
122 TALLOC_CTX *mem_ctx,
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)] */,
126 WERROR *werror);
127 NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli,
128 TALLOC_CTX *mem_ctx,
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)] */,
134 WERROR *werror);
135 NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli,
136 TALLOC_CTX *mem_ctx,
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,
145 TALLOC_CTX *mem_ctx,
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,
156 TALLOC_CTX *mem_ctx,
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,
165 TALLOC_CTX *mem_ctx,
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)] */,
171 WERROR *werror);
172 NTSTATUS rpccli_netr_NetrEnumerateTrustedDomains(struct rpc_pipe_client *cli,
173 TALLOC_CTX *mem_ctx,
174 const char *server_name /* [in] [unique,charset(UTF16)] */,
175 struct netr_Blob *trusted_domains_blob /* [out] [ref] */,
176 WERROR *werror);
177 NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli,
178 TALLOC_CTX *mem_ctx,
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] */,
185 WERROR *werror);
186 NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli,
187 TALLOC_CTX *mem_ctx,
188 WERROR *werror);
189 NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli,
190 TALLOC_CTX *mem_ctx,
191 WERROR *werror);
192 NTSTATUS rpccli_netr_LogonGetTrustRid(struct rpc_pipe_client *cli,
193 TALLOC_CTX *mem_ctx,
194 const char *server_name /* [in] [unique,charset(UTF16)] */,
195 const char *domain_name /* [in] [unique,charset(UTF16)] */,
196 uint32_t *rid /* [out] [ref] */,
197 WERROR *werror);
198 NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli,
199 TALLOC_CTX *mem_ctx,
200 WERROR *werror);
201 NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli,
202 TALLOC_CTX *mem_ctx,
203 WERROR *werror);
204 NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli,
205 TALLOC_CTX *mem_ctx,
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,
214 TALLOC_CTX *mem_ctx,
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] */,
221 WERROR *werror);
222 NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli,
223 TALLOC_CTX *mem_ctx,
224 const char *computer_name /* [in] [unique,charset(UTF16)] */,
225 const char **site /* [out] [ref,charset(UTF16)] */,
226 WERROR *werror);
227 NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli,
228 TALLOC_CTX *mem_ctx,
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,
237 TALLOC_CTX *mem_ctx,
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,
246 TALLOC_CTX *mem_ctx,
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] */,
254 WERROR *werror);
255 NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli,
256 TALLOC_CTX *mem_ctx,
257 WERROR *werror);
258 NTSTATUS rpccli_netr_DsRAddressToSitenamesW(struct rpc_pipe_client *cli,
259 TALLOC_CTX *mem_ctx,
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] */,
264 WERROR *werror);
265 NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli,
266 TALLOC_CTX *mem_ctx,
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] */,
275 WERROR *werror);
276 NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client *cli,
277 TALLOC_CTX *mem_ctx,
278 WERROR *werror);
279 NTSTATUS rpccli_netr_NetrEnumerateTrustedDomainsEx(struct rpc_pipe_client *cli,
280 TALLOC_CTX *mem_ctx,
281 const char *server_name /* [in] [unique,charset(UTF16)] */,
282 struct netr_DomainTrustList *dom_trust_list /* [out] [ref] */,
283 WERROR *werror);
284 NTSTATUS rpccli_netr_DsRAddressToSitenamesExW(struct rpc_pipe_client *cli,
285 TALLOC_CTX *mem_ctx,
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] */,
290 WERROR *werror);
291 NTSTATUS rpccli_netr_DsrGetDcSiteCoverageW(struct rpc_pipe_client *cli,
292 TALLOC_CTX *mem_ctx,
293 const char *server_name /* [in] [unique,charset(UTF16)] */,
294 struct DcSitesCtr *ctr /* [out] [ref] */,
295 WERROR *werror);
296 NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli,
297 TALLOC_CTX *mem_ctx,
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,
307 TALLOC_CTX *mem_ctx,
308 const char *server_name /* [in] [unique,charset(UTF16)] */,
309 uint32_t trust_flags /* [in] */,
310 struct netr_DomainTrustList *trusts /* [out] [ref] */,
311 WERROR *werror);
312 NTSTATUS rpccli_netr_DsrDeregisterDNSHostRecords(struct rpc_pipe_client *cli,
313 TALLOC_CTX *mem_ctx,
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)] */,
319 WERROR *werror);
320 NTSTATUS rpccli_netr_ServerTrustPasswordsGet(struct rpc_pipe_client *cli,
321 TALLOC_CTX *mem_ctx,
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,
331 TALLOC_CTX *mem_ctx,
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] */,
336 WERROR *werror);
337 NTSTATUS rpccli_netr_GetForestTrustInformation(struct rpc_pipe_client *cli,
338 TALLOC_CTX *mem_ctx,
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] */,
345 WERROR *werror);
346 NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli,
347 TALLOC_CTX *mem_ctx,
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,
359 TALLOC_CTX *mem_ctx,
360 WERROR *werror);
361 #endif /* __CLI_NETLOGON__ */