Line data Source code
1 : /* server functions auto-generated by pidl */
2 : #include "bin/default/librpc/gen_ndr/ndr_lsa.h"
3 : #include <util/debug.h>
4 :
5 : NTSTATUS dcerpc_server_lsarpc_init(TALLOC_CTX *);
6 :
7 : /* lsarpc - dcerpc server boilerplate generated by pidl */
8 :
9 :
10 4047 : static NTSTATUS lsarpc__op_bind(struct dcesrv_connection_context *context, const struct dcesrv_interface *iface)
11 : {
12 : #ifdef DCESRV_INTERFACE_LSARPC_BIND
13 4047 : return DCESRV_INTERFACE_LSARPC_BIND(context,iface);
14 : #else
15 : return NT_STATUS_OK;
16 : #endif
17 : }
18 :
19 4665 : static void lsarpc__op_unbind(struct dcesrv_connection_context *context, const struct dcesrv_interface *iface)
20 : {
21 : #ifdef DCESRV_INTERFACE_LSARPC_UNBIND
22 : DCESRV_INTERFACE_LSARPC_UNBIND(context, iface);
23 : #else
24 4665 : return;
25 : #endif
26 : }
27 :
28 24448 : static NTSTATUS lsarpc__op_ndr_pull(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_pull *pull, void **r)
29 : {
30 485 : enum ndr_err_code ndr_err;
31 24448 : uint16_t opnum = dce_call->pkt.u.request.opnum;
32 :
33 24448 : dce_call->fault_code = 0;
34 :
35 24448 : if (opnum >= ndr_table_lsarpc.num_calls) {
36 0 : dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR;
37 0 : return NT_STATUS_NET_WRITE_FAULT;
38 : }
39 :
40 48896 : *r = talloc_named(mem_ctx,
41 24448 : ndr_table_lsarpc.calls[opnum].struct_size,
42 : "struct %s",
43 24448 : ndr_table_lsarpc.calls[opnum].name);
44 24448 : NT_STATUS_HAVE_NO_MEMORY(*r);
45 :
46 : /* unravel the NDR for the packet */
47 24448 : ndr_err = ndr_table_lsarpc.calls[opnum].ndr_pull(pull, NDR_IN, *r);
48 24448 : if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
49 0 : dce_call->fault_code = DCERPC_FAULT_NDR;
50 0 : return NT_STATUS_NET_WRITE_FAULT;
51 : }
52 :
53 24448 : return NT_STATUS_OK;
54 : }
55 :
56 24448 : static NTSTATUS lsarpc__op_dispatch(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
57 : {
58 24448 : uint16_t opnum = dce_call->pkt.u.request.opnum;
59 :
60 24448 : switch (opnum) {
61 922 : case 0: {
62 922 : struct lsa_Close *r2 = (struct lsa_Close *)r;
63 922 : if (DEBUGLEVEL >= 10) {
64 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_Close, NDR_IN, r2);
65 : }
66 922 : r2->out.result = dcesrv_lsa_Close(dce_call, mem_ctx, r2);
67 922 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
68 0 : DEBUG(5,("function lsa_Close will reply async\n"));
69 : }
70 886 : break;
71 : }
72 33 : case 1: {
73 33 : struct lsa_Delete *r2 = (struct lsa_Delete *)r;
74 33 : if (DEBUGLEVEL >= 10) {
75 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_Delete, NDR_IN, r2);
76 : }
77 33 : r2->out.result = dcesrv_lsa_Delete(dce_call, mem_ctx, r2);
78 33 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
79 0 : DEBUG(5,("function lsa_Delete will reply async\n"));
80 : }
81 33 : break;
82 : }
83 3 : case 2: {
84 3 : struct lsa_EnumPrivs *r2 = (struct lsa_EnumPrivs *)r;
85 3 : if (DEBUGLEVEL >= 10) {
86 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumPrivs, NDR_IN, r2);
87 : }
88 3 : r2->out.result = dcesrv_lsa_EnumPrivs(dce_call, mem_ctx, r2);
89 3 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
90 0 : DEBUG(5,("function lsa_EnumPrivs will reply async\n"));
91 : }
92 3 : break;
93 : }
94 48 : case 3: {
95 48 : struct lsa_QuerySecurity *r2 = (struct lsa_QuerySecurity *)r;
96 48 : if (DEBUGLEVEL >= 10) {
97 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QuerySecurity, NDR_IN, r2);
98 : }
99 48 : r2->out.result = dcesrv_lsa_QuerySecurity(dce_call, mem_ctx, r2);
100 48 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
101 0 : DEBUG(5,("function lsa_QuerySecurity will reply async\n"));
102 : }
103 36 : break;
104 : }
105 0 : case 4: {
106 0 : struct lsa_SetSecObj *r2 = (struct lsa_SetSecObj *)r;
107 0 : if (DEBUGLEVEL >= 10) {
108 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetSecObj, NDR_IN, r2);
109 : }
110 0 : r2->out.result = dcesrv_lsa_SetSecObj(dce_call, mem_ctx, r2);
111 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
112 0 : DEBUG(5,("function lsa_SetSecObj will reply async\n"));
113 : }
114 0 : break;
115 : }
116 0 : case 5: {
117 0 : struct lsa_ChangePassword *r2 = (struct lsa_ChangePassword *)r;
118 0 : if (DEBUGLEVEL >= 10) {
119 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_ChangePassword, NDR_IN, r2);
120 : }
121 0 : r2->out.result = dcesrv_lsa_ChangePassword(dce_call, mem_ctx, r2);
122 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
123 0 : DEBUG(5,("function lsa_ChangePassword will reply async\n"));
124 : }
125 0 : break;
126 : }
127 775 : case 6: {
128 775 : struct lsa_OpenPolicy *r2 = (struct lsa_OpenPolicy *)r;
129 775 : if (DEBUGLEVEL >= 10) {
130 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_OpenPolicy, NDR_IN, r2);
131 : }
132 775 : r2->out.result = dcesrv_lsa_OpenPolicy(dce_call, mem_ctx, r2);
133 775 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
134 0 : DEBUG(5,("function lsa_OpenPolicy will reply async\n"));
135 : }
136 762 : break;
137 : }
138 847 : case 7: {
139 847 : struct lsa_QueryInfoPolicy *r2 = (struct lsa_QueryInfoPolicy *)r;
140 847 : if (DEBUGLEVEL >= 10) {
141 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QueryInfoPolicy, NDR_IN, r2);
142 : }
143 847 : r2->out.result = dcesrv_lsa_QueryInfoPolicy(dce_call, mem_ctx, r2);
144 847 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
145 0 : DEBUG(5,("function lsa_QueryInfoPolicy will reply async\n"));
146 : }
147 775 : break;
148 : }
149 0 : case 8: {
150 0 : struct lsa_SetInfoPolicy *r2 = (struct lsa_SetInfoPolicy *)r;
151 0 : if (DEBUGLEVEL >= 10) {
152 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetInfoPolicy, NDR_IN, r2);
153 : }
154 0 : r2->out.result = dcesrv_lsa_SetInfoPolicy(dce_call, mem_ctx, r2);
155 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
156 0 : DEBUG(5,("function lsa_SetInfoPolicy will reply async\n"));
157 : }
158 0 : break;
159 : }
160 0 : case 9: {
161 0 : struct lsa_ClearAuditLog *r2 = (struct lsa_ClearAuditLog *)r;
162 0 : if (DEBUGLEVEL >= 10) {
163 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_ClearAuditLog, NDR_IN, r2);
164 : }
165 0 : r2->out.result = dcesrv_lsa_ClearAuditLog(dce_call, mem_ctx, r2);
166 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
167 0 : DEBUG(5,("function lsa_ClearAuditLog will reply async\n"));
168 : }
169 0 : break;
170 : }
171 3 : case 10: {
172 3 : struct lsa_CreateAccount *r2 = (struct lsa_CreateAccount *)r;
173 3 : if (DEBUGLEVEL >= 10) {
174 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CreateAccount, NDR_IN, r2);
175 : }
176 3 : r2->out.result = dcesrv_lsa_CreateAccount(dce_call, mem_ctx, r2);
177 3 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
178 0 : DEBUG(5,("function lsa_CreateAccount will reply async\n"));
179 : }
180 3 : break;
181 : }
182 18 : case 11: {
183 18 : struct lsa_EnumAccounts *r2 = (struct lsa_EnumAccounts *)r;
184 18 : if (DEBUGLEVEL >= 10) {
185 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumAccounts, NDR_IN, r2);
186 : }
187 18 : r2->out.result = dcesrv_lsa_EnumAccounts(dce_call, mem_ctx, r2);
188 18 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
189 0 : DEBUG(5,("function lsa_EnumAccounts will reply async\n"));
190 : }
191 18 : break;
192 : }
193 36 : case 12: {
194 36 : struct lsa_CreateTrustedDomain *r2 = (struct lsa_CreateTrustedDomain *)r;
195 36 : if (DEBUGLEVEL >= 10) {
196 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomain, NDR_IN, r2);
197 : }
198 36 : r2->out.result = dcesrv_lsa_CreateTrustedDomain(dce_call, mem_ctx, r2);
199 36 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
200 0 : DEBUG(5,("function lsa_CreateTrustedDomain will reply async\n"));
201 : }
202 36 : break;
203 : }
204 66 : case 13: {
205 66 : struct lsa_EnumTrustDom *r2 = (struct lsa_EnumTrustDom *)r;
206 66 : if (DEBUGLEVEL >= 10) {
207 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumTrustDom, NDR_IN, r2);
208 : }
209 66 : r2->out.result = dcesrv_lsa_EnumTrustDom(dce_call, mem_ctx, r2);
210 66 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
211 0 : DEBUG(5,("function lsa_EnumTrustDom will reply async\n"));
212 : }
213 63 : break;
214 : }
215 311 : case 14: {
216 311 : struct lsa_LookupNames *r2 = (struct lsa_LookupNames *)r;
217 311 : if (DEBUGLEVEL >= 10) {
218 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames, NDR_IN, r2);
219 : }
220 311 : r2->out.result = dcesrv_lsa_LookupNames(dce_call, mem_ctx, r2);
221 311 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
222 12 : DEBUG(5,("function lsa_LookupNames will reply async\n"));
223 : }
224 311 : break;
225 : }
226 619 : case 15: {
227 619 : struct lsa_LookupSids *r2 = (struct lsa_LookupSids *)r;
228 619 : if (DEBUGLEVEL >= 10) {
229 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupSids, NDR_IN, r2);
230 : }
231 619 : r2->out.result = dcesrv_lsa_LookupSids(dce_call, mem_ctx, r2);
232 619 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
233 0 : DEBUG(5,("function lsa_LookupSids will reply async\n"));
234 : }
235 619 : break;
236 : }
237 1676 : case 16: {
238 1676 : struct lsa_CreateSecret *r2 = (struct lsa_CreateSecret *)r;
239 1676 : if (DEBUGLEVEL >= 10) {
240 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CreateSecret, NDR_IN, r2);
241 : }
242 1676 : r2->out.result = dcesrv_lsa_CreateSecret(dce_call, mem_ctx, r2);
243 1676 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
244 0 : DEBUG(5,("function lsa_CreateSecret will reply async\n"));
245 : }
246 1676 : break;
247 : }
248 26 : case 17: {
249 26 : struct lsa_OpenAccount *r2 = (struct lsa_OpenAccount *)r;
250 26 : if (DEBUGLEVEL >= 10) {
251 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_OpenAccount, NDR_IN, r2);
252 : }
253 26 : r2->out.result = dcesrv_lsa_OpenAccount(dce_call, mem_ctx, r2);
254 26 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
255 0 : DEBUG(5,("function lsa_OpenAccount will reply async\n"));
256 : }
257 26 : break;
258 : }
259 18 : case 18: {
260 18 : struct lsa_EnumPrivsAccount *r2 = (struct lsa_EnumPrivsAccount *)r;
261 18 : if (DEBUGLEVEL >= 10) {
262 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumPrivsAccount, NDR_IN, r2);
263 : }
264 18 : r2->out.result = dcesrv_lsa_EnumPrivsAccount(dce_call, mem_ctx, r2);
265 18 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
266 0 : DEBUG(5,("function lsa_EnumPrivsAccount will reply async\n"));
267 : }
268 18 : break;
269 : }
270 15 : case 19: {
271 15 : struct lsa_AddPrivilegesToAccount *r2 = (struct lsa_AddPrivilegesToAccount *)r;
272 15 : if (DEBUGLEVEL >= 10) {
273 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_AddPrivilegesToAccount, NDR_IN, r2);
274 : }
275 15 : r2->out.result = dcesrv_lsa_AddPrivilegesToAccount(dce_call, mem_ctx, r2);
276 15 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
277 0 : DEBUG(5,("function lsa_AddPrivilegesToAccount will reply async\n"));
278 : }
279 15 : break;
280 : }
281 15 : case 20: {
282 15 : struct lsa_RemovePrivilegesFromAccount *r2 = (struct lsa_RemovePrivilegesFromAccount *)r;
283 15 : if (DEBUGLEVEL >= 10) {
284 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_RemovePrivilegesFromAccount, NDR_IN, r2);
285 : }
286 15 : r2->out.result = dcesrv_lsa_RemovePrivilegesFromAccount(dce_call, mem_ctx, r2);
287 15 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
288 0 : DEBUG(5,("function lsa_RemovePrivilegesFromAccount will reply async\n"));
289 : }
290 15 : break;
291 : }
292 0 : case 21: {
293 0 : struct lsa_GetQuotasForAccount *r2 = (struct lsa_GetQuotasForAccount *)r;
294 0 : if (DEBUGLEVEL >= 10) {
295 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_GetQuotasForAccount, NDR_IN, r2);
296 : }
297 0 : r2->out.result = dcesrv_lsa_GetQuotasForAccount(dce_call, mem_ctx, r2);
298 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
299 0 : DEBUG(5,("function lsa_GetQuotasForAccount will reply async\n"));
300 : }
301 0 : break;
302 : }
303 0 : case 22: {
304 0 : struct lsa_SetQuotasForAccount *r2 = (struct lsa_SetQuotasForAccount *)r;
305 0 : if (DEBUGLEVEL >= 10) {
306 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetQuotasForAccount, NDR_IN, r2);
307 : }
308 0 : r2->out.result = dcesrv_lsa_SetQuotasForAccount(dce_call, mem_ctx, r2);
309 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
310 0 : DEBUG(5,("function lsa_SetQuotasForAccount will reply async\n"));
311 : }
312 0 : break;
313 : }
314 26 : case 23: {
315 26 : struct lsa_GetSystemAccessAccount *r2 = (struct lsa_GetSystemAccessAccount *)r;
316 26 : if (DEBUGLEVEL >= 10) {
317 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_GetSystemAccessAccount, NDR_IN, r2);
318 : }
319 26 : r2->out.result = dcesrv_lsa_GetSystemAccessAccount(dce_call, mem_ctx, r2);
320 26 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
321 0 : DEBUG(5,("function lsa_GetSystemAccessAccount will reply async\n"));
322 : }
323 26 : break;
324 : }
325 0 : case 24: {
326 0 : struct lsa_SetSystemAccessAccount *r2 = (struct lsa_SetSystemAccessAccount *)r;
327 0 : if (DEBUGLEVEL >= 10) {
328 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetSystemAccessAccount, NDR_IN, r2);
329 : }
330 0 : r2->out.result = dcesrv_lsa_SetSystemAccessAccount(dce_call, mem_ctx, r2);
331 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
332 0 : DEBUG(5,("function lsa_SetSystemAccessAccount will reply async\n"));
333 : }
334 0 : break;
335 : }
336 108 : case 25: {
337 108 : struct lsa_OpenTrustedDomain *r2 = (struct lsa_OpenTrustedDomain *)r;
338 108 : if (DEBUGLEVEL >= 10) {
339 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_OpenTrustedDomain, NDR_IN, r2);
340 : }
341 108 : r2->out.result = dcesrv_lsa_OpenTrustedDomain(dce_call, mem_ctx, r2);
342 108 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
343 0 : DEBUG(5,("function lsa_OpenTrustedDomain will reply async\n"));
344 : }
345 108 : break;
346 : }
347 2919 : case 26: {
348 2919 : struct lsa_QueryTrustedDomainInfo *r2 = (struct lsa_QueryTrustedDomainInfo *)r;
349 2919 : if (DEBUGLEVEL >= 10) {
350 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QueryTrustedDomainInfo, NDR_IN, r2);
351 : }
352 2919 : r2->out.result = dcesrv_lsa_QueryTrustedDomainInfo(dce_call, mem_ctx, r2);
353 2919 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
354 0 : DEBUG(5,("function lsa_QueryTrustedDomainInfo will reply async\n"));
355 : }
356 2919 : break;
357 : }
358 22 : case 27: {
359 22 : struct lsa_SetInformationTrustedDomain *r2 = (struct lsa_SetInformationTrustedDomain *)r;
360 22 : if (DEBUGLEVEL >= 10) {
361 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetInformationTrustedDomain, NDR_IN, r2);
362 : }
363 22 : r2->out.result = dcesrv_lsa_SetInformationTrustedDomain(dce_call, mem_ctx, r2);
364 22 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
365 0 : DEBUG(5,("function lsa_SetInformationTrustedDomain will reply async\n"));
366 : }
367 22 : break;
368 : }
369 46 : case 28: {
370 46 : struct lsa_OpenSecret *r2 = (struct lsa_OpenSecret *)r;
371 46 : if (DEBUGLEVEL >= 10) {
372 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_OpenSecret, NDR_IN, r2);
373 : }
374 46 : r2->out.result = dcesrv_lsa_OpenSecret(dce_call, mem_ctx, r2);
375 46 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
376 0 : DEBUG(5,("function lsa_OpenSecret will reply async\n"));
377 : }
378 46 : break;
379 : }
380 2376 : case 29: {
381 2376 : struct lsa_SetSecret *r2 = (struct lsa_SetSecret *)r;
382 2376 : if (DEBUGLEVEL >= 10) {
383 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetSecret, NDR_IN, r2);
384 : }
385 2376 : r2->out.result = dcesrv_lsa_SetSecret(dce_call, mem_ctx, r2);
386 2376 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
387 0 : DEBUG(5,("function lsa_SetSecret will reply async\n"));
388 : }
389 2376 : break;
390 : }
391 1212 : case 30: {
392 1212 : struct lsa_QuerySecret *r2 = (struct lsa_QuerySecret *)r;
393 1212 : if (DEBUGLEVEL >= 10) {
394 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QuerySecret, NDR_IN, r2);
395 : }
396 1212 : r2->out.result = dcesrv_lsa_QuerySecret(dce_call, mem_ctx, r2);
397 1212 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
398 0 : DEBUG(5,("function lsa_QuerySecret will reply async\n"));
399 : }
400 1212 : break;
401 : }
402 77 : case 31: {
403 77 : struct lsa_LookupPrivValue *r2 = (struct lsa_LookupPrivValue *)r;
404 77 : if (DEBUGLEVEL >= 10) {
405 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupPrivValue, NDR_IN, r2);
406 : }
407 77 : r2->out.result = dcesrv_lsa_LookupPrivValue(dce_call, mem_ctx, r2);
408 77 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
409 0 : DEBUG(5,("function lsa_LookupPrivValue will reply async\n"));
410 : }
411 77 : break;
412 : }
413 96 : case 32: {
414 96 : struct lsa_LookupPrivName *r2 = (struct lsa_LookupPrivName *)r;
415 96 : if (DEBUGLEVEL >= 10) {
416 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupPrivName, NDR_IN, r2);
417 : }
418 96 : r2->out.result = dcesrv_lsa_LookupPrivName(dce_call, mem_ctx, r2);
419 96 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
420 0 : DEBUG(5,("function lsa_LookupPrivName will reply async\n"));
421 : }
422 96 : break;
423 : }
424 75 : case 33: {
425 75 : struct lsa_LookupPrivDisplayName *r2 = (struct lsa_LookupPrivDisplayName *)r;
426 75 : if (DEBUGLEVEL >= 10) {
427 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupPrivDisplayName, NDR_IN, r2);
428 : }
429 75 : r2->out.result = dcesrv_lsa_LookupPrivDisplayName(dce_call, mem_ctx, r2);
430 75 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
431 0 : DEBUG(5,("function lsa_LookupPrivDisplayName will reply async\n"));
432 : }
433 75 : break;
434 : }
435 1676 : case 34: {
436 1676 : struct lsa_DeleteObject *r2 = (struct lsa_DeleteObject *)r;
437 1676 : if (DEBUGLEVEL >= 10) {
438 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_DeleteObject, NDR_IN, r2);
439 : }
440 1676 : r2->out.result = dcesrv_lsa_DeleteObject(dce_call, mem_ctx, r2);
441 1676 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
442 0 : DEBUG(5,("function lsa_DeleteObject will reply async\n"));
443 : }
444 1676 : break;
445 : }
446 75 : case 35: {
447 75 : struct lsa_EnumAccountsWithUserRight *r2 = (struct lsa_EnumAccountsWithUserRight *)r;
448 75 : if (DEBUGLEVEL >= 10) {
449 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumAccountsWithUserRight, NDR_IN, r2);
450 : }
451 75 : r2->out.result = dcesrv_lsa_EnumAccountsWithUserRight(dce_call, mem_ctx, r2);
452 75 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
453 0 : DEBUG(5,("function lsa_EnumAccountsWithUserRight will reply async\n"));
454 : }
455 75 : break;
456 : }
457 46 : case 36: {
458 46 : struct lsa_EnumAccountRights *r2 = (struct lsa_EnumAccountRights *)r;
459 46 : if (DEBUGLEVEL >= 10) {
460 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumAccountRights, NDR_IN, r2);
461 : }
462 46 : r2->out.result = dcesrv_lsa_EnumAccountRights(dce_call, mem_ctx, r2);
463 46 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
464 0 : DEBUG(5,("function lsa_EnumAccountRights will reply async\n"));
465 : }
466 46 : break;
467 : }
468 10 : case 37: {
469 10 : struct lsa_AddAccountRights *r2 = (struct lsa_AddAccountRights *)r;
470 10 : if (DEBUGLEVEL >= 10) {
471 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_AddAccountRights, NDR_IN, r2);
472 : }
473 10 : r2->out.result = dcesrv_lsa_AddAccountRights(dce_call, mem_ctx, r2);
474 10 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
475 0 : DEBUG(5,("function lsa_AddAccountRights will reply async\n"));
476 : }
477 10 : break;
478 : }
479 0 : case 38: {
480 0 : struct lsa_RemoveAccountRights *r2 = (struct lsa_RemoveAccountRights *)r;
481 0 : if (DEBUGLEVEL >= 10) {
482 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_RemoveAccountRights, NDR_IN, r2);
483 : }
484 0 : r2->out.result = dcesrv_lsa_RemoveAccountRights(dce_call, mem_ctx, r2);
485 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
486 0 : DEBUG(5,("function lsa_RemoveAccountRights will reply async\n"));
487 : }
488 0 : break;
489 : }
490 1405 : case 39: {
491 1405 : struct lsa_QueryTrustedDomainInfoBySid *r2 = (struct lsa_QueryTrustedDomainInfoBySid *)r;
492 1405 : if (DEBUGLEVEL >= 10) {
493 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QueryTrustedDomainInfoBySid, NDR_IN, r2);
494 : }
495 1405 : r2->out.result = dcesrv_lsa_QueryTrustedDomainInfoBySid(dce_call, mem_ctx, r2);
496 1405 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
497 0 : DEBUG(5,("function lsa_QueryTrustedDomainInfoBySid will reply async\n"));
498 : }
499 1405 : break;
500 : }
501 0 : case 40: {
502 0 : struct lsa_SetTrustedDomainInfo *r2 = (struct lsa_SetTrustedDomainInfo *)r;
503 0 : if (DEBUGLEVEL >= 10) {
504 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetTrustedDomainInfo, NDR_IN, r2);
505 : }
506 0 : r2->out.result = dcesrv_lsa_SetTrustedDomainInfo(dce_call, mem_ctx, r2);
507 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
508 0 : DEBUG(5,("function lsa_SetTrustedDomainInfo will reply async\n"));
509 : }
510 0 : break;
511 : }
512 112 : case 41: {
513 112 : struct lsa_DeleteTrustedDomain *r2 = (struct lsa_DeleteTrustedDomain *)r;
514 112 : if (DEBUGLEVEL >= 10) {
515 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_DeleteTrustedDomain, NDR_IN, r2);
516 : }
517 112 : r2->out.result = dcesrv_lsa_DeleteTrustedDomain(dce_call, mem_ctx, r2);
518 112 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
519 0 : DEBUG(5,("function lsa_DeleteTrustedDomain will reply async\n"));
520 : }
521 112 : break;
522 : }
523 0 : case 42: {
524 0 : struct lsa_StorePrivateData *r2 = (struct lsa_StorePrivateData *)r;
525 0 : if (DEBUGLEVEL >= 10) {
526 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_StorePrivateData, NDR_IN, r2);
527 : }
528 0 : r2->out.result = dcesrv_lsa_StorePrivateData(dce_call, mem_ctx, r2);
529 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
530 0 : DEBUG(5,("function lsa_StorePrivateData will reply async\n"));
531 : }
532 0 : break;
533 : }
534 0 : case 43: {
535 0 : struct lsa_RetrievePrivateData *r2 = (struct lsa_RetrievePrivateData *)r;
536 0 : if (DEBUGLEVEL >= 10) {
537 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_RetrievePrivateData, NDR_IN, r2);
538 : }
539 0 : r2->out.result = dcesrv_lsa_RetrievePrivateData(dce_call, mem_ctx, r2);
540 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
541 0 : DEBUG(5,("function lsa_RetrievePrivateData will reply async\n"));
542 : }
543 0 : break;
544 : }
545 2610 : case 44: {
546 2610 : struct lsa_OpenPolicy2 *r2 = (struct lsa_OpenPolicy2 *)r;
547 2610 : if (DEBUGLEVEL >= 10) {
548 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_OpenPolicy2, NDR_IN, r2);
549 : }
550 2610 : r2->out.result = dcesrv_lsa_OpenPolicy2(dce_call, mem_ctx, r2);
551 2610 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
552 0 : DEBUG(5,("function lsa_OpenPolicy2 will reply async\n"));
553 : }
554 2527 : break;
555 : }
556 519 : case 45: {
557 519 : struct lsa_GetUserName *r2 = (struct lsa_GetUserName *)r;
558 519 : if (DEBUGLEVEL >= 10) {
559 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_GetUserName, NDR_IN, r2);
560 : }
561 519 : r2->out.result = dcesrv_lsa_GetUserName(dce_call, mem_ctx, r2);
562 519 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
563 0 : DEBUG(5,("function lsa_GetUserName will reply async\n"));
564 : }
565 471 : break;
566 : }
567 1000 : case 46: {
568 1000 : struct lsa_QueryInfoPolicy2 *r2 = (struct lsa_QueryInfoPolicy2 *)r;
569 1000 : if (DEBUGLEVEL >= 10) {
570 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QueryInfoPolicy2, NDR_IN, r2);
571 : }
572 1000 : r2->out.result = dcesrv_lsa_QueryInfoPolicy2(dce_call, mem_ctx, r2);
573 1000 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
574 0 : DEBUG(5,("function lsa_QueryInfoPolicy2 will reply async\n"));
575 : }
576 926 : break;
577 : }
578 0 : case 47: {
579 0 : struct lsa_SetInfoPolicy2 *r2 = (struct lsa_SetInfoPolicy2 *)r;
580 0 : if (DEBUGLEVEL >= 10) {
581 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetInfoPolicy2, NDR_IN, r2);
582 : }
583 0 : r2->out.result = dcesrv_lsa_SetInfoPolicy2(dce_call, mem_ctx, r2);
584 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
585 0 : DEBUG(5,("function lsa_SetInfoPolicy2 will reply async\n"));
586 : }
587 0 : break;
588 : }
589 1691 : case 48: {
590 1691 : struct lsa_QueryTrustedDomainInfoByName *r2 = (struct lsa_QueryTrustedDomainInfoByName *)r;
591 1691 : if (DEBUGLEVEL >= 10) {
592 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QueryTrustedDomainInfoByName, NDR_IN, r2);
593 : }
594 1691 : r2->out.result = dcesrv_lsa_QueryTrustedDomainInfoByName(dce_call, mem_ctx, r2);
595 1691 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
596 0 : DEBUG(5,("function lsa_QueryTrustedDomainInfoByName will reply async\n"));
597 : }
598 1691 : break;
599 : }
600 18 : case 49: {
601 18 : struct lsa_SetTrustedDomainInfoByName *r2 = (struct lsa_SetTrustedDomainInfoByName *)r;
602 18 : if (DEBUGLEVEL >= 10) {
603 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetTrustedDomainInfoByName, NDR_IN, r2);
604 : }
605 18 : r2->out.result = dcesrv_lsa_SetTrustedDomainInfoByName(dce_call, mem_ctx, r2);
606 18 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
607 0 : DEBUG(5,("function lsa_SetTrustedDomainInfoByName will reply async\n"));
608 : }
609 18 : break;
610 : }
611 42 : case 50: {
612 42 : struct lsa_EnumTrustedDomainsEx *r2 = (struct lsa_EnumTrustedDomainsEx *)r;
613 42 : if (DEBUGLEVEL >= 10) {
614 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumTrustedDomainsEx, NDR_IN, r2);
615 : }
616 42 : r2->out.result = dcesrv_lsa_EnumTrustedDomainsEx(dce_call, mem_ctx, r2);
617 42 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
618 0 : DEBUG(5,("function lsa_EnumTrustedDomainsEx will reply async\n"));
619 : }
620 42 : break;
621 : }
622 36 : case 51: {
623 36 : struct lsa_CreateTrustedDomainEx *r2 = (struct lsa_CreateTrustedDomainEx *)r;
624 36 : if (DEBUGLEVEL >= 10) {
625 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomainEx, NDR_IN, r2);
626 : }
627 36 : r2->out.result = dcesrv_lsa_CreateTrustedDomainEx(dce_call, mem_ctx, r2);
628 36 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
629 0 : DEBUG(5,("function lsa_CreateTrustedDomainEx will reply async\n"));
630 : }
631 36 : break;
632 : }
633 108 : case 52: {
634 108 : struct lsa_CloseTrustedDomainEx *r2 = (struct lsa_CloseTrustedDomainEx *)r;
635 108 : if (DEBUGLEVEL >= 10) {
636 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CloseTrustedDomainEx, NDR_IN, r2);
637 : }
638 108 : r2->out.result = dcesrv_lsa_CloseTrustedDomainEx(dce_call, mem_ctx, r2);
639 108 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
640 0 : DEBUG(5,("function lsa_CloseTrustedDomainEx will reply async\n"));
641 : }
642 108 : break;
643 : }
644 24 : case 53: {
645 24 : struct lsa_QueryDomainInformationPolicy *r2 = (struct lsa_QueryDomainInformationPolicy *)r;
646 24 : if (DEBUGLEVEL >= 10) {
647 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QueryDomainInformationPolicy, NDR_IN, r2);
648 : }
649 24 : r2->out.result = dcesrv_lsa_QueryDomainInformationPolicy(dce_call, mem_ctx, r2);
650 24 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
651 0 : DEBUG(5,("function lsa_QueryDomainInformationPolicy will reply async\n"));
652 : }
653 24 : break;
654 : }
655 0 : case 54: {
656 0 : struct lsa_SetDomainInformationPolicy *r2 = (struct lsa_SetDomainInformationPolicy *)r;
657 0 : if (DEBUGLEVEL >= 10) {
658 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetDomainInformationPolicy, NDR_IN, r2);
659 : }
660 0 : r2->out.result = dcesrv_lsa_SetDomainInformationPolicy(dce_call, mem_ctx, r2);
661 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
662 0 : DEBUG(5,("function lsa_SetDomainInformationPolicy will reply async\n"));
663 : }
664 0 : break;
665 : }
666 108 : case 55: {
667 108 : struct lsa_OpenTrustedDomainByName *r2 = (struct lsa_OpenTrustedDomainByName *)r;
668 108 : if (DEBUGLEVEL >= 10) {
669 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_OpenTrustedDomainByName, NDR_IN, r2);
670 : }
671 108 : r2->out.result = dcesrv_lsa_OpenTrustedDomainByName(dce_call, mem_ctx, r2);
672 108 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
673 0 : DEBUG(5,("function lsa_OpenTrustedDomainByName will reply async\n"));
674 : }
675 108 : break;
676 : }
677 0 : case 56: {
678 0 : struct lsa_TestCall *r2 = (struct lsa_TestCall *)r;
679 0 : if (DEBUGLEVEL >= 10) {
680 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_TestCall, NDR_IN, r2);
681 : }
682 0 : r2->out.result = dcesrv_lsa_TestCall(dce_call, mem_ctx, r2);
683 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
684 0 : DEBUG(5,("function lsa_TestCall will reply async\n"));
685 : }
686 0 : break;
687 : }
688 3 : case 57: {
689 3 : struct lsa_LookupSids2 *r2 = (struct lsa_LookupSids2 *)r;
690 3 : if (DEBUGLEVEL >= 10) {
691 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupSids2, NDR_IN, r2);
692 : }
693 3 : r2->out.result = dcesrv_lsa_LookupSids2(dce_call, mem_ctx, r2);
694 3 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
695 0 : DEBUG(5,("function lsa_LookupSids2 will reply async\n"));
696 : }
697 3 : break;
698 : }
699 6 : case 58: {
700 6 : struct lsa_LookupNames2 *r2 = (struct lsa_LookupNames2 *)r;
701 6 : if (DEBUGLEVEL >= 10) {
702 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames2, NDR_IN, r2);
703 : }
704 6 : r2->out.result = dcesrv_lsa_LookupNames2(dce_call, mem_ctx, r2);
705 6 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
706 0 : DEBUG(5,("function lsa_LookupNames2 will reply async\n"));
707 : }
708 6 : break;
709 : }
710 62 : case 59: {
711 62 : struct lsa_CreateTrustedDomainEx2 *r2 = (struct lsa_CreateTrustedDomainEx2 *)r;
712 62 : if (DEBUGLEVEL >= 10) {
713 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomainEx2, NDR_IN, r2);
714 : }
715 62 : r2->out.result = dcesrv_lsa_CreateTrustedDomainEx2(dce_call, mem_ctx, r2);
716 62 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
717 0 : DEBUG(5,("function lsa_CreateTrustedDomainEx2 will reply async\n"));
718 : }
719 62 : break;
720 : }
721 0 : case 60: {
722 0 : struct lsa_CREDRWRITE *r2 = (struct lsa_CREDRWRITE *)r;
723 0 : if (DEBUGLEVEL >= 10) {
724 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRWRITE, NDR_IN, r2);
725 : }
726 0 : r2->out.result = dcesrv_lsa_CREDRWRITE(dce_call, mem_ctx, r2);
727 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
728 0 : DEBUG(5,("function lsa_CREDRWRITE will reply async\n"));
729 : }
730 0 : break;
731 : }
732 0 : case 61: {
733 0 : struct lsa_CREDRREAD *r2 = (struct lsa_CREDRREAD *)r;
734 0 : if (DEBUGLEVEL >= 10) {
735 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRREAD, NDR_IN, r2);
736 : }
737 0 : r2->out.result = dcesrv_lsa_CREDRREAD(dce_call, mem_ctx, r2);
738 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
739 0 : DEBUG(5,("function lsa_CREDRREAD will reply async\n"));
740 : }
741 0 : break;
742 : }
743 0 : case 62: {
744 0 : struct lsa_CREDRENUMERATE *r2 = (struct lsa_CREDRENUMERATE *)r;
745 0 : if (DEBUGLEVEL >= 10) {
746 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRENUMERATE, NDR_IN, r2);
747 : }
748 0 : r2->out.result = dcesrv_lsa_CREDRENUMERATE(dce_call, mem_ctx, r2);
749 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
750 0 : DEBUG(5,("function lsa_CREDRENUMERATE will reply async\n"));
751 : }
752 0 : break;
753 : }
754 0 : case 63: {
755 0 : struct lsa_CREDRWRITEDOMAINCREDENTIALS *r2 = (struct lsa_CREDRWRITEDOMAINCREDENTIALS *)r;
756 0 : if (DEBUGLEVEL >= 10) {
757 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, NDR_IN, r2);
758 : }
759 0 : r2->out.result = dcesrv_lsa_CREDRWRITEDOMAINCREDENTIALS(dce_call, mem_ctx, r2);
760 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
761 0 : DEBUG(5,("function lsa_CREDRWRITEDOMAINCREDENTIALS will reply async\n"));
762 : }
763 0 : break;
764 : }
765 0 : case 64: {
766 0 : struct lsa_CREDRREADDOMAINCREDENTIALS *r2 = (struct lsa_CREDRREADDOMAINCREDENTIALS *)r;
767 0 : if (DEBUGLEVEL >= 10) {
768 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, NDR_IN, r2);
769 : }
770 0 : r2->out.result = dcesrv_lsa_CREDRREADDOMAINCREDENTIALS(dce_call, mem_ctx, r2);
771 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
772 0 : DEBUG(5,("function lsa_CREDRREADDOMAINCREDENTIALS will reply async\n"));
773 : }
774 0 : break;
775 : }
776 0 : case 65: {
777 0 : struct lsa_CREDRDELETE *r2 = (struct lsa_CREDRDELETE *)r;
778 0 : if (DEBUGLEVEL >= 10) {
779 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRDELETE, NDR_IN, r2);
780 : }
781 0 : r2->out.result = dcesrv_lsa_CREDRDELETE(dce_call, mem_ctx, r2);
782 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
783 0 : DEBUG(5,("function lsa_CREDRDELETE will reply async\n"));
784 : }
785 0 : break;
786 : }
787 0 : case 66: {
788 0 : struct lsa_CREDRGETTARGETINFO *r2 = (struct lsa_CREDRGETTARGETINFO *)r;
789 0 : if (DEBUGLEVEL >= 10) {
790 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRGETTARGETINFO, NDR_IN, r2);
791 : }
792 0 : r2->out.result = dcesrv_lsa_CREDRGETTARGETINFO(dce_call, mem_ctx, r2);
793 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
794 0 : DEBUG(5,("function lsa_CREDRGETTARGETINFO will reply async\n"));
795 : }
796 0 : break;
797 : }
798 0 : case 67: {
799 0 : struct lsa_CREDRPROFILELOADED *r2 = (struct lsa_CREDRPROFILELOADED *)r;
800 0 : if (DEBUGLEVEL >= 10) {
801 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRPROFILELOADED, NDR_IN, r2);
802 : }
803 0 : r2->out.result = dcesrv_lsa_CREDRPROFILELOADED(dce_call, mem_ctx, r2);
804 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
805 0 : DEBUG(5,("function lsa_CREDRPROFILELOADED will reply async\n"));
806 : }
807 0 : break;
808 : }
809 6 : case 68: {
810 6 : struct lsa_LookupNames3 *r2 = (struct lsa_LookupNames3 *)r;
811 6 : if (DEBUGLEVEL >= 10) {
812 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames3, NDR_IN, r2);
813 : }
814 6 : r2->out.result = dcesrv_lsa_LookupNames3(dce_call, mem_ctx, r2);
815 6 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
816 0 : DEBUG(5,("function lsa_LookupNames3 will reply async\n"));
817 : }
818 6 : break;
819 : }
820 0 : case 69: {
821 0 : struct lsa_CREDRGETSESSIONTYPES *r2 = (struct lsa_CREDRGETSESSIONTYPES *)r;
822 0 : if (DEBUGLEVEL >= 10) {
823 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRGETSESSIONTYPES, NDR_IN, r2);
824 : }
825 0 : r2->out.result = dcesrv_lsa_CREDRGETSESSIONTYPES(dce_call, mem_ctx, r2);
826 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
827 0 : DEBUG(5,("function lsa_CREDRGETSESSIONTYPES will reply async\n"));
828 : }
829 0 : break;
830 : }
831 0 : case 70: {
832 0 : struct lsa_LSARREGISTERAUDITEVENT *r2 = (struct lsa_LSARREGISTERAUDITEVENT *)r;
833 0 : if (DEBUGLEVEL >= 10) {
834 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSARREGISTERAUDITEVENT, NDR_IN, r2);
835 : }
836 0 : r2->out.result = dcesrv_lsa_LSARREGISTERAUDITEVENT(dce_call, mem_ctx, r2);
837 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
838 0 : DEBUG(5,("function lsa_LSARREGISTERAUDITEVENT will reply async\n"));
839 : }
840 0 : break;
841 : }
842 0 : case 71: {
843 0 : struct lsa_LSARGENAUDITEVENT *r2 = (struct lsa_LSARGENAUDITEVENT *)r;
844 0 : if (DEBUGLEVEL >= 10) {
845 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSARGENAUDITEVENT, NDR_IN, r2);
846 : }
847 0 : r2->out.result = dcesrv_lsa_LSARGENAUDITEVENT(dce_call, mem_ctx, r2);
848 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
849 0 : DEBUG(5,("function lsa_LSARGENAUDITEVENT will reply async\n"));
850 : }
851 0 : break;
852 : }
853 0 : case 72: {
854 0 : struct lsa_LSARUNREGISTERAUDITEVENT *r2 = (struct lsa_LSARUNREGISTERAUDITEVENT *)r;
855 0 : if (DEBUGLEVEL >= 10) {
856 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, NDR_IN, r2);
857 : }
858 0 : r2->out.result = dcesrv_lsa_LSARUNREGISTERAUDITEVENT(dce_call, mem_ctx, r2);
859 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
860 0 : DEBUG(5,("function lsa_LSARUNREGISTERAUDITEVENT will reply async\n"));
861 : }
862 0 : break;
863 : }
864 164 : case 73: {
865 164 : struct lsa_lsaRQueryForestTrustInformation *r2 = (struct lsa_lsaRQueryForestTrustInformation *)r;
866 164 : if (DEBUGLEVEL >= 10) {
867 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_lsaRQueryForestTrustInformation, NDR_IN, r2);
868 : }
869 164 : r2->out.result = dcesrv_lsa_lsaRQueryForestTrustInformation(dce_call, mem_ctx, r2);
870 164 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
871 0 : DEBUG(5,("function lsa_lsaRQueryForestTrustInformation will reply async\n"));
872 : }
873 164 : break;
874 : }
875 87 : case 74: {
876 87 : struct lsa_lsaRSetForestTrustInformation *r2 = (struct lsa_lsaRSetForestTrustInformation *)r;
877 87 : if (DEBUGLEVEL >= 10) {
878 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_lsaRSetForestTrustInformation, NDR_IN, r2);
879 : }
880 87 : r2->out.result = dcesrv_lsa_lsaRSetForestTrustInformation(dce_call, mem_ctx, r2);
881 87 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
882 0 : DEBUG(5,("function lsa_lsaRSetForestTrustInformation will reply async\n"));
883 : }
884 87 : break;
885 : }
886 0 : case 75: {
887 0 : struct lsa_CREDRRENAME *r2 = (struct lsa_CREDRRENAME *)r;
888 0 : if (DEBUGLEVEL >= 10) {
889 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRRENAME, NDR_IN, r2);
890 : }
891 0 : r2->out.result = dcesrv_lsa_CREDRRENAME(dce_call, mem_ctx, r2);
892 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
893 0 : DEBUG(5,("function lsa_CREDRRENAME will reply async\n"));
894 : }
895 0 : break;
896 : }
897 1421 : case 76: {
898 1421 : struct lsa_LookupSids3 *r2 = (struct lsa_LookupSids3 *)r;
899 1421 : if (DEBUGLEVEL >= 10) {
900 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupSids3, NDR_IN, r2);
901 : }
902 1421 : r2->out.result = dcesrv_lsa_LookupSids3(dce_call, mem_ctx, r2);
903 1421 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
904 19 : DEBUG(5,("function lsa_LookupSids3 will reply async\n"));
905 : }
906 1373 : break;
907 : }
908 831 : case 77: {
909 831 : struct lsa_LookupNames4 *r2 = (struct lsa_LookupNames4 *)r;
910 831 : if (DEBUGLEVEL >= 10) {
911 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames4, NDR_IN, r2);
912 : }
913 831 : r2->out.result = dcesrv_lsa_LookupNames4(dce_call, mem_ctx, r2);
914 831 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
915 36 : DEBUG(5,("function lsa_LookupNames4 will reply async\n"));
916 : }
917 735 : break;
918 : }
919 0 : case 78: {
920 0 : struct lsa_LSAROPENPOLICYSCE *r2 = (struct lsa_LSAROPENPOLICYSCE *)r;
921 0 : if (DEBUGLEVEL >= 10) {
922 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSAROPENPOLICYSCE, NDR_IN, r2);
923 : }
924 0 : r2->out.result = dcesrv_lsa_LSAROPENPOLICYSCE(dce_call, mem_ctx, r2);
925 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
926 0 : DEBUG(5,("function lsa_LSAROPENPOLICYSCE will reply async\n"));
927 : }
928 0 : break;
929 : }
930 0 : case 79: {
931 0 : struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r2 = (struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *)r;
932 0 : if (DEBUGLEVEL >= 10) {
933 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, NDR_IN, r2);
934 : }
935 0 : r2->out.result = dcesrv_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(dce_call, mem_ctx, r2);
936 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
937 0 : DEBUG(5,("function lsa_LSARADTREGISTERSECURITYEVENTSOURCE will reply async\n"));
938 : }
939 0 : break;
940 : }
941 0 : case 80: {
942 0 : struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r2 = (struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *)r;
943 0 : if (DEBUGLEVEL >= 10) {
944 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, NDR_IN, r2);
945 : }
946 0 : r2->out.result = dcesrv_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(dce_call, mem_ctx, r2);
947 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
948 0 : DEBUG(5,("function lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE will reply async\n"));
949 : }
950 0 : break;
951 : }
952 0 : case 81: {
953 0 : struct lsa_LSARADTREPORTSECURITYEVENT *r2 = (struct lsa_LSARADTREPORTSECURITYEVENT *)r;
954 0 : if (DEBUGLEVEL >= 10) {
955 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, NDR_IN, r2);
956 : }
957 0 : r2->out.result = dcesrv_lsa_LSARADTREPORTSECURITYEVENT(dce_call, mem_ctx, r2);
958 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
959 0 : DEBUG(5,("function lsa_LSARADTREPORTSECURITYEVENT will reply async\n"));
960 : }
961 0 : break;
962 : }
963 :
964 0 : default:
965 0 : dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR;
966 0 : break;
967 : }
968 :
969 24448 : if (dce_call->fault_code != 0) {
970 204 : return NT_STATUS_NET_WRITE_FAULT;
971 : }
972 :
973 24244 : return NT_STATUS_OK;
974 : }
975 :
976 24244 : static NTSTATUS lsarpc__op_reply(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
977 : {
978 24244 : uint16_t opnum = dce_call->pkt.u.request.opnum;
979 :
980 24244 : switch (opnum) {
981 753 : case 0: {
982 753 : struct lsa_Close *r2 = (struct lsa_Close *)r;
983 753 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
984 0 : DEBUG(5,("function lsa_Close replied async\n"));
985 : }
986 753 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
987 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_Close, NDR_OUT | NDR_SET_VALUES, r2);
988 : }
989 753 : if (dce_call->fault_code != 0) {
990 0 : DEBUG(2,("dcerpc_fault %s in lsa_Close\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
991 : }
992 741 : break;
993 : }
994 33 : case 1: {
995 33 : struct lsa_Delete *r2 = (struct lsa_Delete *)r;
996 33 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
997 0 : DEBUG(5,("function lsa_Delete replied async\n"));
998 : }
999 33 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1000 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_Delete, NDR_OUT | NDR_SET_VALUES, r2);
1001 : }
1002 33 : if (dce_call->fault_code != 0) {
1003 0 : DEBUG(2,("dcerpc_fault %s in lsa_Delete\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1004 : }
1005 33 : break;
1006 : }
1007 3 : case 2: {
1008 3 : struct lsa_EnumPrivs *r2 = (struct lsa_EnumPrivs *)r;
1009 3 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1010 0 : DEBUG(5,("function lsa_EnumPrivs replied async\n"));
1011 : }
1012 3 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1013 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumPrivs, NDR_OUT | NDR_SET_VALUES, r2);
1014 : }
1015 3 : if (dce_call->fault_code != 0) {
1016 0 : DEBUG(2,("dcerpc_fault %s in lsa_EnumPrivs\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1017 : }
1018 3 : break;
1019 : }
1020 48 : case 3: {
1021 48 : struct lsa_QuerySecurity *r2 = (struct lsa_QuerySecurity *)r;
1022 48 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1023 0 : DEBUG(5,("function lsa_QuerySecurity replied async\n"));
1024 : }
1025 48 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1026 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QuerySecurity, NDR_OUT | NDR_SET_VALUES, r2);
1027 : }
1028 48 : if (dce_call->fault_code != 0) {
1029 0 : DEBUG(2,("dcerpc_fault %s in lsa_QuerySecurity\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1030 : }
1031 36 : break;
1032 : }
1033 0 : case 4: {
1034 0 : struct lsa_SetSecObj *r2 = (struct lsa_SetSecObj *)r;
1035 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1036 0 : DEBUG(5,("function lsa_SetSecObj replied async\n"));
1037 : }
1038 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1039 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetSecObj, NDR_OUT | NDR_SET_VALUES, r2);
1040 : }
1041 0 : if (dce_call->fault_code != 0) {
1042 0 : DEBUG(2,("dcerpc_fault %s in lsa_SetSecObj\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1043 : }
1044 0 : break;
1045 : }
1046 0 : case 5: {
1047 0 : struct lsa_ChangePassword *r2 = (struct lsa_ChangePassword *)r;
1048 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1049 0 : DEBUG(5,("function lsa_ChangePassword replied async\n"));
1050 : }
1051 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1052 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_ChangePassword, NDR_OUT | NDR_SET_VALUES, r2);
1053 : }
1054 0 : if (dce_call->fault_code != 0) {
1055 0 : DEBUG(2,("dcerpc_fault %s in lsa_ChangePassword\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1056 : }
1057 0 : break;
1058 : }
1059 772 : case 6: {
1060 772 : struct lsa_OpenPolicy *r2 = (struct lsa_OpenPolicy *)r;
1061 772 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1062 0 : DEBUG(5,("function lsa_OpenPolicy replied async\n"));
1063 : }
1064 772 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1065 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_OpenPolicy, NDR_OUT | NDR_SET_VALUES, r2);
1066 : }
1067 772 : if (dce_call->fault_code != 0) {
1068 0 : DEBUG(2,("dcerpc_fault %s in lsa_OpenPolicy\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1069 : }
1070 759 : break;
1071 : }
1072 847 : case 7: {
1073 847 : struct lsa_QueryInfoPolicy *r2 = (struct lsa_QueryInfoPolicy *)r;
1074 847 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1075 0 : DEBUG(5,("function lsa_QueryInfoPolicy replied async\n"));
1076 : }
1077 847 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1078 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QueryInfoPolicy, NDR_OUT | NDR_SET_VALUES, r2);
1079 : }
1080 847 : if (dce_call->fault_code != 0) {
1081 0 : DEBUG(2,("dcerpc_fault %s in lsa_QueryInfoPolicy\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1082 : }
1083 775 : break;
1084 : }
1085 0 : case 8: {
1086 0 : struct lsa_SetInfoPolicy *r2 = (struct lsa_SetInfoPolicy *)r;
1087 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1088 0 : DEBUG(5,("function lsa_SetInfoPolicy replied async\n"));
1089 : }
1090 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1091 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetInfoPolicy, NDR_OUT | NDR_SET_VALUES, r2);
1092 : }
1093 0 : if (dce_call->fault_code != 0) {
1094 0 : DEBUG(2,("dcerpc_fault %s in lsa_SetInfoPolicy\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1095 : }
1096 0 : break;
1097 : }
1098 0 : case 9: {
1099 0 : struct lsa_ClearAuditLog *r2 = (struct lsa_ClearAuditLog *)r;
1100 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1101 0 : DEBUG(5,("function lsa_ClearAuditLog replied async\n"));
1102 : }
1103 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1104 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_ClearAuditLog, NDR_OUT | NDR_SET_VALUES, r2);
1105 : }
1106 0 : if (dce_call->fault_code != 0) {
1107 0 : DEBUG(2,("dcerpc_fault %s in lsa_ClearAuditLog\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1108 : }
1109 0 : break;
1110 : }
1111 3 : case 10: {
1112 3 : struct lsa_CreateAccount *r2 = (struct lsa_CreateAccount *)r;
1113 3 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1114 0 : DEBUG(5,("function lsa_CreateAccount replied async\n"));
1115 : }
1116 3 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1117 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CreateAccount, NDR_OUT | NDR_SET_VALUES, r2);
1118 : }
1119 3 : if (dce_call->fault_code != 0) {
1120 0 : DEBUG(2,("dcerpc_fault %s in lsa_CreateAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1121 : }
1122 3 : break;
1123 : }
1124 18 : case 11: {
1125 18 : struct lsa_EnumAccounts *r2 = (struct lsa_EnumAccounts *)r;
1126 18 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1127 0 : DEBUG(5,("function lsa_EnumAccounts replied async\n"));
1128 : }
1129 18 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1130 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumAccounts, NDR_OUT | NDR_SET_VALUES, r2);
1131 : }
1132 18 : if (dce_call->fault_code != 0) {
1133 0 : DEBUG(2,("dcerpc_fault %s in lsa_EnumAccounts\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1134 : }
1135 18 : break;
1136 : }
1137 36 : case 12: {
1138 36 : struct lsa_CreateTrustedDomain *r2 = (struct lsa_CreateTrustedDomain *)r;
1139 36 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1140 0 : DEBUG(5,("function lsa_CreateTrustedDomain replied async\n"));
1141 : }
1142 36 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1143 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomain, NDR_OUT | NDR_SET_VALUES, r2);
1144 : }
1145 36 : if (dce_call->fault_code != 0) {
1146 0 : DEBUG(2,("dcerpc_fault %s in lsa_CreateTrustedDomain\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1147 : }
1148 36 : break;
1149 : }
1150 66 : case 13: {
1151 66 : struct lsa_EnumTrustDom *r2 = (struct lsa_EnumTrustDom *)r;
1152 66 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1153 0 : DEBUG(5,("function lsa_EnumTrustDom replied async\n"));
1154 : }
1155 66 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1156 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumTrustDom, NDR_OUT | NDR_SET_VALUES, r2);
1157 : }
1158 66 : if (dce_call->fault_code != 0) {
1159 0 : DEBUG(2,("dcerpc_fault %s in lsa_EnumTrustDom\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1160 : }
1161 63 : break;
1162 : }
1163 311 : case 14: {
1164 311 : struct lsa_LookupNames *r2 = (struct lsa_LookupNames *)r;
1165 311 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1166 12 : DEBUG(5,("function lsa_LookupNames replied async\n"));
1167 : }
1168 311 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1169 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames, NDR_OUT | NDR_SET_VALUES, r2);
1170 : }
1171 311 : if (dce_call->fault_code != 0) {
1172 0 : DEBUG(2,("dcerpc_fault %s in lsa_LookupNames\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1173 : }
1174 311 : break;
1175 : }
1176 619 : case 15: {
1177 619 : struct lsa_LookupSids *r2 = (struct lsa_LookupSids *)r;
1178 619 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1179 0 : DEBUG(5,("function lsa_LookupSids replied async\n"));
1180 : }
1181 619 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1182 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupSids, NDR_OUT | NDR_SET_VALUES, r2);
1183 : }
1184 619 : if (dce_call->fault_code != 0) {
1185 0 : DEBUG(2,("dcerpc_fault %s in lsa_LookupSids\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1186 : }
1187 619 : break;
1188 : }
1189 1676 : case 16: {
1190 1676 : struct lsa_CreateSecret *r2 = (struct lsa_CreateSecret *)r;
1191 1676 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1192 0 : DEBUG(5,("function lsa_CreateSecret replied async\n"));
1193 : }
1194 1676 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1195 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CreateSecret, NDR_OUT | NDR_SET_VALUES, r2);
1196 : }
1197 1676 : if (dce_call->fault_code != 0) {
1198 0 : DEBUG(2,("dcerpc_fault %s in lsa_CreateSecret\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1199 : }
1200 1676 : break;
1201 : }
1202 26 : case 17: {
1203 26 : struct lsa_OpenAccount *r2 = (struct lsa_OpenAccount *)r;
1204 26 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1205 0 : DEBUG(5,("function lsa_OpenAccount replied async\n"));
1206 : }
1207 26 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1208 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_OpenAccount, NDR_OUT | NDR_SET_VALUES, r2);
1209 : }
1210 26 : if (dce_call->fault_code != 0) {
1211 0 : DEBUG(2,("dcerpc_fault %s in lsa_OpenAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1212 : }
1213 26 : break;
1214 : }
1215 18 : case 18: {
1216 18 : struct lsa_EnumPrivsAccount *r2 = (struct lsa_EnumPrivsAccount *)r;
1217 18 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1218 0 : DEBUG(5,("function lsa_EnumPrivsAccount replied async\n"));
1219 : }
1220 18 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1221 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumPrivsAccount, NDR_OUT | NDR_SET_VALUES, r2);
1222 : }
1223 18 : if (dce_call->fault_code != 0) {
1224 0 : DEBUG(2,("dcerpc_fault %s in lsa_EnumPrivsAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1225 : }
1226 18 : break;
1227 : }
1228 15 : case 19: {
1229 15 : struct lsa_AddPrivilegesToAccount *r2 = (struct lsa_AddPrivilegesToAccount *)r;
1230 15 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1231 0 : DEBUG(5,("function lsa_AddPrivilegesToAccount replied async\n"));
1232 : }
1233 15 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1234 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_AddPrivilegesToAccount, NDR_OUT | NDR_SET_VALUES, r2);
1235 : }
1236 15 : if (dce_call->fault_code != 0) {
1237 0 : DEBUG(2,("dcerpc_fault %s in lsa_AddPrivilegesToAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1238 : }
1239 15 : break;
1240 : }
1241 15 : case 20: {
1242 15 : struct lsa_RemovePrivilegesFromAccount *r2 = (struct lsa_RemovePrivilegesFromAccount *)r;
1243 15 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1244 0 : DEBUG(5,("function lsa_RemovePrivilegesFromAccount replied async\n"));
1245 : }
1246 15 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1247 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_RemovePrivilegesFromAccount, NDR_OUT | NDR_SET_VALUES, r2);
1248 : }
1249 15 : if (dce_call->fault_code != 0) {
1250 0 : DEBUG(2,("dcerpc_fault %s in lsa_RemovePrivilegesFromAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1251 : }
1252 15 : break;
1253 : }
1254 0 : case 21: {
1255 0 : struct lsa_GetQuotasForAccount *r2 = (struct lsa_GetQuotasForAccount *)r;
1256 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1257 0 : DEBUG(5,("function lsa_GetQuotasForAccount replied async\n"));
1258 : }
1259 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1260 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_GetQuotasForAccount, NDR_OUT | NDR_SET_VALUES, r2);
1261 : }
1262 0 : if (dce_call->fault_code != 0) {
1263 0 : DEBUG(2,("dcerpc_fault %s in lsa_GetQuotasForAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1264 : }
1265 0 : break;
1266 : }
1267 0 : case 22: {
1268 0 : struct lsa_SetQuotasForAccount *r2 = (struct lsa_SetQuotasForAccount *)r;
1269 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1270 0 : DEBUG(5,("function lsa_SetQuotasForAccount replied async\n"));
1271 : }
1272 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1273 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetQuotasForAccount, NDR_OUT | NDR_SET_VALUES, r2);
1274 : }
1275 0 : if (dce_call->fault_code != 0) {
1276 0 : DEBUG(2,("dcerpc_fault %s in lsa_SetQuotasForAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1277 : }
1278 0 : break;
1279 : }
1280 26 : case 23: {
1281 26 : struct lsa_GetSystemAccessAccount *r2 = (struct lsa_GetSystemAccessAccount *)r;
1282 26 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1283 0 : DEBUG(5,("function lsa_GetSystemAccessAccount replied async\n"));
1284 : }
1285 26 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1286 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_GetSystemAccessAccount, NDR_OUT | NDR_SET_VALUES, r2);
1287 : }
1288 26 : if (dce_call->fault_code != 0) {
1289 0 : DEBUG(2,("dcerpc_fault %s in lsa_GetSystemAccessAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1290 : }
1291 26 : break;
1292 : }
1293 0 : case 24: {
1294 0 : struct lsa_SetSystemAccessAccount *r2 = (struct lsa_SetSystemAccessAccount *)r;
1295 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1296 0 : DEBUG(5,("function lsa_SetSystemAccessAccount replied async\n"));
1297 : }
1298 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1299 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetSystemAccessAccount, NDR_OUT | NDR_SET_VALUES, r2);
1300 : }
1301 0 : if (dce_call->fault_code != 0) {
1302 0 : DEBUG(2,("dcerpc_fault %s in lsa_SetSystemAccessAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1303 : }
1304 0 : break;
1305 : }
1306 108 : case 25: {
1307 108 : struct lsa_OpenTrustedDomain *r2 = (struct lsa_OpenTrustedDomain *)r;
1308 108 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1309 0 : DEBUG(5,("function lsa_OpenTrustedDomain replied async\n"));
1310 : }
1311 108 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1312 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_OpenTrustedDomain, NDR_OUT | NDR_SET_VALUES, r2);
1313 : }
1314 108 : if (dce_call->fault_code != 0) {
1315 0 : DEBUG(2,("dcerpc_fault %s in lsa_OpenTrustedDomain\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1316 : }
1317 108 : break;
1318 : }
1319 2919 : case 26: {
1320 2919 : struct lsa_QueryTrustedDomainInfo *r2 = (struct lsa_QueryTrustedDomainInfo *)r;
1321 2919 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1322 0 : DEBUG(5,("function lsa_QueryTrustedDomainInfo replied async\n"));
1323 : }
1324 2919 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1325 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QueryTrustedDomainInfo, NDR_OUT | NDR_SET_VALUES, r2);
1326 : }
1327 2919 : if (dce_call->fault_code != 0) {
1328 0 : DEBUG(2,("dcerpc_fault %s in lsa_QueryTrustedDomainInfo\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1329 : }
1330 2919 : break;
1331 : }
1332 22 : case 27: {
1333 22 : struct lsa_SetInformationTrustedDomain *r2 = (struct lsa_SetInformationTrustedDomain *)r;
1334 22 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1335 0 : DEBUG(5,("function lsa_SetInformationTrustedDomain replied async\n"));
1336 : }
1337 22 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1338 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetInformationTrustedDomain, NDR_OUT | NDR_SET_VALUES, r2);
1339 : }
1340 22 : if (dce_call->fault_code != 0) {
1341 0 : DEBUG(2,("dcerpc_fault %s in lsa_SetInformationTrustedDomain\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1342 : }
1343 22 : break;
1344 : }
1345 46 : case 28: {
1346 46 : struct lsa_OpenSecret *r2 = (struct lsa_OpenSecret *)r;
1347 46 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1348 0 : DEBUG(5,("function lsa_OpenSecret replied async\n"));
1349 : }
1350 46 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1351 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_OpenSecret, NDR_OUT | NDR_SET_VALUES, r2);
1352 : }
1353 46 : if (dce_call->fault_code != 0) {
1354 0 : DEBUG(2,("dcerpc_fault %s in lsa_OpenSecret\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1355 : }
1356 46 : break;
1357 : }
1358 2376 : case 29: {
1359 2376 : struct lsa_SetSecret *r2 = (struct lsa_SetSecret *)r;
1360 2376 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1361 0 : DEBUG(5,("function lsa_SetSecret replied async\n"));
1362 : }
1363 2376 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1364 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetSecret, NDR_OUT | NDR_SET_VALUES, r2);
1365 : }
1366 2376 : if (dce_call->fault_code != 0) {
1367 0 : DEBUG(2,("dcerpc_fault %s in lsa_SetSecret\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1368 : }
1369 2376 : break;
1370 : }
1371 1212 : case 30: {
1372 1212 : struct lsa_QuerySecret *r2 = (struct lsa_QuerySecret *)r;
1373 1212 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1374 0 : DEBUG(5,("function lsa_QuerySecret replied async\n"));
1375 : }
1376 1212 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1377 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QuerySecret, NDR_OUT | NDR_SET_VALUES, r2);
1378 : }
1379 1212 : if (dce_call->fault_code != 0) {
1380 0 : DEBUG(2,("dcerpc_fault %s in lsa_QuerySecret\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1381 : }
1382 1212 : break;
1383 : }
1384 77 : case 31: {
1385 77 : struct lsa_LookupPrivValue *r2 = (struct lsa_LookupPrivValue *)r;
1386 77 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1387 0 : DEBUG(5,("function lsa_LookupPrivValue replied async\n"));
1388 : }
1389 77 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1390 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupPrivValue, NDR_OUT | NDR_SET_VALUES, r2);
1391 : }
1392 77 : if (dce_call->fault_code != 0) {
1393 0 : DEBUG(2,("dcerpc_fault %s in lsa_LookupPrivValue\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1394 : }
1395 77 : break;
1396 : }
1397 96 : case 32: {
1398 96 : struct lsa_LookupPrivName *r2 = (struct lsa_LookupPrivName *)r;
1399 96 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1400 0 : DEBUG(5,("function lsa_LookupPrivName replied async\n"));
1401 : }
1402 96 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1403 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupPrivName, NDR_OUT | NDR_SET_VALUES, r2);
1404 : }
1405 96 : if (dce_call->fault_code != 0) {
1406 0 : DEBUG(2,("dcerpc_fault %s in lsa_LookupPrivName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1407 : }
1408 96 : break;
1409 : }
1410 75 : case 33: {
1411 75 : struct lsa_LookupPrivDisplayName *r2 = (struct lsa_LookupPrivDisplayName *)r;
1412 75 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1413 0 : DEBUG(5,("function lsa_LookupPrivDisplayName replied async\n"));
1414 : }
1415 75 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1416 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupPrivDisplayName, NDR_OUT | NDR_SET_VALUES, r2);
1417 : }
1418 75 : if (dce_call->fault_code != 0) {
1419 0 : DEBUG(2,("dcerpc_fault %s in lsa_LookupPrivDisplayName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1420 : }
1421 75 : break;
1422 : }
1423 1676 : case 34: {
1424 1676 : struct lsa_DeleteObject *r2 = (struct lsa_DeleteObject *)r;
1425 1676 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1426 0 : DEBUG(5,("function lsa_DeleteObject replied async\n"));
1427 : }
1428 1676 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1429 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_DeleteObject, NDR_OUT | NDR_SET_VALUES, r2);
1430 : }
1431 1676 : if (dce_call->fault_code != 0) {
1432 0 : DEBUG(2,("dcerpc_fault %s in lsa_DeleteObject\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1433 : }
1434 1676 : break;
1435 : }
1436 75 : case 35: {
1437 75 : struct lsa_EnumAccountsWithUserRight *r2 = (struct lsa_EnumAccountsWithUserRight *)r;
1438 75 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1439 0 : DEBUG(5,("function lsa_EnumAccountsWithUserRight replied async\n"));
1440 : }
1441 75 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1442 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumAccountsWithUserRight, NDR_OUT | NDR_SET_VALUES, r2);
1443 : }
1444 75 : if (dce_call->fault_code != 0) {
1445 0 : DEBUG(2,("dcerpc_fault %s in lsa_EnumAccountsWithUserRight\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1446 : }
1447 75 : break;
1448 : }
1449 46 : case 36: {
1450 46 : struct lsa_EnumAccountRights *r2 = (struct lsa_EnumAccountRights *)r;
1451 46 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1452 0 : DEBUG(5,("function lsa_EnumAccountRights replied async\n"));
1453 : }
1454 46 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1455 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumAccountRights, NDR_OUT | NDR_SET_VALUES, r2);
1456 : }
1457 46 : if (dce_call->fault_code != 0) {
1458 0 : DEBUG(2,("dcerpc_fault %s in lsa_EnumAccountRights\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1459 : }
1460 46 : break;
1461 : }
1462 10 : case 37: {
1463 10 : struct lsa_AddAccountRights *r2 = (struct lsa_AddAccountRights *)r;
1464 10 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1465 0 : DEBUG(5,("function lsa_AddAccountRights replied async\n"));
1466 : }
1467 10 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1468 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_AddAccountRights, NDR_OUT | NDR_SET_VALUES, r2);
1469 : }
1470 10 : if (dce_call->fault_code != 0) {
1471 0 : DEBUG(2,("dcerpc_fault %s in lsa_AddAccountRights\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1472 : }
1473 10 : break;
1474 : }
1475 0 : case 38: {
1476 0 : struct lsa_RemoveAccountRights *r2 = (struct lsa_RemoveAccountRights *)r;
1477 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1478 0 : DEBUG(5,("function lsa_RemoveAccountRights replied async\n"));
1479 : }
1480 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1481 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_RemoveAccountRights, NDR_OUT | NDR_SET_VALUES, r2);
1482 : }
1483 0 : if (dce_call->fault_code != 0) {
1484 0 : DEBUG(2,("dcerpc_fault %s in lsa_RemoveAccountRights\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1485 : }
1486 0 : break;
1487 : }
1488 1405 : case 39: {
1489 1405 : struct lsa_QueryTrustedDomainInfoBySid *r2 = (struct lsa_QueryTrustedDomainInfoBySid *)r;
1490 1405 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1491 0 : DEBUG(5,("function lsa_QueryTrustedDomainInfoBySid replied async\n"));
1492 : }
1493 1405 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1494 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QueryTrustedDomainInfoBySid, NDR_OUT | NDR_SET_VALUES, r2);
1495 : }
1496 1405 : if (dce_call->fault_code != 0) {
1497 0 : DEBUG(2,("dcerpc_fault %s in lsa_QueryTrustedDomainInfoBySid\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1498 : }
1499 1405 : break;
1500 : }
1501 0 : case 40: {
1502 0 : struct lsa_SetTrustedDomainInfo *r2 = (struct lsa_SetTrustedDomainInfo *)r;
1503 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1504 0 : DEBUG(5,("function lsa_SetTrustedDomainInfo replied async\n"));
1505 : }
1506 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1507 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetTrustedDomainInfo, NDR_OUT | NDR_SET_VALUES, r2);
1508 : }
1509 0 : if (dce_call->fault_code != 0) {
1510 0 : DEBUG(2,("dcerpc_fault %s in lsa_SetTrustedDomainInfo\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1511 : }
1512 0 : break;
1513 : }
1514 112 : case 41: {
1515 112 : struct lsa_DeleteTrustedDomain *r2 = (struct lsa_DeleteTrustedDomain *)r;
1516 112 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1517 0 : DEBUG(5,("function lsa_DeleteTrustedDomain replied async\n"));
1518 : }
1519 112 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1520 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_DeleteTrustedDomain, NDR_OUT | NDR_SET_VALUES, r2);
1521 : }
1522 112 : if (dce_call->fault_code != 0) {
1523 0 : DEBUG(2,("dcerpc_fault %s in lsa_DeleteTrustedDomain\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1524 : }
1525 112 : break;
1526 : }
1527 0 : case 42: {
1528 0 : struct lsa_StorePrivateData *r2 = (struct lsa_StorePrivateData *)r;
1529 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1530 0 : DEBUG(5,("function lsa_StorePrivateData replied async\n"));
1531 : }
1532 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1533 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_StorePrivateData, NDR_OUT | NDR_SET_VALUES, r2);
1534 : }
1535 0 : if (dce_call->fault_code != 0) {
1536 0 : DEBUG(2,("dcerpc_fault %s in lsa_StorePrivateData\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1537 : }
1538 0 : break;
1539 : }
1540 0 : case 43: {
1541 0 : struct lsa_RetrievePrivateData *r2 = (struct lsa_RetrievePrivateData *)r;
1542 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1543 0 : DEBUG(5,("function lsa_RetrievePrivateData replied async\n"));
1544 : }
1545 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1546 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_RetrievePrivateData, NDR_OUT | NDR_SET_VALUES, r2);
1547 : }
1548 0 : if (dce_call->fault_code != 0) {
1549 0 : DEBUG(2,("dcerpc_fault %s in lsa_RetrievePrivateData\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1550 : }
1551 0 : break;
1552 : }
1553 2607 : case 44: {
1554 2607 : struct lsa_OpenPolicy2 *r2 = (struct lsa_OpenPolicy2 *)r;
1555 2607 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1556 0 : DEBUG(5,("function lsa_OpenPolicy2 replied async\n"));
1557 : }
1558 2607 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1559 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_OpenPolicy2, NDR_OUT | NDR_SET_VALUES, r2);
1560 : }
1561 2607 : if (dce_call->fault_code != 0) {
1562 0 : DEBUG(2,("dcerpc_fault %s in lsa_OpenPolicy2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1563 : }
1564 2524 : break;
1565 : }
1566 516 : case 45: {
1567 516 : struct lsa_GetUserName *r2 = (struct lsa_GetUserName *)r;
1568 516 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1569 0 : DEBUG(5,("function lsa_GetUserName replied async\n"));
1570 : }
1571 516 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1572 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_GetUserName, NDR_OUT | NDR_SET_VALUES, r2);
1573 : }
1574 516 : if (dce_call->fault_code != 0) {
1575 0 : DEBUG(2,("dcerpc_fault %s in lsa_GetUserName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1576 : }
1577 468 : break;
1578 : }
1579 1000 : case 46: {
1580 1000 : struct lsa_QueryInfoPolicy2 *r2 = (struct lsa_QueryInfoPolicy2 *)r;
1581 1000 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1582 0 : DEBUG(5,("function lsa_QueryInfoPolicy2 replied async\n"));
1583 : }
1584 1000 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1585 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QueryInfoPolicy2, NDR_OUT | NDR_SET_VALUES, r2);
1586 : }
1587 1000 : if (dce_call->fault_code != 0) {
1588 0 : DEBUG(2,("dcerpc_fault %s in lsa_QueryInfoPolicy2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1589 : }
1590 926 : break;
1591 : }
1592 0 : case 47: {
1593 0 : struct lsa_SetInfoPolicy2 *r2 = (struct lsa_SetInfoPolicy2 *)r;
1594 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1595 0 : DEBUG(5,("function lsa_SetInfoPolicy2 replied async\n"));
1596 : }
1597 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1598 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetInfoPolicy2, NDR_OUT | NDR_SET_VALUES, r2);
1599 : }
1600 0 : if (dce_call->fault_code != 0) {
1601 0 : DEBUG(2,("dcerpc_fault %s in lsa_SetInfoPolicy2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1602 : }
1603 0 : break;
1604 : }
1605 1691 : case 48: {
1606 1691 : struct lsa_QueryTrustedDomainInfoByName *r2 = (struct lsa_QueryTrustedDomainInfoByName *)r;
1607 1691 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1608 0 : DEBUG(5,("function lsa_QueryTrustedDomainInfoByName replied async\n"));
1609 : }
1610 1691 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1611 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QueryTrustedDomainInfoByName, NDR_OUT | NDR_SET_VALUES, r2);
1612 : }
1613 1691 : if (dce_call->fault_code != 0) {
1614 0 : DEBUG(2,("dcerpc_fault %s in lsa_QueryTrustedDomainInfoByName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1615 : }
1616 1691 : break;
1617 : }
1618 18 : case 49: {
1619 18 : struct lsa_SetTrustedDomainInfoByName *r2 = (struct lsa_SetTrustedDomainInfoByName *)r;
1620 18 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1621 0 : DEBUG(5,("function lsa_SetTrustedDomainInfoByName replied async\n"));
1622 : }
1623 18 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1624 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetTrustedDomainInfoByName, NDR_OUT | NDR_SET_VALUES, r2);
1625 : }
1626 18 : if (dce_call->fault_code != 0) {
1627 0 : DEBUG(2,("dcerpc_fault %s in lsa_SetTrustedDomainInfoByName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1628 : }
1629 18 : break;
1630 : }
1631 42 : case 50: {
1632 42 : struct lsa_EnumTrustedDomainsEx *r2 = (struct lsa_EnumTrustedDomainsEx *)r;
1633 42 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1634 0 : DEBUG(5,("function lsa_EnumTrustedDomainsEx replied async\n"));
1635 : }
1636 42 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1637 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_EnumTrustedDomainsEx, NDR_OUT | NDR_SET_VALUES, r2);
1638 : }
1639 42 : if (dce_call->fault_code != 0) {
1640 0 : DEBUG(2,("dcerpc_fault %s in lsa_EnumTrustedDomainsEx\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1641 : }
1642 42 : break;
1643 : }
1644 36 : case 51: {
1645 36 : struct lsa_CreateTrustedDomainEx *r2 = (struct lsa_CreateTrustedDomainEx *)r;
1646 36 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1647 0 : DEBUG(5,("function lsa_CreateTrustedDomainEx replied async\n"));
1648 : }
1649 36 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1650 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomainEx, NDR_OUT | NDR_SET_VALUES, r2);
1651 : }
1652 36 : if (dce_call->fault_code != 0) {
1653 0 : DEBUG(2,("dcerpc_fault %s in lsa_CreateTrustedDomainEx\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1654 : }
1655 36 : break;
1656 : }
1657 108 : case 52: {
1658 108 : struct lsa_CloseTrustedDomainEx *r2 = (struct lsa_CloseTrustedDomainEx *)r;
1659 108 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1660 0 : DEBUG(5,("function lsa_CloseTrustedDomainEx replied async\n"));
1661 : }
1662 108 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1663 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CloseTrustedDomainEx, NDR_OUT | NDR_SET_VALUES, r2);
1664 : }
1665 108 : if (dce_call->fault_code != 0) {
1666 0 : DEBUG(2,("dcerpc_fault %s in lsa_CloseTrustedDomainEx\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1667 : }
1668 108 : break;
1669 : }
1670 24 : case 53: {
1671 24 : struct lsa_QueryDomainInformationPolicy *r2 = (struct lsa_QueryDomainInformationPolicy *)r;
1672 24 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1673 0 : DEBUG(5,("function lsa_QueryDomainInformationPolicy replied async\n"));
1674 : }
1675 24 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1676 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_QueryDomainInformationPolicy, NDR_OUT | NDR_SET_VALUES, r2);
1677 : }
1678 24 : if (dce_call->fault_code != 0) {
1679 0 : DEBUG(2,("dcerpc_fault %s in lsa_QueryDomainInformationPolicy\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1680 : }
1681 24 : break;
1682 : }
1683 0 : case 54: {
1684 0 : struct lsa_SetDomainInformationPolicy *r2 = (struct lsa_SetDomainInformationPolicy *)r;
1685 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1686 0 : DEBUG(5,("function lsa_SetDomainInformationPolicy replied async\n"));
1687 : }
1688 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1689 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_SetDomainInformationPolicy, NDR_OUT | NDR_SET_VALUES, r2);
1690 : }
1691 0 : if (dce_call->fault_code != 0) {
1692 0 : DEBUG(2,("dcerpc_fault %s in lsa_SetDomainInformationPolicy\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1693 : }
1694 0 : break;
1695 : }
1696 108 : case 55: {
1697 108 : struct lsa_OpenTrustedDomainByName *r2 = (struct lsa_OpenTrustedDomainByName *)r;
1698 108 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1699 0 : DEBUG(5,("function lsa_OpenTrustedDomainByName replied async\n"));
1700 : }
1701 108 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1702 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_OpenTrustedDomainByName, NDR_OUT | NDR_SET_VALUES, r2);
1703 : }
1704 108 : if (dce_call->fault_code != 0) {
1705 0 : DEBUG(2,("dcerpc_fault %s in lsa_OpenTrustedDomainByName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1706 : }
1707 108 : break;
1708 : }
1709 0 : case 56: {
1710 0 : struct lsa_TestCall *r2 = (struct lsa_TestCall *)r;
1711 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1712 0 : DEBUG(5,("function lsa_TestCall replied async\n"));
1713 : }
1714 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1715 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_TestCall, NDR_OUT | NDR_SET_VALUES, r2);
1716 : }
1717 0 : if (dce_call->fault_code != 0) {
1718 0 : DEBUG(2,("dcerpc_fault %s in lsa_TestCall\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1719 : }
1720 0 : break;
1721 : }
1722 3 : case 57: {
1723 3 : struct lsa_LookupSids2 *r2 = (struct lsa_LookupSids2 *)r;
1724 3 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1725 0 : DEBUG(5,("function lsa_LookupSids2 replied async\n"));
1726 : }
1727 3 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1728 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupSids2, NDR_OUT | NDR_SET_VALUES, r2);
1729 : }
1730 3 : if (dce_call->fault_code != 0) {
1731 0 : DEBUG(2,("dcerpc_fault %s in lsa_LookupSids2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1732 : }
1733 3 : break;
1734 : }
1735 6 : case 58: {
1736 6 : struct lsa_LookupNames2 *r2 = (struct lsa_LookupNames2 *)r;
1737 6 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1738 0 : DEBUG(5,("function lsa_LookupNames2 replied async\n"));
1739 : }
1740 6 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1741 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames2, NDR_OUT | NDR_SET_VALUES, r2);
1742 : }
1743 6 : if (dce_call->fault_code != 0) {
1744 0 : DEBUG(2,("dcerpc_fault %s in lsa_LookupNames2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1745 : }
1746 6 : break;
1747 : }
1748 62 : case 59: {
1749 62 : struct lsa_CreateTrustedDomainEx2 *r2 = (struct lsa_CreateTrustedDomainEx2 *)r;
1750 62 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1751 0 : DEBUG(5,("function lsa_CreateTrustedDomainEx2 replied async\n"));
1752 : }
1753 62 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1754 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomainEx2, NDR_OUT | NDR_SET_VALUES, r2);
1755 : }
1756 62 : if (dce_call->fault_code != 0) {
1757 0 : DEBUG(2,("dcerpc_fault %s in lsa_CreateTrustedDomainEx2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1758 : }
1759 62 : break;
1760 : }
1761 0 : case 60: {
1762 0 : struct lsa_CREDRWRITE *r2 = (struct lsa_CREDRWRITE *)r;
1763 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1764 0 : DEBUG(5,("function lsa_CREDRWRITE replied async\n"));
1765 : }
1766 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1767 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRWRITE, NDR_OUT | NDR_SET_VALUES, r2);
1768 : }
1769 0 : if (dce_call->fault_code != 0) {
1770 0 : DEBUG(2,("dcerpc_fault %s in lsa_CREDRWRITE\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1771 : }
1772 0 : break;
1773 : }
1774 0 : case 61: {
1775 0 : struct lsa_CREDRREAD *r2 = (struct lsa_CREDRREAD *)r;
1776 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1777 0 : DEBUG(5,("function lsa_CREDRREAD replied async\n"));
1778 : }
1779 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1780 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRREAD, NDR_OUT | NDR_SET_VALUES, r2);
1781 : }
1782 0 : if (dce_call->fault_code != 0) {
1783 0 : DEBUG(2,("dcerpc_fault %s in lsa_CREDRREAD\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1784 : }
1785 0 : break;
1786 : }
1787 0 : case 62: {
1788 0 : struct lsa_CREDRENUMERATE *r2 = (struct lsa_CREDRENUMERATE *)r;
1789 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1790 0 : DEBUG(5,("function lsa_CREDRENUMERATE replied async\n"));
1791 : }
1792 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1793 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRENUMERATE, NDR_OUT | NDR_SET_VALUES, r2);
1794 : }
1795 0 : if (dce_call->fault_code != 0) {
1796 0 : DEBUG(2,("dcerpc_fault %s in lsa_CREDRENUMERATE\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1797 : }
1798 0 : break;
1799 : }
1800 0 : case 63: {
1801 0 : struct lsa_CREDRWRITEDOMAINCREDENTIALS *r2 = (struct lsa_CREDRWRITEDOMAINCREDENTIALS *)r;
1802 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1803 0 : DEBUG(5,("function lsa_CREDRWRITEDOMAINCREDENTIALS replied async\n"));
1804 : }
1805 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1806 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, NDR_OUT | NDR_SET_VALUES, r2);
1807 : }
1808 0 : if (dce_call->fault_code != 0) {
1809 0 : DEBUG(2,("dcerpc_fault %s in lsa_CREDRWRITEDOMAINCREDENTIALS\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1810 : }
1811 0 : break;
1812 : }
1813 0 : case 64: {
1814 0 : struct lsa_CREDRREADDOMAINCREDENTIALS *r2 = (struct lsa_CREDRREADDOMAINCREDENTIALS *)r;
1815 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1816 0 : DEBUG(5,("function lsa_CREDRREADDOMAINCREDENTIALS replied async\n"));
1817 : }
1818 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1819 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, NDR_OUT | NDR_SET_VALUES, r2);
1820 : }
1821 0 : if (dce_call->fault_code != 0) {
1822 0 : DEBUG(2,("dcerpc_fault %s in lsa_CREDRREADDOMAINCREDENTIALS\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1823 : }
1824 0 : break;
1825 : }
1826 0 : case 65: {
1827 0 : struct lsa_CREDRDELETE *r2 = (struct lsa_CREDRDELETE *)r;
1828 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1829 0 : DEBUG(5,("function lsa_CREDRDELETE replied async\n"));
1830 : }
1831 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1832 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRDELETE, NDR_OUT | NDR_SET_VALUES, r2);
1833 : }
1834 0 : if (dce_call->fault_code != 0) {
1835 0 : DEBUG(2,("dcerpc_fault %s in lsa_CREDRDELETE\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1836 : }
1837 0 : break;
1838 : }
1839 0 : case 66: {
1840 0 : struct lsa_CREDRGETTARGETINFO *r2 = (struct lsa_CREDRGETTARGETINFO *)r;
1841 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1842 0 : DEBUG(5,("function lsa_CREDRGETTARGETINFO replied async\n"));
1843 : }
1844 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1845 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRGETTARGETINFO, NDR_OUT | NDR_SET_VALUES, r2);
1846 : }
1847 0 : if (dce_call->fault_code != 0) {
1848 0 : DEBUG(2,("dcerpc_fault %s in lsa_CREDRGETTARGETINFO\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1849 : }
1850 0 : break;
1851 : }
1852 0 : case 67: {
1853 0 : struct lsa_CREDRPROFILELOADED *r2 = (struct lsa_CREDRPROFILELOADED *)r;
1854 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1855 0 : DEBUG(5,("function lsa_CREDRPROFILELOADED replied async\n"));
1856 : }
1857 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1858 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRPROFILELOADED, NDR_OUT | NDR_SET_VALUES, r2);
1859 : }
1860 0 : if (dce_call->fault_code != 0) {
1861 0 : DEBUG(2,("dcerpc_fault %s in lsa_CREDRPROFILELOADED\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1862 : }
1863 0 : break;
1864 : }
1865 6 : case 68: {
1866 6 : struct lsa_LookupNames3 *r2 = (struct lsa_LookupNames3 *)r;
1867 6 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1868 0 : DEBUG(5,("function lsa_LookupNames3 replied async\n"));
1869 : }
1870 6 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1871 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames3, NDR_OUT | NDR_SET_VALUES, r2);
1872 : }
1873 6 : if (dce_call->fault_code != 0) {
1874 0 : DEBUG(2,("dcerpc_fault %s in lsa_LookupNames3\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1875 : }
1876 6 : break;
1877 : }
1878 0 : case 69: {
1879 0 : struct lsa_CREDRGETSESSIONTYPES *r2 = (struct lsa_CREDRGETSESSIONTYPES *)r;
1880 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1881 0 : DEBUG(5,("function lsa_CREDRGETSESSIONTYPES replied async\n"));
1882 : }
1883 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1884 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRGETSESSIONTYPES, NDR_OUT | NDR_SET_VALUES, r2);
1885 : }
1886 0 : if (dce_call->fault_code != 0) {
1887 0 : DEBUG(2,("dcerpc_fault %s in lsa_CREDRGETSESSIONTYPES\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1888 : }
1889 0 : break;
1890 : }
1891 0 : case 70: {
1892 0 : struct lsa_LSARREGISTERAUDITEVENT *r2 = (struct lsa_LSARREGISTERAUDITEVENT *)r;
1893 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1894 0 : DEBUG(5,("function lsa_LSARREGISTERAUDITEVENT replied async\n"));
1895 : }
1896 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1897 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSARREGISTERAUDITEVENT, NDR_OUT | NDR_SET_VALUES, r2);
1898 : }
1899 0 : if (dce_call->fault_code != 0) {
1900 0 : DEBUG(2,("dcerpc_fault %s in lsa_LSARREGISTERAUDITEVENT\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1901 : }
1902 0 : break;
1903 : }
1904 0 : case 71: {
1905 0 : struct lsa_LSARGENAUDITEVENT *r2 = (struct lsa_LSARGENAUDITEVENT *)r;
1906 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1907 0 : DEBUG(5,("function lsa_LSARGENAUDITEVENT replied async\n"));
1908 : }
1909 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1910 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSARGENAUDITEVENT, NDR_OUT | NDR_SET_VALUES, r2);
1911 : }
1912 0 : if (dce_call->fault_code != 0) {
1913 0 : DEBUG(2,("dcerpc_fault %s in lsa_LSARGENAUDITEVENT\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1914 : }
1915 0 : break;
1916 : }
1917 0 : case 72: {
1918 0 : struct lsa_LSARUNREGISTERAUDITEVENT *r2 = (struct lsa_LSARUNREGISTERAUDITEVENT *)r;
1919 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1920 0 : DEBUG(5,("function lsa_LSARUNREGISTERAUDITEVENT replied async\n"));
1921 : }
1922 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1923 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, NDR_OUT | NDR_SET_VALUES, r2);
1924 : }
1925 0 : if (dce_call->fault_code != 0) {
1926 0 : DEBUG(2,("dcerpc_fault %s in lsa_LSARUNREGISTERAUDITEVENT\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1927 : }
1928 0 : break;
1929 : }
1930 164 : case 73: {
1931 164 : struct lsa_lsaRQueryForestTrustInformation *r2 = (struct lsa_lsaRQueryForestTrustInformation *)r;
1932 164 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1933 0 : DEBUG(5,("function lsa_lsaRQueryForestTrustInformation replied async\n"));
1934 : }
1935 164 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1936 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_lsaRQueryForestTrustInformation, NDR_OUT | NDR_SET_VALUES, r2);
1937 : }
1938 164 : if (dce_call->fault_code != 0) {
1939 0 : DEBUG(2,("dcerpc_fault %s in lsa_lsaRQueryForestTrustInformation\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1940 : }
1941 164 : break;
1942 : }
1943 87 : case 74: {
1944 87 : struct lsa_lsaRSetForestTrustInformation *r2 = (struct lsa_lsaRSetForestTrustInformation *)r;
1945 87 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1946 0 : DEBUG(5,("function lsa_lsaRSetForestTrustInformation replied async\n"));
1947 : }
1948 87 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1949 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_lsaRSetForestTrustInformation, NDR_OUT | NDR_SET_VALUES, r2);
1950 : }
1951 87 : if (dce_call->fault_code != 0) {
1952 0 : DEBUG(2,("dcerpc_fault %s in lsa_lsaRSetForestTrustInformation\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1953 : }
1954 87 : break;
1955 : }
1956 0 : case 75: {
1957 0 : struct lsa_CREDRRENAME *r2 = (struct lsa_CREDRRENAME *)r;
1958 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1959 0 : DEBUG(5,("function lsa_CREDRRENAME replied async\n"));
1960 : }
1961 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1962 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRRENAME, NDR_OUT | NDR_SET_VALUES, r2);
1963 : }
1964 0 : if (dce_call->fault_code != 0) {
1965 0 : DEBUG(2,("dcerpc_fault %s in lsa_CREDRRENAME\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1966 : }
1967 0 : break;
1968 : }
1969 1408 : case 76: {
1970 1408 : struct lsa_LookupSids3 *r2 = (struct lsa_LookupSids3 *)r;
1971 1408 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1972 19 : DEBUG(5,("function lsa_LookupSids3 replied async\n"));
1973 : }
1974 1408 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1975 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupSids3, NDR_OUT | NDR_SET_VALUES, r2);
1976 : }
1977 1408 : if (dce_call->fault_code != 0) {
1978 0 : DEBUG(2,("dcerpc_fault %s in lsa_LookupSids3\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1979 : }
1980 1360 : break;
1981 : }
1982 818 : case 77: {
1983 818 : struct lsa_LookupNames4 *r2 = (struct lsa_LookupNames4 *)r;
1984 818 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1985 36 : DEBUG(5,("function lsa_LookupNames4 replied async\n"));
1986 : }
1987 818 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
1988 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames4, NDR_OUT | NDR_SET_VALUES, r2);
1989 : }
1990 818 : if (dce_call->fault_code != 0) {
1991 16 : DEBUG(2,("dcerpc_fault %s in lsa_LookupNames4\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
1992 : }
1993 722 : break;
1994 : }
1995 0 : case 78: {
1996 0 : struct lsa_LSAROPENPOLICYSCE *r2 = (struct lsa_LSAROPENPOLICYSCE *)r;
1997 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
1998 0 : DEBUG(5,("function lsa_LSAROPENPOLICYSCE replied async\n"));
1999 : }
2000 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
2001 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSAROPENPOLICYSCE, NDR_OUT | NDR_SET_VALUES, r2);
2002 : }
2003 0 : if (dce_call->fault_code != 0) {
2004 0 : DEBUG(2,("dcerpc_fault %s in lsa_LSAROPENPOLICYSCE\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
2005 : }
2006 0 : break;
2007 : }
2008 0 : case 79: {
2009 0 : struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r2 = (struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *)r;
2010 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
2011 0 : DEBUG(5,("function lsa_LSARADTREGISTERSECURITYEVENTSOURCE replied async\n"));
2012 : }
2013 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
2014 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, NDR_OUT | NDR_SET_VALUES, r2);
2015 : }
2016 0 : if (dce_call->fault_code != 0) {
2017 0 : DEBUG(2,("dcerpc_fault %s in lsa_LSARADTREGISTERSECURITYEVENTSOURCE\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
2018 : }
2019 0 : break;
2020 : }
2021 0 : case 80: {
2022 0 : struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r2 = (struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *)r;
2023 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
2024 0 : DEBUG(5,("function lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE replied async\n"));
2025 : }
2026 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
2027 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, NDR_OUT | NDR_SET_VALUES, r2);
2028 : }
2029 0 : if (dce_call->fault_code != 0) {
2030 0 : DEBUG(2,("dcerpc_fault %s in lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
2031 : }
2032 0 : break;
2033 : }
2034 0 : case 81: {
2035 0 : struct lsa_LSARADTREPORTSECURITYEVENT *r2 = (struct lsa_LSARADTREPORTSECURITYEVENT *)r;
2036 0 : if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
2037 0 : DEBUG(5,("function lsa_LSARADTREPORTSECURITYEVENT replied async\n"));
2038 : }
2039 0 : if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
2040 0 : NDR_PRINT_FUNCTION_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, NDR_OUT | NDR_SET_VALUES, r2);
2041 : }
2042 0 : if (dce_call->fault_code != 0) {
2043 0 : DEBUG(2,("dcerpc_fault %s in lsa_LSARADTREPORTSECURITYEVENT\n", dcerpc_errstr(mem_ctx, dce_call->fault_code)));
2044 : }
2045 0 : break;
2046 : }
2047 :
2048 0 : default:
2049 0 : dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR;
2050 0 : break;
2051 : }
2052 :
2053 24244 : if (dce_call->fault_code != 0) {
2054 16 : return NT_STATUS_NET_WRITE_FAULT;
2055 : }
2056 :
2057 24228 : return NT_STATUS_OK;
2058 : }
2059 :
2060 24228 : static NTSTATUS lsarpc__op_ndr_push(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_push *push, const void *r)
2061 : {
2062 461 : enum ndr_err_code ndr_err;
2063 24228 : uint16_t opnum = dce_call->pkt.u.request.opnum;
2064 :
2065 24228 : ndr_err = ndr_table_lsarpc.calls[opnum].ndr_push(push, NDR_OUT, r);
2066 24228 : if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
2067 0 : dce_call->fault_code = DCERPC_FAULT_NDR;
2068 0 : return NT_STATUS_NET_WRITE_FAULT;
2069 : }
2070 :
2071 24228 : return NT_STATUS_OK;
2072 : }
2073 :
2074 : static const struct dcesrv_interface dcesrv_lsarpc_interface = {
2075 : .name = "lsarpc",
2076 : .syntax_id = {{0x12345778,0x1234,0xabcd,{0xef,0x00},{0x01,0x23,0x45,0x67,0x89,0xab}},0.0},
2077 : .bind = lsarpc__op_bind,
2078 : .unbind = lsarpc__op_unbind,
2079 : .ndr_pull = lsarpc__op_ndr_pull,
2080 : .dispatch = lsarpc__op_dispatch,
2081 : .reply = lsarpc__op_reply,
2082 : .ndr_push = lsarpc__op_ndr_push,
2083 : .local = NULL,
2084 : #ifdef DCESRV_INTERFACE_LSARPC_FLAGS
2085 : .flags = DCESRV_INTERFACE_LSARPC_FLAGS
2086 : #else
2087 : .flags = 0
2088 : #endif
2089 : };
2090 :
2091 :
2092 64 : static NTSTATUS lsarpc__op_init_server(struct dcesrv_context *dce_ctx, const struct dcesrv_endpoint_server *ep_server)
2093 : {
2094 2 : int i;
2095 : #ifdef DCESRV_INTERFACE_LSARPC_NCACN_NP_SECONDARY_ENDPOINT
2096 64 : const char *ncacn_np_secondary_endpoint =
2097 : DCESRV_INTERFACE_LSARPC_NCACN_NP_SECONDARY_ENDPOINT;
2098 : #else
2099 : const char *ncacn_np_secondary_endpoint = NULL;
2100 : #endif
2101 :
2102 320 : for (i=0;i<ndr_table_lsarpc.endpoints->count;i++) {
2103 8 : NTSTATUS ret;
2104 256 : const char *name = ndr_table_lsarpc.endpoints->names[i];
2105 :
2106 256 : ret = dcesrv_interface_register(dce_ctx,
2107 : name,
2108 : ncacn_np_secondary_endpoint,
2109 : &dcesrv_lsarpc_interface,
2110 : NULL);
2111 256 : if (!NT_STATUS_IS_OK(ret)) {
2112 0 : DEBUG(1,("lsarpc_op_init_server: failed to register endpoint '%s'\n",name));
2113 0 : return ret;
2114 : }
2115 : }
2116 :
2117 64 : return NT_STATUS_OK;
2118 : }
2119 :
2120 0 : static NTSTATUS lsarpc__op_shutdown_server(struct dcesrv_context *dce_ctx, const struct dcesrv_endpoint_server *ep_server)
2121 : {
2122 0 : return NT_STATUS_OK;
2123 : }
2124 :
2125 0 : static bool lsarpc__op_interface_by_uuid(struct dcesrv_interface *iface, const struct GUID *uuid, uint32_t if_version)
2126 : {
2127 0 : if (dcesrv_lsarpc_interface.syntax_id.if_version == if_version &&
2128 0 : GUID_equal(&dcesrv_lsarpc_interface.syntax_id.uuid, uuid)) {
2129 0 : memcpy(iface,&dcesrv_lsarpc_interface, sizeof(*iface));
2130 0 : return true;
2131 : }
2132 :
2133 0 : return false;
2134 : }
2135 :
2136 0 : static bool lsarpc__op_interface_by_name(struct dcesrv_interface *iface, const char *name)
2137 : {
2138 0 : if (strcmp(dcesrv_lsarpc_interface.name, name)==0) {
2139 0 : memcpy(iface, &dcesrv_lsarpc_interface, sizeof(*iface));
2140 0 : return true;
2141 : }
2142 :
2143 0 : return false;
2144 : }
2145 :
2146 66 : NTSTATUS dcerpc_server_lsarpc_init(TALLOC_CTX *ctx)
2147 : {
2148 2 : NTSTATUS ret;
2149 2 : static const struct dcesrv_endpoint_server ep_server = {
2150 : /* fill in our name */
2151 : .name = "lsarpc",
2152 :
2153 : /* Initialization flag */
2154 : .initialized = false,
2155 :
2156 : /* fill in all the operations */
2157 : #ifdef DCESRV_INTERFACE_LSARPC_INIT_SERVER
2158 : .init_server = DCESRV_INTERFACE_LSARPC_INIT_SERVER,
2159 : #else
2160 : .init_server = lsarpc__op_init_server,
2161 : #endif
2162 : #ifdef DCESRV_INTERFACE_LSARPC_SHUTDOWN_SERVER
2163 : .shutdown_server = DCESRV_INTERFACE_LSARPC_SHUTDOWN_SERVER,
2164 : #else
2165 : .shutdown_server = lsarpc__op_shutdown_server,
2166 : #endif
2167 : .interface_by_uuid = lsarpc__op_interface_by_uuid,
2168 : .interface_by_name = lsarpc__op_interface_by_name
2169 : };
2170 : /* register ourselves with the DCERPC subsystem. */
2171 66 : ret = dcerpc_register_ep_server(&ep_server);
2172 :
2173 66 : if (!NT_STATUS_IS_OK(ret)) {
2174 0 : DEBUG(0,("Failed to register 'lsarpc' endpoint server!\n"));
2175 0 : return ret;
2176 : }
2177 :
2178 66 : return ret;
2179 : }
2180 :
|