3 #include "lib/util/tevent_ntstatus.h"
4 #include "librpc/rpc/dcerpc_connection.h"
5 #include "bin/default/librpc/gen_ndr/s3compat_lsa.h"
7 struct _s3_compat_lsa_Close_state {
8 struct tevent_context *ev;
9 struct dcerpc_call_handle *call;
13 static struct tevent_req *_s3_compat_lsa_Close_send(TALLOC_CTX *mem_ctx,
14 struct tevent_context *ev,
15 struct dcerpc_call_handle *call,
18 struct tevent_req *req;
19 struct _s3_compat_lsa_Close_state *state;
20 struct pipes_struct *p;
22 req = tevent_req_create(mem_ctx, &state,
23 struct _s3_compat_lsa_Close_state);
31 p = dcerpc_call_handle_get_pipes_struct(call);
33 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
34 return tevent_req_post(req, ev);
38 r->out.handle = r->in.handle;
39 r->out.result = _lsa_Close(p, r);
42 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
43 tevent_req_nterror(req, status);
44 return tevent_req_post(req, ev);
48 return tevent_req_post(req, ev);
51 static NTSTATUS _s3_compat_lsa_Close_recv(struct tevent_req *req)
53 return tevent_req_simple_recv_ntstatus(req);
56 struct _s3_compat_lsa_Delete_state {
57 struct tevent_context *ev;
58 struct dcerpc_call_handle *call;
62 static struct tevent_req *_s3_compat_lsa_Delete_send(TALLOC_CTX *mem_ctx,
63 struct tevent_context *ev,
64 struct dcerpc_call_handle *call,
67 struct tevent_req *req;
68 struct _s3_compat_lsa_Delete_state *state;
69 struct pipes_struct *p;
71 req = tevent_req_create(mem_ctx, &state,
72 struct _s3_compat_lsa_Delete_state);
80 p = dcerpc_call_handle_get_pipes_struct(call);
82 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
83 return tevent_req_post(req, ev);
86 r->out.result = _lsa_Delete(p, r);
89 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
90 tevent_req_nterror(req, status);
91 return tevent_req_post(req, ev);
95 return tevent_req_post(req, ev);
98 static NTSTATUS _s3_compat_lsa_Delete_recv(struct tevent_req *req)
100 return tevent_req_simple_recv_ntstatus(req);
103 struct _s3_compat_lsa_EnumPrivs_state {
104 struct tevent_context *ev;
105 struct dcerpc_call_handle *call;
106 struct lsa_EnumPrivs *r;
109 static struct tevent_req *_s3_compat_lsa_EnumPrivs_send(TALLOC_CTX *mem_ctx,
110 struct tevent_context *ev,
111 struct dcerpc_call_handle *call,
112 struct lsa_EnumPrivs *r)
114 struct tevent_req *req;
115 struct _s3_compat_lsa_EnumPrivs_state *state;
116 struct pipes_struct *p;
118 req = tevent_req_create(mem_ctx, &state,
119 struct _s3_compat_lsa_EnumPrivs_state);
127 p = dcerpc_call_handle_get_pipes_struct(call);
129 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
130 return tevent_req_post(req, ev);
134 r->out.resume_handle = r->in.resume_handle;
135 r->out.privs = talloc_zero(r, struct lsa_PrivArray);
136 if (tevent_req_nomem(r->out.privs, req)) {
137 return tevent_req_post(req, ev);
140 r->out.result = _lsa_EnumPrivs(p, r);
142 if (p->fault_state) {
143 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
144 tevent_req_nterror(req, status);
145 return tevent_req_post(req, ev);
148 tevent_req_done(req);
149 return tevent_req_post(req, ev);
152 static NTSTATUS _s3_compat_lsa_EnumPrivs_recv(struct tevent_req *req)
154 return tevent_req_simple_recv_ntstatus(req);
157 struct _s3_compat_lsa_QuerySecurity_state {
158 struct tevent_context *ev;
159 struct dcerpc_call_handle *call;
160 struct lsa_QuerySecurity *r;
163 static struct tevent_req *_s3_compat_lsa_QuerySecurity_send(TALLOC_CTX *mem_ctx,
164 struct tevent_context *ev,
165 struct dcerpc_call_handle *call,
166 struct lsa_QuerySecurity *r)
168 struct tevent_req *req;
169 struct _s3_compat_lsa_QuerySecurity_state *state;
170 struct pipes_struct *p;
172 req = tevent_req_create(mem_ctx, &state,
173 struct _s3_compat_lsa_QuerySecurity_state);
181 p = dcerpc_call_handle_get_pipes_struct(call);
183 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
184 return tevent_req_post(req, ev);
188 r->out.sdbuf = talloc_zero(r, struct sec_desc_buf *);
189 if (tevent_req_nomem(r->out.sdbuf, req)) {
190 return tevent_req_post(req, ev);
193 r->out.result = _lsa_QuerySecurity(p, r);
195 if (p->fault_state) {
196 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
197 tevent_req_nterror(req, status);
198 return tevent_req_post(req, ev);
201 tevent_req_done(req);
202 return tevent_req_post(req, ev);
205 static NTSTATUS _s3_compat_lsa_QuerySecurity_recv(struct tevent_req *req)
207 return tevent_req_simple_recv_ntstatus(req);
210 struct _s3_compat_lsa_SetSecObj_state {
211 struct tevent_context *ev;
212 struct dcerpc_call_handle *call;
213 struct lsa_SetSecObj *r;
216 static struct tevent_req *_s3_compat_lsa_SetSecObj_send(TALLOC_CTX *mem_ctx,
217 struct tevent_context *ev,
218 struct dcerpc_call_handle *call,
219 struct lsa_SetSecObj *r)
221 struct tevent_req *req;
222 struct _s3_compat_lsa_SetSecObj_state *state;
223 struct pipes_struct *p;
225 req = tevent_req_create(mem_ctx, &state,
226 struct _s3_compat_lsa_SetSecObj_state);
234 p = dcerpc_call_handle_get_pipes_struct(call);
236 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
237 return tevent_req_post(req, ev);
240 r->out.result = _lsa_SetSecObj(p, r);
242 if (p->fault_state) {
243 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
244 tevent_req_nterror(req, status);
245 return tevent_req_post(req, ev);
248 tevent_req_done(req);
249 return tevent_req_post(req, ev);
252 static NTSTATUS _s3_compat_lsa_SetSecObj_recv(struct tevent_req *req)
254 return tevent_req_simple_recv_ntstatus(req);
257 struct _s3_compat_lsa_ChangePassword_state {
258 struct tevent_context *ev;
259 struct dcerpc_call_handle *call;
260 struct lsa_ChangePassword *r;
263 static struct tevent_req *_s3_compat_lsa_ChangePassword_send(TALLOC_CTX *mem_ctx,
264 struct tevent_context *ev,
265 struct dcerpc_call_handle *call,
266 struct lsa_ChangePassword *r)
268 struct tevent_req *req;
269 struct _s3_compat_lsa_ChangePassword_state *state;
270 struct pipes_struct *p;
272 req = tevent_req_create(mem_ctx, &state,
273 struct _s3_compat_lsa_ChangePassword_state);
281 p = dcerpc_call_handle_get_pipes_struct(call);
283 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
284 return tevent_req_post(req, ev);
287 r->out.result = _lsa_ChangePassword(p, r);
289 if (p->fault_state) {
290 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
291 tevent_req_nterror(req, status);
292 return tevent_req_post(req, ev);
295 tevent_req_done(req);
296 return tevent_req_post(req, ev);
299 static NTSTATUS _s3_compat_lsa_ChangePassword_recv(struct tevent_req *req)
301 return tevent_req_simple_recv_ntstatus(req);
304 struct _s3_compat_lsa_OpenPolicy_state {
305 struct tevent_context *ev;
306 struct dcerpc_call_handle *call;
307 struct lsa_OpenPolicy *r;
310 static struct tevent_req *_s3_compat_lsa_OpenPolicy_send(TALLOC_CTX *mem_ctx,
311 struct tevent_context *ev,
312 struct dcerpc_call_handle *call,
313 struct lsa_OpenPolicy *r)
315 struct tevent_req *req;
316 struct _s3_compat_lsa_OpenPolicy_state *state;
317 struct pipes_struct *p;
319 req = tevent_req_create(mem_ctx, &state,
320 struct _s3_compat_lsa_OpenPolicy_state);
328 p = dcerpc_call_handle_get_pipes_struct(call);
330 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
331 return tevent_req_post(req, ev);
335 r->out.handle = talloc_zero(r, struct policy_handle);
336 if (tevent_req_nomem(r->out.handle, req)) {
337 return tevent_req_post(req, ev);
340 r->out.result = _lsa_OpenPolicy(p, r);
342 if (p->fault_state) {
343 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
344 tevent_req_nterror(req, status);
345 return tevent_req_post(req, ev);
348 tevent_req_done(req);
349 return tevent_req_post(req, ev);
352 static NTSTATUS _s3_compat_lsa_OpenPolicy_recv(struct tevent_req *req)
354 return tevent_req_simple_recv_ntstatus(req);
357 struct _s3_compat_lsa_QueryInfoPolicy_state {
358 struct tevent_context *ev;
359 struct dcerpc_call_handle *call;
360 struct lsa_QueryInfoPolicy *r;
363 static struct tevent_req *_s3_compat_lsa_QueryInfoPolicy_send(TALLOC_CTX *mem_ctx,
364 struct tevent_context *ev,
365 struct dcerpc_call_handle *call,
366 struct lsa_QueryInfoPolicy *r)
368 struct tevent_req *req;
369 struct _s3_compat_lsa_QueryInfoPolicy_state *state;
370 struct pipes_struct *p;
372 req = tevent_req_create(mem_ctx, &state,
373 struct _s3_compat_lsa_QueryInfoPolicy_state);
381 p = dcerpc_call_handle_get_pipes_struct(call);
383 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
384 return tevent_req_post(req, ev);
388 r->out.info = talloc_zero(r, union lsa_PolicyInformation *);
389 if (tevent_req_nomem(r->out.info, req)) {
390 return tevent_req_post(req, ev);
393 r->out.result = _lsa_QueryInfoPolicy(p, r);
395 if (p->fault_state) {
396 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
397 tevent_req_nterror(req, status);
398 return tevent_req_post(req, ev);
401 tevent_req_done(req);
402 return tevent_req_post(req, ev);
405 static NTSTATUS _s3_compat_lsa_QueryInfoPolicy_recv(struct tevent_req *req)
407 return tevent_req_simple_recv_ntstatus(req);
410 struct _s3_compat_lsa_SetInfoPolicy_state {
411 struct tevent_context *ev;
412 struct dcerpc_call_handle *call;
413 struct lsa_SetInfoPolicy *r;
416 static struct tevent_req *_s3_compat_lsa_SetInfoPolicy_send(TALLOC_CTX *mem_ctx,
417 struct tevent_context *ev,
418 struct dcerpc_call_handle *call,
419 struct lsa_SetInfoPolicy *r)
421 struct tevent_req *req;
422 struct _s3_compat_lsa_SetInfoPolicy_state *state;
423 struct pipes_struct *p;
425 req = tevent_req_create(mem_ctx, &state,
426 struct _s3_compat_lsa_SetInfoPolicy_state);
434 p = dcerpc_call_handle_get_pipes_struct(call);
436 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
437 return tevent_req_post(req, ev);
440 r->out.result = _lsa_SetInfoPolicy(p, r);
442 if (p->fault_state) {
443 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
444 tevent_req_nterror(req, status);
445 return tevent_req_post(req, ev);
448 tevent_req_done(req);
449 return tevent_req_post(req, ev);
452 static NTSTATUS _s3_compat_lsa_SetInfoPolicy_recv(struct tevent_req *req)
454 return tevent_req_simple_recv_ntstatus(req);
457 struct _s3_compat_lsa_ClearAuditLog_state {
458 struct tevent_context *ev;
459 struct dcerpc_call_handle *call;
460 struct lsa_ClearAuditLog *r;
463 static struct tevent_req *_s3_compat_lsa_ClearAuditLog_send(TALLOC_CTX *mem_ctx,
464 struct tevent_context *ev,
465 struct dcerpc_call_handle *call,
466 struct lsa_ClearAuditLog *r)
468 struct tevent_req *req;
469 struct _s3_compat_lsa_ClearAuditLog_state *state;
470 struct pipes_struct *p;
472 req = tevent_req_create(mem_ctx, &state,
473 struct _s3_compat_lsa_ClearAuditLog_state);
481 p = dcerpc_call_handle_get_pipes_struct(call);
483 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
484 return tevent_req_post(req, ev);
487 r->out.result = _lsa_ClearAuditLog(p, r);
489 if (p->fault_state) {
490 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
491 tevent_req_nterror(req, status);
492 return tevent_req_post(req, ev);
495 tevent_req_done(req);
496 return tevent_req_post(req, ev);
499 static NTSTATUS _s3_compat_lsa_ClearAuditLog_recv(struct tevent_req *req)
501 return tevent_req_simple_recv_ntstatus(req);
504 struct _s3_compat_lsa_CreateAccount_state {
505 struct tevent_context *ev;
506 struct dcerpc_call_handle *call;
507 struct lsa_CreateAccount *r;
510 static struct tevent_req *_s3_compat_lsa_CreateAccount_send(TALLOC_CTX *mem_ctx,
511 struct tevent_context *ev,
512 struct dcerpc_call_handle *call,
513 struct lsa_CreateAccount *r)
515 struct tevent_req *req;
516 struct _s3_compat_lsa_CreateAccount_state *state;
517 struct pipes_struct *p;
519 req = tevent_req_create(mem_ctx, &state,
520 struct _s3_compat_lsa_CreateAccount_state);
528 p = dcerpc_call_handle_get_pipes_struct(call);
530 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
531 return tevent_req_post(req, ev);
535 r->out.acct_handle = talloc_zero(r, struct policy_handle);
536 if (tevent_req_nomem(r->out.acct_handle, req)) {
537 return tevent_req_post(req, ev);
540 r->out.result = _lsa_CreateAccount(p, r);
542 if (p->fault_state) {
543 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
544 tevent_req_nterror(req, status);
545 return tevent_req_post(req, ev);
548 tevent_req_done(req);
549 return tevent_req_post(req, ev);
552 static NTSTATUS _s3_compat_lsa_CreateAccount_recv(struct tevent_req *req)
554 return tevent_req_simple_recv_ntstatus(req);
557 struct _s3_compat_lsa_EnumAccounts_state {
558 struct tevent_context *ev;
559 struct dcerpc_call_handle *call;
560 struct lsa_EnumAccounts *r;
563 static struct tevent_req *_s3_compat_lsa_EnumAccounts_send(TALLOC_CTX *mem_ctx,
564 struct tevent_context *ev,
565 struct dcerpc_call_handle *call,
566 struct lsa_EnumAccounts *r)
568 struct tevent_req *req;
569 struct _s3_compat_lsa_EnumAccounts_state *state;
570 struct pipes_struct *p;
572 req = tevent_req_create(mem_ctx, &state,
573 struct _s3_compat_lsa_EnumAccounts_state);
581 p = dcerpc_call_handle_get_pipes_struct(call);
583 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
584 return tevent_req_post(req, ev);
588 r->out.resume_handle = r->in.resume_handle;
589 r->out.sids = talloc_zero(r, struct lsa_SidArray);
590 if (tevent_req_nomem(r->out.sids, req)) {
591 return tevent_req_post(req, ev);
594 r->out.result = _lsa_EnumAccounts(p, r);
596 if (p->fault_state) {
597 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
598 tevent_req_nterror(req, status);
599 return tevent_req_post(req, ev);
602 tevent_req_done(req);
603 return tevent_req_post(req, ev);
606 static NTSTATUS _s3_compat_lsa_EnumAccounts_recv(struct tevent_req *req)
608 return tevent_req_simple_recv_ntstatus(req);
611 struct _s3_compat_lsa_CreateTrustedDomain_state {
612 struct tevent_context *ev;
613 struct dcerpc_call_handle *call;
614 struct lsa_CreateTrustedDomain *r;
617 static struct tevent_req *_s3_compat_lsa_CreateTrustedDomain_send(TALLOC_CTX *mem_ctx,
618 struct tevent_context *ev,
619 struct dcerpc_call_handle *call,
620 struct lsa_CreateTrustedDomain *r)
622 struct tevent_req *req;
623 struct _s3_compat_lsa_CreateTrustedDomain_state *state;
624 struct pipes_struct *p;
626 req = tevent_req_create(mem_ctx, &state,
627 struct _s3_compat_lsa_CreateTrustedDomain_state);
635 p = dcerpc_call_handle_get_pipes_struct(call);
637 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
638 return tevent_req_post(req, ev);
642 r->out.trustdom_handle = talloc_zero(r, struct policy_handle);
643 if (tevent_req_nomem(r->out.trustdom_handle, req)) {
644 return tevent_req_post(req, ev);
647 r->out.result = _lsa_CreateTrustedDomain(p, r);
649 if (p->fault_state) {
650 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
651 tevent_req_nterror(req, status);
652 return tevent_req_post(req, ev);
655 tevent_req_done(req);
656 return tevent_req_post(req, ev);
659 static NTSTATUS _s3_compat_lsa_CreateTrustedDomain_recv(struct tevent_req *req)
661 return tevent_req_simple_recv_ntstatus(req);
664 struct _s3_compat_lsa_EnumTrustDom_state {
665 struct tevent_context *ev;
666 struct dcerpc_call_handle *call;
667 struct lsa_EnumTrustDom *r;
670 static struct tevent_req *_s3_compat_lsa_EnumTrustDom_send(TALLOC_CTX *mem_ctx,
671 struct tevent_context *ev,
672 struct dcerpc_call_handle *call,
673 struct lsa_EnumTrustDom *r)
675 struct tevent_req *req;
676 struct _s3_compat_lsa_EnumTrustDom_state *state;
677 struct pipes_struct *p;
679 req = tevent_req_create(mem_ctx, &state,
680 struct _s3_compat_lsa_EnumTrustDom_state);
688 p = dcerpc_call_handle_get_pipes_struct(call);
690 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
691 return tevent_req_post(req, ev);
695 r->out.resume_handle = r->in.resume_handle;
696 r->out.domains = talloc_zero(r, struct lsa_DomainList);
697 if (tevent_req_nomem(r->out.domains, req)) {
698 return tevent_req_post(req, ev);
701 r->out.result = _lsa_EnumTrustDom(p, r);
703 if (p->fault_state) {
704 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
705 tevent_req_nterror(req, status);
706 return tevent_req_post(req, ev);
709 tevent_req_done(req);
710 return tevent_req_post(req, ev);
713 static NTSTATUS _s3_compat_lsa_EnumTrustDom_recv(struct tevent_req *req)
715 return tevent_req_simple_recv_ntstatus(req);
718 struct _s3_compat_lsa_LookupNames_state {
719 struct tevent_context *ev;
720 struct dcerpc_call_handle *call;
721 struct lsa_LookupNames *r;
724 static struct tevent_req *_s3_compat_lsa_LookupNames_send(TALLOC_CTX *mem_ctx,
725 struct tevent_context *ev,
726 struct dcerpc_call_handle *call,
727 struct lsa_LookupNames *r)
729 struct tevent_req *req;
730 struct _s3_compat_lsa_LookupNames_state *state;
731 struct pipes_struct *p;
733 req = tevent_req_create(mem_ctx, &state,
734 struct _s3_compat_lsa_LookupNames_state);
742 p = dcerpc_call_handle_get_pipes_struct(call);
744 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
745 return tevent_req_post(req, ev);
749 r->out.sids = r->in.sids;
750 r->out.count = r->in.count;
751 r->out.domains = talloc_zero(r, struct lsa_RefDomainList *);
752 if (tevent_req_nomem(r->out.domains, req)) {
753 return tevent_req_post(req, ev);
756 r->out.result = _lsa_LookupNames(p, r);
758 if (p->fault_state) {
759 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
760 tevent_req_nterror(req, status);
761 return tevent_req_post(req, ev);
764 tevent_req_done(req);
765 return tevent_req_post(req, ev);
768 static NTSTATUS _s3_compat_lsa_LookupNames_recv(struct tevent_req *req)
770 return tevent_req_simple_recv_ntstatus(req);
773 struct _s3_compat_lsa_LookupSids_state {
774 struct tevent_context *ev;
775 struct dcerpc_call_handle *call;
776 struct lsa_LookupSids *r;
779 static struct tevent_req *_s3_compat_lsa_LookupSids_send(TALLOC_CTX *mem_ctx,
780 struct tevent_context *ev,
781 struct dcerpc_call_handle *call,
782 struct lsa_LookupSids *r)
784 struct tevent_req *req;
785 struct _s3_compat_lsa_LookupSids_state *state;
786 struct pipes_struct *p;
788 req = tevent_req_create(mem_ctx, &state,
789 struct _s3_compat_lsa_LookupSids_state);
797 p = dcerpc_call_handle_get_pipes_struct(call);
799 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
800 return tevent_req_post(req, ev);
804 r->out.names = r->in.names;
805 r->out.count = r->in.count;
806 r->out.domains = talloc_zero(r, struct lsa_RefDomainList *);
807 if (tevent_req_nomem(r->out.domains, req)) {
808 return tevent_req_post(req, ev);
811 r->out.result = _lsa_LookupSids(p, r);
813 if (p->fault_state) {
814 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
815 tevent_req_nterror(req, status);
816 return tevent_req_post(req, ev);
819 tevent_req_done(req);
820 return tevent_req_post(req, ev);
823 static NTSTATUS _s3_compat_lsa_LookupSids_recv(struct tevent_req *req)
825 return tevent_req_simple_recv_ntstatus(req);
828 struct _s3_compat_lsa_CreateSecret_state {
829 struct tevent_context *ev;
830 struct dcerpc_call_handle *call;
831 struct lsa_CreateSecret *r;
834 static struct tevent_req *_s3_compat_lsa_CreateSecret_send(TALLOC_CTX *mem_ctx,
835 struct tevent_context *ev,
836 struct dcerpc_call_handle *call,
837 struct lsa_CreateSecret *r)
839 struct tevent_req *req;
840 struct _s3_compat_lsa_CreateSecret_state *state;
841 struct pipes_struct *p;
843 req = tevent_req_create(mem_ctx, &state,
844 struct _s3_compat_lsa_CreateSecret_state);
852 p = dcerpc_call_handle_get_pipes_struct(call);
854 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
855 return tevent_req_post(req, ev);
859 r->out.sec_handle = talloc_zero(r, struct policy_handle);
860 if (tevent_req_nomem(r->out.sec_handle, req)) {
861 return tevent_req_post(req, ev);
864 r->out.result = _lsa_CreateSecret(p, r);
866 if (p->fault_state) {
867 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
868 tevent_req_nterror(req, status);
869 return tevent_req_post(req, ev);
872 tevent_req_done(req);
873 return tevent_req_post(req, ev);
876 static NTSTATUS _s3_compat_lsa_CreateSecret_recv(struct tevent_req *req)
878 return tevent_req_simple_recv_ntstatus(req);
881 struct _s3_compat_lsa_OpenAccount_state {
882 struct tevent_context *ev;
883 struct dcerpc_call_handle *call;
884 struct lsa_OpenAccount *r;
887 static struct tevent_req *_s3_compat_lsa_OpenAccount_send(TALLOC_CTX *mem_ctx,
888 struct tevent_context *ev,
889 struct dcerpc_call_handle *call,
890 struct lsa_OpenAccount *r)
892 struct tevent_req *req;
893 struct _s3_compat_lsa_OpenAccount_state *state;
894 struct pipes_struct *p;
896 req = tevent_req_create(mem_ctx, &state,
897 struct _s3_compat_lsa_OpenAccount_state);
905 p = dcerpc_call_handle_get_pipes_struct(call);
907 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
908 return tevent_req_post(req, ev);
912 r->out.acct_handle = talloc_zero(r, struct policy_handle);
913 if (tevent_req_nomem(r->out.acct_handle, req)) {
914 return tevent_req_post(req, ev);
917 r->out.result = _lsa_OpenAccount(p, r);
919 if (p->fault_state) {
920 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
921 tevent_req_nterror(req, status);
922 return tevent_req_post(req, ev);
925 tevent_req_done(req);
926 return tevent_req_post(req, ev);
929 static NTSTATUS _s3_compat_lsa_OpenAccount_recv(struct tevent_req *req)
931 return tevent_req_simple_recv_ntstatus(req);
934 struct _s3_compat_lsa_EnumPrivsAccount_state {
935 struct tevent_context *ev;
936 struct dcerpc_call_handle *call;
937 struct lsa_EnumPrivsAccount *r;
940 static struct tevent_req *_s3_compat_lsa_EnumPrivsAccount_send(TALLOC_CTX *mem_ctx,
941 struct tevent_context *ev,
942 struct dcerpc_call_handle *call,
943 struct lsa_EnumPrivsAccount *r)
945 struct tevent_req *req;
946 struct _s3_compat_lsa_EnumPrivsAccount_state *state;
947 struct pipes_struct *p;
949 req = tevent_req_create(mem_ctx, &state,
950 struct _s3_compat_lsa_EnumPrivsAccount_state);
958 p = dcerpc_call_handle_get_pipes_struct(call);
960 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
961 return tevent_req_post(req, ev);
965 r->out.privs = talloc_zero(r, struct lsa_PrivilegeSet *);
966 if (tevent_req_nomem(r->out.privs, req)) {
967 return tevent_req_post(req, ev);
970 r->out.result = _lsa_EnumPrivsAccount(p, r);
972 if (p->fault_state) {
973 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
974 tevent_req_nterror(req, status);
975 return tevent_req_post(req, ev);
978 tevent_req_done(req);
979 return tevent_req_post(req, ev);
982 static NTSTATUS _s3_compat_lsa_EnumPrivsAccount_recv(struct tevent_req *req)
984 return tevent_req_simple_recv_ntstatus(req);
987 struct _s3_compat_lsa_AddPrivilegesToAccount_state {
988 struct tevent_context *ev;
989 struct dcerpc_call_handle *call;
990 struct lsa_AddPrivilegesToAccount *r;
993 static struct tevent_req *_s3_compat_lsa_AddPrivilegesToAccount_send(TALLOC_CTX *mem_ctx,
994 struct tevent_context *ev,
995 struct dcerpc_call_handle *call,
996 struct lsa_AddPrivilegesToAccount *r)
998 struct tevent_req *req;
999 struct _s3_compat_lsa_AddPrivilegesToAccount_state *state;
1000 struct pipes_struct *p;
1002 req = tevent_req_create(mem_ctx, &state,
1003 struct _s3_compat_lsa_AddPrivilegesToAccount_state);
1011 p = dcerpc_call_handle_get_pipes_struct(call);
1013 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1014 return tevent_req_post(req, ev);
1017 r->out.result = _lsa_AddPrivilegesToAccount(p, r);
1019 if (p->fault_state) {
1020 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1021 tevent_req_nterror(req, status);
1022 return tevent_req_post(req, ev);
1025 tevent_req_done(req);
1026 return tevent_req_post(req, ev);
1029 static NTSTATUS _s3_compat_lsa_AddPrivilegesToAccount_recv(struct tevent_req *req)
1031 return tevent_req_simple_recv_ntstatus(req);
1034 struct _s3_compat_lsa_RemovePrivilegesFromAccount_state {
1035 struct tevent_context *ev;
1036 struct dcerpc_call_handle *call;
1037 struct lsa_RemovePrivilegesFromAccount *r;
1040 static struct tevent_req *_s3_compat_lsa_RemovePrivilegesFromAccount_send(TALLOC_CTX *mem_ctx,
1041 struct tevent_context *ev,
1042 struct dcerpc_call_handle *call,
1043 struct lsa_RemovePrivilegesFromAccount *r)
1045 struct tevent_req *req;
1046 struct _s3_compat_lsa_RemovePrivilegesFromAccount_state *state;
1047 struct pipes_struct *p;
1049 req = tevent_req_create(mem_ctx, &state,
1050 struct _s3_compat_lsa_RemovePrivilegesFromAccount_state);
1058 p = dcerpc_call_handle_get_pipes_struct(call);
1060 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1061 return tevent_req_post(req, ev);
1064 r->out.result = _lsa_RemovePrivilegesFromAccount(p, r);
1066 if (p->fault_state) {
1067 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1068 tevent_req_nterror(req, status);
1069 return tevent_req_post(req, ev);
1072 tevent_req_done(req);
1073 return tevent_req_post(req, ev);
1076 static NTSTATUS _s3_compat_lsa_RemovePrivilegesFromAccount_recv(struct tevent_req *req)
1078 return tevent_req_simple_recv_ntstatus(req);
1081 struct _s3_compat_lsa_GetQuotasForAccount_state {
1082 struct tevent_context *ev;
1083 struct dcerpc_call_handle *call;
1084 struct lsa_GetQuotasForAccount *r;
1087 static struct tevent_req *_s3_compat_lsa_GetQuotasForAccount_send(TALLOC_CTX *mem_ctx,
1088 struct tevent_context *ev,
1089 struct dcerpc_call_handle *call,
1090 struct lsa_GetQuotasForAccount *r)
1092 struct tevent_req *req;
1093 struct _s3_compat_lsa_GetQuotasForAccount_state *state;
1094 struct pipes_struct *p;
1096 req = tevent_req_create(mem_ctx, &state,
1097 struct _s3_compat_lsa_GetQuotasForAccount_state);
1105 p = dcerpc_call_handle_get_pipes_struct(call);
1107 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1108 return tevent_req_post(req, ev);
1111 r->out.result = _lsa_GetQuotasForAccount(p, r);
1113 if (p->fault_state) {
1114 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1115 tevent_req_nterror(req, status);
1116 return tevent_req_post(req, ev);
1119 tevent_req_done(req);
1120 return tevent_req_post(req, ev);
1123 static NTSTATUS _s3_compat_lsa_GetQuotasForAccount_recv(struct tevent_req *req)
1125 return tevent_req_simple_recv_ntstatus(req);
1128 struct _s3_compat_lsa_SetQuotasForAccount_state {
1129 struct tevent_context *ev;
1130 struct dcerpc_call_handle *call;
1131 struct lsa_SetQuotasForAccount *r;
1134 static struct tevent_req *_s3_compat_lsa_SetQuotasForAccount_send(TALLOC_CTX *mem_ctx,
1135 struct tevent_context *ev,
1136 struct dcerpc_call_handle *call,
1137 struct lsa_SetQuotasForAccount *r)
1139 struct tevent_req *req;
1140 struct _s3_compat_lsa_SetQuotasForAccount_state *state;
1141 struct pipes_struct *p;
1143 req = tevent_req_create(mem_ctx, &state,
1144 struct _s3_compat_lsa_SetQuotasForAccount_state);
1152 p = dcerpc_call_handle_get_pipes_struct(call);
1154 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1155 return tevent_req_post(req, ev);
1158 r->out.result = _lsa_SetQuotasForAccount(p, r);
1160 if (p->fault_state) {
1161 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1162 tevent_req_nterror(req, status);
1163 return tevent_req_post(req, ev);
1166 tevent_req_done(req);
1167 return tevent_req_post(req, ev);
1170 static NTSTATUS _s3_compat_lsa_SetQuotasForAccount_recv(struct tevent_req *req)
1172 return tevent_req_simple_recv_ntstatus(req);
1175 struct _s3_compat_lsa_GetSystemAccessAccount_state {
1176 struct tevent_context *ev;
1177 struct dcerpc_call_handle *call;
1178 struct lsa_GetSystemAccessAccount *r;
1181 static struct tevent_req *_s3_compat_lsa_GetSystemAccessAccount_send(TALLOC_CTX *mem_ctx,
1182 struct tevent_context *ev,
1183 struct dcerpc_call_handle *call,
1184 struct lsa_GetSystemAccessAccount *r)
1186 struct tevent_req *req;
1187 struct _s3_compat_lsa_GetSystemAccessAccount_state *state;
1188 struct pipes_struct *p;
1190 req = tevent_req_create(mem_ctx, &state,
1191 struct _s3_compat_lsa_GetSystemAccessAccount_state);
1199 p = dcerpc_call_handle_get_pipes_struct(call);
1201 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1202 return tevent_req_post(req, ev);
1205 ZERO_STRUCT(r->out);
1206 r->out.access_mask = talloc_zero(r, uint32_t);
1207 if (tevent_req_nomem(r->out.access_mask, req)) {
1208 return tevent_req_post(req, ev);
1211 r->out.result = _lsa_GetSystemAccessAccount(p, r);
1213 if (p->fault_state) {
1214 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1215 tevent_req_nterror(req, status);
1216 return tevent_req_post(req, ev);
1219 tevent_req_done(req);
1220 return tevent_req_post(req, ev);
1223 static NTSTATUS _s3_compat_lsa_GetSystemAccessAccount_recv(struct tevent_req *req)
1225 return tevent_req_simple_recv_ntstatus(req);
1228 struct _s3_compat_lsa_SetSystemAccessAccount_state {
1229 struct tevent_context *ev;
1230 struct dcerpc_call_handle *call;
1231 struct lsa_SetSystemAccessAccount *r;
1234 static struct tevent_req *_s3_compat_lsa_SetSystemAccessAccount_send(TALLOC_CTX *mem_ctx,
1235 struct tevent_context *ev,
1236 struct dcerpc_call_handle *call,
1237 struct lsa_SetSystemAccessAccount *r)
1239 struct tevent_req *req;
1240 struct _s3_compat_lsa_SetSystemAccessAccount_state *state;
1241 struct pipes_struct *p;
1243 req = tevent_req_create(mem_ctx, &state,
1244 struct _s3_compat_lsa_SetSystemAccessAccount_state);
1252 p = dcerpc_call_handle_get_pipes_struct(call);
1254 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1255 return tevent_req_post(req, ev);
1258 r->out.result = _lsa_SetSystemAccessAccount(p, r);
1260 if (p->fault_state) {
1261 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1262 tevent_req_nterror(req, status);
1263 return tevent_req_post(req, ev);
1266 tevent_req_done(req);
1267 return tevent_req_post(req, ev);
1270 static NTSTATUS _s3_compat_lsa_SetSystemAccessAccount_recv(struct tevent_req *req)
1272 return tevent_req_simple_recv_ntstatus(req);
1275 struct _s3_compat_lsa_OpenTrustedDomain_state {
1276 struct tevent_context *ev;
1277 struct dcerpc_call_handle *call;
1278 struct lsa_OpenTrustedDomain *r;
1281 static struct tevent_req *_s3_compat_lsa_OpenTrustedDomain_send(TALLOC_CTX *mem_ctx,
1282 struct tevent_context *ev,
1283 struct dcerpc_call_handle *call,
1284 struct lsa_OpenTrustedDomain *r)
1286 struct tevent_req *req;
1287 struct _s3_compat_lsa_OpenTrustedDomain_state *state;
1288 struct pipes_struct *p;
1290 req = tevent_req_create(mem_ctx, &state,
1291 struct _s3_compat_lsa_OpenTrustedDomain_state);
1299 p = dcerpc_call_handle_get_pipes_struct(call);
1301 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1302 return tevent_req_post(req, ev);
1305 ZERO_STRUCT(r->out);
1306 r->out.trustdom_handle = talloc_zero(r, struct policy_handle);
1307 if (tevent_req_nomem(r->out.trustdom_handle, req)) {
1308 return tevent_req_post(req, ev);
1311 r->out.result = _lsa_OpenTrustedDomain(p, r);
1313 if (p->fault_state) {
1314 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1315 tevent_req_nterror(req, status);
1316 return tevent_req_post(req, ev);
1319 tevent_req_done(req);
1320 return tevent_req_post(req, ev);
1323 static NTSTATUS _s3_compat_lsa_OpenTrustedDomain_recv(struct tevent_req *req)
1325 return tevent_req_simple_recv_ntstatus(req);
1328 struct _s3_compat_lsa_QueryTrustedDomainInfo_state {
1329 struct tevent_context *ev;
1330 struct dcerpc_call_handle *call;
1331 struct lsa_QueryTrustedDomainInfo *r;
1334 static struct tevent_req *_s3_compat_lsa_QueryTrustedDomainInfo_send(TALLOC_CTX *mem_ctx,
1335 struct tevent_context *ev,
1336 struct dcerpc_call_handle *call,
1337 struct lsa_QueryTrustedDomainInfo *r)
1339 struct tevent_req *req;
1340 struct _s3_compat_lsa_QueryTrustedDomainInfo_state *state;
1341 struct pipes_struct *p;
1343 req = tevent_req_create(mem_ctx, &state,
1344 struct _s3_compat_lsa_QueryTrustedDomainInfo_state);
1352 p = dcerpc_call_handle_get_pipes_struct(call);
1354 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1355 return tevent_req_post(req, ev);
1358 ZERO_STRUCT(r->out);
1359 r->out.info = talloc_zero(r, union lsa_TrustedDomainInfo *);
1360 if (tevent_req_nomem(r->out.info, req)) {
1361 return tevent_req_post(req, ev);
1364 r->out.result = _lsa_QueryTrustedDomainInfo(p, r);
1366 if (p->fault_state) {
1367 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1368 tevent_req_nterror(req, status);
1369 return tevent_req_post(req, ev);
1372 tevent_req_done(req);
1373 return tevent_req_post(req, ev);
1376 static NTSTATUS _s3_compat_lsa_QueryTrustedDomainInfo_recv(struct tevent_req *req)
1378 return tevent_req_simple_recv_ntstatus(req);
1381 struct _s3_compat_lsa_SetInformationTrustedDomain_state {
1382 struct tevent_context *ev;
1383 struct dcerpc_call_handle *call;
1384 struct lsa_SetInformationTrustedDomain *r;
1387 static struct tevent_req *_s3_compat_lsa_SetInformationTrustedDomain_send(TALLOC_CTX *mem_ctx,
1388 struct tevent_context *ev,
1389 struct dcerpc_call_handle *call,
1390 struct lsa_SetInformationTrustedDomain *r)
1392 struct tevent_req *req;
1393 struct _s3_compat_lsa_SetInformationTrustedDomain_state *state;
1394 struct pipes_struct *p;
1396 req = tevent_req_create(mem_ctx, &state,
1397 struct _s3_compat_lsa_SetInformationTrustedDomain_state);
1405 p = dcerpc_call_handle_get_pipes_struct(call);
1407 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1408 return tevent_req_post(req, ev);
1411 r->out.result = _lsa_SetInformationTrustedDomain(p, r);
1413 if (p->fault_state) {
1414 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1415 tevent_req_nterror(req, status);
1416 return tevent_req_post(req, ev);
1419 tevent_req_done(req);
1420 return tevent_req_post(req, ev);
1423 static NTSTATUS _s3_compat_lsa_SetInformationTrustedDomain_recv(struct tevent_req *req)
1425 return tevent_req_simple_recv_ntstatus(req);
1428 struct _s3_compat_lsa_OpenSecret_state {
1429 struct tevent_context *ev;
1430 struct dcerpc_call_handle *call;
1431 struct lsa_OpenSecret *r;
1434 static struct tevent_req *_s3_compat_lsa_OpenSecret_send(TALLOC_CTX *mem_ctx,
1435 struct tevent_context *ev,
1436 struct dcerpc_call_handle *call,
1437 struct lsa_OpenSecret *r)
1439 struct tevent_req *req;
1440 struct _s3_compat_lsa_OpenSecret_state *state;
1441 struct pipes_struct *p;
1443 req = tevent_req_create(mem_ctx, &state,
1444 struct _s3_compat_lsa_OpenSecret_state);
1452 p = dcerpc_call_handle_get_pipes_struct(call);
1454 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1455 return tevent_req_post(req, ev);
1458 ZERO_STRUCT(r->out);
1459 r->out.sec_handle = talloc_zero(r, struct policy_handle);
1460 if (tevent_req_nomem(r->out.sec_handle, req)) {
1461 return tevent_req_post(req, ev);
1464 r->out.result = _lsa_OpenSecret(p, r);
1466 if (p->fault_state) {
1467 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1468 tevent_req_nterror(req, status);
1469 return tevent_req_post(req, ev);
1472 tevent_req_done(req);
1473 return tevent_req_post(req, ev);
1476 static NTSTATUS _s3_compat_lsa_OpenSecret_recv(struct tevent_req *req)
1478 return tevent_req_simple_recv_ntstatus(req);
1481 struct _s3_compat_lsa_SetSecret_state {
1482 struct tevent_context *ev;
1483 struct dcerpc_call_handle *call;
1484 struct lsa_SetSecret *r;
1487 static struct tevent_req *_s3_compat_lsa_SetSecret_send(TALLOC_CTX *mem_ctx,
1488 struct tevent_context *ev,
1489 struct dcerpc_call_handle *call,
1490 struct lsa_SetSecret *r)
1492 struct tevent_req *req;
1493 struct _s3_compat_lsa_SetSecret_state *state;
1494 struct pipes_struct *p;
1496 req = tevent_req_create(mem_ctx, &state,
1497 struct _s3_compat_lsa_SetSecret_state);
1505 p = dcerpc_call_handle_get_pipes_struct(call);
1507 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1508 return tevent_req_post(req, ev);
1511 r->out.result = _lsa_SetSecret(p, r);
1513 if (p->fault_state) {
1514 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1515 tevent_req_nterror(req, status);
1516 return tevent_req_post(req, ev);
1519 tevent_req_done(req);
1520 return tevent_req_post(req, ev);
1523 static NTSTATUS _s3_compat_lsa_SetSecret_recv(struct tevent_req *req)
1525 return tevent_req_simple_recv_ntstatus(req);
1528 struct _s3_compat_lsa_QuerySecret_state {
1529 struct tevent_context *ev;
1530 struct dcerpc_call_handle *call;
1531 struct lsa_QuerySecret *r;
1534 static struct tevent_req *_s3_compat_lsa_QuerySecret_send(TALLOC_CTX *mem_ctx,
1535 struct tevent_context *ev,
1536 struct dcerpc_call_handle *call,
1537 struct lsa_QuerySecret *r)
1539 struct tevent_req *req;
1540 struct _s3_compat_lsa_QuerySecret_state *state;
1541 struct pipes_struct *p;
1543 req = tevent_req_create(mem_ctx, &state,
1544 struct _s3_compat_lsa_QuerySecret_state);
1552 p = dcerpc_call_handle_get_pipes_struct(call);
1554 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1555 return tevent_req_post(req, ev);
1558 ZERO_STRUCT(r->out);
1559 r->out.new_val = r->in.new_val;
1560 r->out.new_mtime = r->in.new_mtime;
1561 r->out.old_val = r->in.old_val;
1562 r->out.old_mtime = r->in.old_mtime;
1563 r->out.result = _lsa_QuerySecret(p, r);
1565 if (p->fault_state) {
1566 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1567 tevent_req_nterror(req, status);
1568 return tevent_req_post(req, ev);
1571 tevent_req_done(req);
1572 return tevent_req_post(req, ev);
1575 static NTSTATUS _s3_compat_lsa_QuerySecret_recv(struct tevent_req *req)
1577 return tevent_req_simple_recv_ntstatus(req);
1580 struct _s3_compat_lsa_LookupPrivValue_state {
1581 struct tevent_context *ev;
1582 struct dcerpc_call_handle *call;
1583 struct lsa_LookupPrivValue *r;
1586 static struct tevent_req *_s3_compat_lsa_LookupPrivValue_send(TALLOC_CTX *mem_ctx,
1587 struct tevent_context *ev,
1588 struct dcerpc_call_handle *call,
1589 struct lsa_LookupPrivValue *r)
1591 struct tevent_req *req;
1592 struct _s3_compat_lsa_LookupPrivValue_state *state;
1593 struct pipes_struct *p;
1595 req = tevent_req_create(mem_ctx, &state,
1596 struct _s3_compat_lsa_LookupPrivValue_state);
1604 p = dcerpc_call_handle_get_pipes_struct(call);
1606 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1607 return tevent_req_post(req, ev);
1610 ZERO_STRUCT(r->out);
1611 r->out.luid = talloc_zero(r, struct lsa_LUID);
1612 if (tevent_req_nomem(r->out.luid, req)) {
1613 return tevent_req_post(req, ev);
1616 r->out.result = _lsa_LookupPrivValue(p, r);
1618 if (p->fault_state) {
1619 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1620 tevent_req_nterror(req, status);
1621 return tevent_req_post(req, ev);
1624 tevent_req_done(req);
1625 return tevent_req_post(req, ev);
1628 static NTSTATUS _s3_compat_lsa_LookupPrivValue_recv(struct tevent_req *req)
1630 return tevent_req_simple_recv_ntstatus(req);
1633 struct _s3_compat_lsa_LookupPrivName_state {
1634 struct tevent_context *ev;
1635 struct dcerpc_call_handle *call;
1636 struct lsa_LookupPrivName *r;
1639 static struct tevent_req *_s3_compat_lsa_LookupPrivName_send(TALLOC_CTX *mem_ctx,
1640 struct tevent_context *ev,
1641 struct dcerpc_call_handle *call,
1642 struct lsa_LookupPrivName *r)
1644 struct tevent_req *req;
1645 struct _s3_compat_lsa_LookupPrivName_state *state;
1646 struct pipes_struct *p;
1648 req = tevent_req_create(mem_ctx, &state,
1649 struct _s3_compat_lsa_LookupPrivName_state);
1657 p = dcerpc_call_handle_get_pipes_struct(call);
1659 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1660 return tevent_req_post(req, ev);
1663 ZERO_STRUCT(r->out);
1664 r->out.name = talloc_zero(r, struct lsa_StringLarge *);
1665 if (tevent_req_nomem(r->out.name, req)) {
1666 return tevent_req_post(req, ev);
1669 r->out.result = _lsa_LookupPrivName(p, r);
1671 if (p->fault_state) {
1672 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1673 tevent_req_nterror(req, status);
1674 return tevent_req_post(req, ev);
1677 tevent_req_done(req);
1678 return tevent_req_post(req, ev);
1681 static NTSTATUS _s3_compat_lsa_LookupPrivName_recv(struct tevent_req *req)
1683 return tevent_req_simple_recv_ntstatus(req);
1686 struct _s3_compat_lsa_LookupPrivDisplayName_state {
1687 struct tevent_context *ev;
1688 struct dcerpc_call_handle *call;
1689 struct lsa_LookupPrivDisplayName *r;
1692 static struct tevent_req *_s3_compat_lsa_LookupPrivDisplayName_send(TALLOC_CTX *mem_ctx,
1693 struct tevent_context *ev,
1694 struct dcerpc_call_handle *call,
1695 struct lsa_LookupPrivDisplayName *r)
1697 struct tevent_req *req;
1698 struct _s3_compat_lsa_LookupPrivDisplayName_state *state;
1699 struct pipes_struct *p;
1701 req = tevent_req_create(mem_ctx, &state,
1702 struct _s3_compat_lsa_LookupPrivDisplayName_state);
1710 p = dcerpc_call_handle_get_pipes_struct(call);
1712 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1713 return tevent_req_post(req, ev);
1716 ZERO_STRUCT(r->out);
1717 r->out.disp_name = talloc_zero(r, struct lsa_StringLarge *);
1718 if (tevent_req_nomem(r->out.disp_name, req)) {
1719 return tevent_req_post(req, ev);
1722 r->out.returned_language_id = talloc_zero(r, uint16_t);
1723 if (tevent_req_nomem(r->out.returned_language_id, req)) {
1724 return tevent_req_post(req, ev);
1727 r->out.result = _lsa_LookupPrivDisplayName(p, r);
1729 if (p->fault_state) {
1730 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1731 tevent_req_nterror(req, status);
1732 return tevent_req_post(req, ev);
1735 tevent_req_done(req);
1736 return tevent_req_post(req, ev);
1739 static NTSTATUS _s3_compat_lsa_LookupPrivDisplayName_recv(struct tevent_req *req)
1741 return tevent_req_simple_recv_ntstatus(req);
1744 struct _s3_compat_lsa_DeleteObject_state {
1745 struct tevent_context *ev;
1746 struct dcerpc_call_handle *call;
1747 struct lsa_DeleteObject *r;
1750 static struct tevent_req *_s3_compat_lsa_DeleteObject_send(TALLOC_CTX *mem_ctx,
1751 struct tevent_context *ev,
1752 struct dcerpc_call_handle *call,
1753 struct lsa_DeleteObject *r)
1755 struct tevent_req *req;
1756 struct _s3_compat_lsa_DeleteObject_state *state;
1757 struct pipes_struct *p;
1759 req = tevent_req_create(mem_ctx, &state,
1760 struct _s3_compat_lsa_DeleteObject_state);
1768 p = dcerpc_call_handle_get_pipes_struct(call);
1770 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1771 return tevent_req_post(req, ev);
1774 ZERO_STRUCT(r->out);
1775 r->out.handle = r->in.handle;
1776 r->out.result = _lsa_DeleteObject(p, r);
1778 if (p->fault_state) {
1779 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1780 tevent_req_nterror(req, status);
1781 return tevent_req_post(req, ev);
1784 tevent_req_done(req);
1785 return tevent_req_post(req, ev);
1788 static NTSTATUS _s3_compat_lsa_DeleteObject_recv(struct tevent_req *req)
1790 return tevent_req_simple_recv_ntstatus(req);
1793 struct _s3_compat_lsa_EnumAccountsWithUserRight_state {
1794 struct tevent_context *ev;
1795 struct dcerpc_call_handle *call;
1796 struct lsa_EnumAccountsWithUserRight *r;
1799 static struct tevent_req *_s3_compat_lsa_EnumAccountsWithUserRight_send(TALLOC_CTX *mem_ctx,
1800 struct tevent_context *ev,
1801 struct dcerpc_call_handle *call,
1802 struct lsa_EnumAccountsWithUserRight *r)
1804 struct tevent_req *req;
1805 struct _s3_compat_lsa_EnumAccountsWithUserRight_state *state;
1806 struct pipes_struct *p;
1808 req = tevent_req_create(mem_ctx, &state,
1809 struct _s3_compat_lsa_EnumAccountsWithUserRight_state);
1817 p = dcerpc_call_handle_get_pipes_struct(call);
1819 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1820 return tevent_req_post(req, ev);
1823 ZERO_STRUCT(r->out);
1824 r->out.sids = talloc_zero(r, struct lsa_SidArray);
1825 if (tevent_req_nomem(r->out.sids, req)) {
1826 return tevent_req_post(req, ev);
1829 r->out.result = _lsa_EnumAccountsWithUserRight(p, r);
1831 if (p->fault_state) {
1832 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1833 tevent_req_nterror(req, status);
1834 return tevent_req_post(req, ev);
1837 tevent_req_done(req);
1838 return tevent_req_post(req, ev);
1841 static NTSTATUS _s3_compat_lsa_EnumAccountsWithUserRight_recv(struct tevent_req *req)
1843 return tevent_req_simple_recv_ntstatus(req);
1846 struct _s3_compat_lsa_EnumAccountRights_state {
1847 struct tevent_context *ev;
1848 struct dcerpc_call_handle *call;
1849 struct lsa_EnumAccountRights *r;
1852 static struct tevent_req *_s3_compat_lsa_EnumAccountRights_send(TALLOC_CTX *mem_ctx,
1853 struct tevent_context *ev,
1854 struct dcerpc_call_handle *call,
1855 struct lsa_EnumAccountRights *r)
1857 struct tevent_req *req;
1858 struct _s3_compat_lsa_EnumAccountRights_state *state;
1859 struct pipes_struct *p;
1861 req = tevent_req_create(mem_ctx, &state,
1862 struct _s3_compat_lsa_EnumAccountRights_state);
1870 p = dcerpc_call_handle_get_pipes_struct(call);
1872 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1873 return tevent_req_post(req, ev);
1876 ZERO_STRUCT(r->out);
1877 r->out.rights = talloc_zero(r, struct lsa_RightSet);
1878 if (tevent_req_nomem(r->out.rights, req)) {
1879 return tevent_req_post(req, ev);
1882 r->out.result = _lsa_EnumAccountRights(p, r);
1884 if (p->fault_state) {
1885 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1886 tevent_req_nterror(req, status);
1887 return tevent_req_post(req, ev);
1890 tevent_req_done(req);
1891 return tevent_req_post(req, ev);
1894 static NTSTATUS _s3_compat_lsa_EnumAccountRights_recv(struct tevent_req *req)
1896 return tevent_req_simple_recv_ntstatus(req);
1899 struct _s3_compat_lsa_AddAccountRights_state {
1900 struct tevent_context *ev;
1901 struct dcerpc_call_handle *call;
1902 struct lsa_AddAccountRights *r;
1905 static struct tevent_req *_s3_compat_lsa_AddAccountRights_send(TALLOC_CTX *mem_ctx,
1906 struct tevent_context *ev,
1907 struct dcerpc_call_handle *call,
1908 struct lsa_AddAccountRights *r)
1910 struct tevent_req *req;
1911 struct _s3_compat_lsa_AddAccountRights_state *state;
1912 struct pipes_struct *p;
1914 req = tevent_req_create(mem_ctx, &state,
1915 struct _s3_compat_lsa_AddAccountRights_state);
1923 p = dcerpc_call_handle_get_pipes_struct(call);
1925 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1926 return tevent_req_post(req, ev);
1929 r->out.result = _lsa_AddAccountRights(p, r);
1931 if (p->fault_state) {
1932 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1933 tevent_req_nterror(req, status);
1934 return tevent_req_post(req, ev);
1937 tevent_req_done(req);
1938 return tevent_req_post(req, ev);
1941 static NTSTATUS _s3_compat_lsa_AddAccountRights_recv(struct tevent_req *req)
1943 return tevent_req_simple_recv_ntstatus(req);
1946 struct _s3_compat_lsa_RemoveAccountRights_state {
1947 struct tevent_context *ev;
1948 struct dcerpc_call_handle *call;
1949 struct lsa_RemoveAccountRights *r;
1952 static struct tevent_req *_s3_compat_lsa_RemoveAccountRights_send(TALLOC_CTX *mem_ctx,
1953 struct tevent_context *ev,
1954 struct dcerpc_call_handle *call,
1955 struct lsa_RemoveAccountRights *r)
1957 struct tevent_req *req;
1958 struct _s3_compat_lsa_RemoveAccountRights_state *state;
1959 struct pipes_struct *p;
1961 req = tevent_req_create(mem_ctx, &state,
1962 struct _s3_compat_lsa_RemoveAccountRights_state);
1970 p = dcerpc_call_handle_get_pipes_struct(call);
1972 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
1973 return tevent_req_post(req, ev);
1976 r->out.result = _lsa_RemoveAccountRights(p, r);
1978 if (p->fault_state) {
1979 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
1980 tevent_req_nterror(req, status);
1981 return tevent_req_post(req, ev);
1984 tevent_req_done(req);
1985 return tevent_req_post(req, ev);
1988 static NTSTATUS _s3_compat_lsa_RemoveAccountRights_recv(struct tevent_req *req)
1990 return tevent_req_simple_recv_ntstatus(req);
1993 struct _s3_compat_lsa_QueryTrustedDomainInfoBySid_state {
1994 struct tevent_context *ev;
1995 struct dcerpc_call_handle *call;
1996 struct lsa_QueryTrustedDomainInfoBySid *r;
1999 static struct tevent_req *_s3_compat_lsa_QueryTrustedDomainInfoBySid_send(TALLOC_CTX *mem_ctx,
2000 struct tevent_context *ev,
2001 struct dcerpc_call_handle *call,
2002 struct lsa_QueryTrustedDomainInfoBySid *r)
2004 struct tevent_req *req;
2005 struct _s3_compat_lsa_QueryTrustedDomainInfoBySid_state *state;
2006 struct pipes_struct *p;
2008 req = tevent_req_create(mem_ctx, &state,
2009 struct _s3_compat_lsa_QueryTrustedDomainInfoBySid_state);
2017 p = dcerpc_call_handle_get_pipes_struct(call);
2019 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2020 return tevent_req_post(req, ev);
2023 ZERO_STRUCT(r->out);
2024 r->out.info = talloc_zero(r, union lsa_TrustedDomainInfo *);
2025 if (tevent_req_nomem(r->out.info, req)) {
2026 return tevent_req_post(req, ev);
2029 r->out.result = _lsa_QueryTrustedDomainInfoBySid(p, r);
2031 if (p->fault_state) {
2032 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2033 tevent_req_nterror(req, status);
2034 return tevent_req_post(req, ev);
2037 tevent_req_done(req);
2038 return tevent_req_post(req, ev);
2041 static NTSTATUS _s3_compat_lsa_QueryTrustedDomainInfoBySid_recv(struct tevent_req *req)
2043 return tevent_req_simple_recv_ntstatus(req);
2046 struct _s3_compat_lsa_SetTrustedDomainInfo_state {
2047 struct tevent_context *ev;
2048 struct dcerpc_call_handle *call;
2049 struct lsa_SetTrustedDomainInfo *r;
2052 static struct tevent_req *_s3_compat_lsa_SetTrustedDomainInfo_send(TALLOC_CTX *mem_ctx,
2053 struct tevent_context *ev,
2054 struct dcerpc_call_handle *call,
2055 struct lsa_SetTrustedDomainInfo *r)
2057 struct tevent_req *req;
2058 struct _s3_compat_lsa_SetTrustedDomainInfo_state *state;
2059 struct pipes_struct *p;
2061 req = tevent_req_create(mem_ctx, &state,
2062 struct _s3_compat_lsa_SetTrustedDomainInfo_state);
2070 p = dcerpc_call_handle_get_pipes_struct(call);
2072 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2073 return tevent_req_post(req, ev);
2076 r->out.result = _lsa_SetTrustedDomainInfo(p, r);
2078 if (p->fault_state) {
2079 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2080 tevent_req_nterror(req, status);
2081 return tevent_req_post(req, ev);
2084 tevent_req_done(req);
2085 return tevent_req_post(req, ev);
2088 static NTSTATUS _s3_compat_lsa_SetTrustedDomainInfo_recv(struct tevent_req *req)
2090 return tevent_req_simple_recv_ntstatus(req);
2093 struct _s3_compat_lsa_DeleteTrustedDomain_state {
2094 struct tevent_context *ev;
2095 struct dcerpc_call_handle *call;
2096 struct lsa_DeleteTrustedDomain *r;
2099 static struct tevent_req *_s3_compat_lsa_DeleteTrustedDomain_send(TALLOC_CTX *mem_ctx,
2100 struct tevent_context *ev,
2101 struct dcerpc_call_handle *call,
2102 struct lsa_DeleteTrustedDomain *r)
2104 struct tevent_req *req;
2105 struct _s3_compat_lsa_DeleteTrustedDomain_state *state;
2106 struct pipes_struct *p;
2108 req = tevent_req_create(mem_ctx, &state,
2109 struct _s3_compat_lsa_DeleteTrustedDomain_state);
2117 p = dcerpc_call_handle_get_pipes_struct(call);
2119 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2120 return tevent_req_post(req, ev);
2123 r->out.result = _lsa_DeleteTrustedDomain(p, r);
2125 if (p->fault_state) {
2126 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2127 tevent_req_nterror(req, status);
2128 return tevent_req_post(req, ev);
2131 tevent_req_done(req);
2132 return tevent_req_post(req, ev);
2135 static NTSTATUS _s3_compat_lsa_DeleteTrustedDomain_recv(struct tevent_req *req)
2137 return tevent_req_simple_recv_ntstatus(req);
2140 struct _s3_compat_lsa_StorePrivateData_state {
2141 struct tevent_context *ev;
2142 struct dcerpc_call_handle *call;
2143 struct lsa_StorePrivateData *r;
2146 static struct tevent_req *_s3_compat_lsa_StorePrivateData_send(TALLOC_CTX *mem_ctx,
2147 struct tevent_context *ev,
2148 struct dcerpc_call_handle *call,
2149 struct lsa_StorePrivateData *r)
2151 struct tevent_req *req;
2152 struct _s3_compat_lsa_StorePrivateData_state *state;
2153 struct pipes_struct *p;
2155 req = tevent_req_create(mem_ctx, &state,
2156 struct _s3_compat_lsa_StorePrivateData_state);
2164 p = dcerpc_call_handle_get_pipes_struct(call);
2166 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2167 return tevent_req_post(req, ev);
2170 r->out.result = _lsa_StorePrivateData(p, r);
2172 if (p->fault_state) {
2173 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2174 tevent_req_nterror(req, status);
2175 return tevent_req_post(req, ev);
2178 tevent_req_done(req);
2179 return tevent_req_post(req, ev);
2182 static NTSTATUS _s3_compat_lsa_StorePrivateData_recv(struct tevent_req *req)
2184 return tevent_req_simple_recv_ntstatus(req);
2187 struct _s3_compat_lsa_RetrievePrivateData_state {
2188 struct tevent_context *ev;
2189 struct dcerpc_call_handle *call;
2190 struct lsa_RetrievePrivateData *r;
2193 static struct tevent_req *_s3_compat_lsa_RetrievePrivateData_send(TALLOC_CTX *mem_ctx,
2194 struct tevent_context *ev,
2195 struct dcerpc_call_handle *call,
2196 struct lsa_RetrievePrivateData *r)
2198 struct tevent_req *req;
2199 struct _s3_compat_lsa_RetrievePrivateData_state *state;
2200 struct pipes_struct *p;
2202 req = tevent_req_create(mem_ctx, &state,
2203 struct _s3_compat_lsa_RetrievePrivateData_state);
2211 p = dcerpc_call_handle_get_pipes_struct(call);
2213 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2214 return tevent_req_post(req, ev);
2217 ZERO_STRUCT(r->out);
2218 r->out.val = r->in.val;
2219 r->out.result = _lsa_RetrievePrivateData(p, r);
2221 if (p->fault_state) {
2222 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2223 tevent_req_nterror(req, status);
2224 return tevent_req_post(req, ev);
2227 tevent_req_done(req);
2228 return tevent_req_post(req, ev);
2231 static NTSTATUS _s3_compat_lsa_RetrievePrivateData_recv(struct tevent_req *req)
2233 return tevent_req_simple_recv_ntstatus(req);
2236 struct _s3_compat_lsa_OpenPolicy2_state {
2237 struct tevent_context *ev;
2238 struct dcerpc_call_handle *call;
2239 struct lsa_OpenPolicy2 *r;
2242 static struct tevent_req *_s3_compat_lsa_OpenPolicy2_send(TALLOC_CTX *mem_ctx,
2243 struct tevent_context *ev,
2244 struct dcerpc_call_handle *call,
2245 struct lsa_OpenPolicy2 *r)
2247 struct tevent_req *req;
2248 struct _s3_compat_lsa_OpenPolicy2_state *state;
2249 struct pipes_struct *p;
2251 req = tevent_req_create(mem_ctx, &state,
2252 struct _s3_compat_lsa_OpenPolicy2_state);
2260 p = dcerpc_call_handle_get_pipes_struct(call);
2262 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2263 return tevent_req_post(req, ev);
2266 ZERO_STRUCT(r->out);
2267 r->out.handle = talloc_zero(r, struct policy_handle);
2268 if (tevent_req_nomem(r->out.handle, req)) {
2269 return tevent_req_post(req, ev);
2272 r->out.result = _lsa_OpenPolicy2(p, r);
2274 if (p->fault_state) {
2275 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2276 tevent_req_nterror(req, status);
2277 return tevent_req_post(req, ev);
2280 tevent_req_done(req);
2281 return tevent_req_post(req, ev);
2284 static NTSTATUS _s3_compat_lsa_OpenPolicy2_recv(struct tevent_req *req)
2286 return tevent_req_simple_recv_ntstatus(req);
2289 struct _s3_compat_lsa_GetUserName_state {
2290 struct tevent_context *ev;
2291 struct dcerpc_call_handle *call;
2292 struct lsa_GetUserName *r;
2295 static struct tevent_req *_s3_compat_lsa_GetUserName_send(TALLOC_CTX *mem_ctx,
2296 struct tevent_context *ev,
2297 struct dcerpc_call_handle *call,
2298 struct lsa_GetUserName *r)
2300 struct tevent_req *req;
2301 struct _s3_compat_lsa_GetUserName_state *state;
2302 struct pipes_struct *p;
2304 req = tevent_req_create(mem_ctx, &state,
2305 struct _s3_compat_lsa_GetUserName_state);
2313 p = dcerpc_call_handle_get_pipes_struct(call);
2315 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2316 return tevent_req_post(req, ev);
2319 ZERO_STRUCT(r->out);
2320 r->out.account_name = r->in.account_name;
2321 r->out.authority_name = r->in.authority_name;
2322 r->out.result = _lsa_GetUserName(p, r);
2324 if (p->fault_state) {
2325 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2326 tevent_req_nterror(req, status);
2327 return tevent_req_post(req, ev);
2330 tevent_req_done(req);
2331 return tevent_req_post(req, ev);
2334 static NTSTATUS _s3_compat_lsa_GetUserName_recv(struct tevent_req *req)
2336 return tevent_req_simple_recv_ntstatus(req);
2339 struct _s3_compat_lsa_QueryInfoPolicy2_state {
2340 struct tevent_context *ev;
2341 struct dcerpc_call_handle *call;
2342 struct lsa_QueryInfoPolicy2 *r;
2345 static struct tevent_req *_s3_compat_lsa_QueryInfoPolicy2_send(TALLOC_CTX *mem_ctx,
2346 struct tevent_context *ev,
2347 struct dcerpc_call_handle *call,
2348 struct lsa_QueryInfoPolicy2 *r)
2350 struct tevent_req *req;
2351 struct _s3_compat_lsa_QueryInfoPolicy2_state *state;
2352 struct pipes_struct *p;
2354 req = tevent_req_create(mem_ctx, &state,
2355 struct _s3_compat_lsa_QueryInfoPolicy2_state);
2363 p = dcerpc_call_handle_get_pipes_struct(call);
2365 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2366 return tevent_req_post(req, ev);
2369 ZERO_STRUCT(r->out);
2370 r->out.info = talloc_zero(r, union lsa_PolicyInformation *);
2371 if (tevent_req_nomem(r->out.info, req)) {
2372 return tevent_req_post(req, ev);
2375 r->out.result = _lsa_QueryInfoPolicy2(p, r);
2377 if (p->fault_state) {
2378 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2379 tevent_req_nterror(req, status);
2380 return tevent_req_post(req, ev);
2383 tevent_req_done(req);
2384 return tevent_req_post(req, ev);
2387 static NTSTATUS _s3_compat_lsa_QueryInfoPolicy2_recv(struct tevent_req *req)
2389 return tevent_req_simple_recv_ntstatus(req);
2392 struct _s3_compat_lsa_SetInfoPolicy2_state {
2393 struct tevent_context *ev;
2394 struct dcerpc_call_handle *call;
2395 struct lsa_SetInfoPolicy2 *r;
2398 static struct tevent_req *_s3_compat_lsa_SetInfoPolicy2_send(TALLOC_CTX *mem_ctx,
2399 struct tevent_context *ev,
2400 struct dcerpc_call_handle *call,
2401 struct lsa_SetInfoPolicy2 *r)
2403 struct tevent_req *req;
2404 struct _s3_compat_lsa_SetInfoPolicy2_state *state;
2405 struct pipes_struct *p;
2407 req = tevent_req_create(mem_ctx, &state,
2408 struct _s3_compat_lsa_SetInfoPolicy2_state);
2416 p = dcerpc_call_handle_get_pipes_struct(call);
2418 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2419 return tevent_req_post(req, ev);
2422 r->out.result = _lsa_SetInfoPolicy2(p, r);
2424 if (p->fault_state) {
2425 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2426 tevent_req_nterror(req, status);
2427 return tevent_req_post(req, ev);
2430 tevent_req_done(req);
2431 return tevent_req_post(req, ev);
2434 static NTSTATUS _s3_compat_lsa_SetInfoPolicy2_recv(struct tevent_req *req)
2436 return tevent_req_simple_recv_ntstatus(req);
2439 struct _s3_compat_lsa_QueryTrustedDomainInfoByName_state {
2440 struct tevent_context *ev;
2441 struct dcerpc_call_handle *call;
2442 struct lsa_QueryTrustedDomainInfoByName *r;
2445 static struct tevent_req *_s3_compat_lsa_QueryTrustedDomainInfoByName_send(TALLOC_CTX *mem_ctx,
2446 struct tevent_context *ev,
2447 struct dcerpc_call_handle *call,
2448 struct lsa_QueryTrustedDomainInfoByName *r)
2450 struct tevent_req *req;
2451 struct _s3_compat_lsa_QueryTrustedDomainInfoByName_state *state;
2452 struct pipes_struct *p;
2454 req = tevent_req_create(mem_ctx, &state,
2455 struct _s3_compat_lsa_QueryTrustedDomainInfoByName_state);
2463 p = dcerpc_call_handle_get_pipes_struct(call);
2465 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2466 return tevent_req_post(req, ev);
2469 ZERO_STRUCT(r->out);
2470 r->out.info = talloc_zero(r, union lsa_TrustedDomainInfo *);
2471 if (tevent_req_nomem(r->out.info, req)) {
2472 return tevent_req_post(req, ev);
2475 r->out.result = _lsa_QueryTrustedDomainInfoByName(p, r);
2477 if (p->fault_state) {
2478 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2479 tevent_req_nterror(req, status);
2480 return tevent_req_post(req, ev);
2483 tevent_req_done(req);
2484 return tevent_req_post(req, ev);
2487 static NTSTATUS _s3_compat_lsa_QueryTrustedDomainInfoByName_recv(struct tevent_req *req)
2489 return tevent_req_simple_recv_ntstatus(req);
2492 struct _s3_compat_lsa_SetTrustedDomainInfoByName_state {
2493 struct tevent_context *ev;
2494 struct dcerpc_call_handle *call;
2495 struct lsa_SetTrustedDomainInfoByName *r;
2498 static struct tevent_req *_s3_compat_lsa_SetTrustedDomainInfoByName_send(TALLOC_CTX *mem_ctx,
2499 struct tevent_context *ev,
2500 struct dcerpc_call_handle *call,
2501 struct lsa_SetTrustedDomainInfoByName *r)
2503 struct tevent_req *req;
2504 struct _s3_compat_lsa_SetTrustedDomainInfoByName_state *state;
2505 struct pipes_struct *p;
2507 req = tevent_req_create(mem_ctx, &state,
2508 struct _s3_compat_lsa_SetTrustedDomainInfoByName_state);
2516 p = dcerpc_call_handle_get_pipes_struct(call);
2518 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2519 return tevent_req_post(req, ev);
2522 r->out.result = _lsa_SetTrustedDomainInfoByName(p, r);
2524 if (p->fault_state) {
2525 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2526 tevent_req_nterror(req, status);
2527 return tevent_req_post(req, ev);
2530 tevent_req_done(req);
2531 return tevent_req_post(req, ev);
2534 static NTSTATUS _s3_compat_lsa_SetTrustedDomainInfoByName_recv(struct tevent_req *req)
2536 return tevent_req_simple_recv_ntstatus(req);
2539 struct _s3_compat_lsa_EnumTrustedDomainsEx_state {
2540 struct tevent_context *ev;
2541 struct dcerpc_call_handle *call;
2542 struct lsa_EnumTrustedDomainsEx *r;
2545 static struct tevent_req *_s3_compat_lsa_EnumTrustedDomainsEx_send(TALLOC_CTX *mem_ctx,
2546 struct tevent_context *ev,
2547 struct dcerpc_call_handle *call,
2548 struct lsa_EnumTrustedDomainsEx *r)
2550 struct tevent_req *req;
2551 struct _s3_compat_lsa_EnumTrustedDomainsEx_state *state;
2552 struct pipes_struct *p;
2554 req = tevent_req_create(mem_ctx, &state,
2555 struct _s3_compat_lsa_EnumTrustedDomainsEx_state);
2563 p = dcerpc_call_handle_get_pipes_struct(call);
2565 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2566 return tevent_req_post(req, ev);
2569 ZERO_STRUCT(r->out);
2570 r->out.resume_handle = r->in.resume_handle;
2571 r->out.domains = talloc_zero(r, struct lsa_DomainListEx);
2572 if (tevent_req_nomem(r->out.domains, req)) {
2573 return tevent_req_post(req, ev);
2576 r->out.result = _lsa_EnumTrustedDomainsEx(p, r);
2578 if (p->fault_state) {
2579 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2580 tevent_req_nterror(req, status);
2581 return tevent_req_post(req, ev);
2584 tevent_req_done(req);
2585 return tevent_req_post(req, ev);
2588 static NTSTATUS _s3_compat_lsa_EnumTrustedDomainsEx_recv(struct tevent_req *req)
2590 return tevent_req_simple_recv_ntstatus(req);
2593 struct _s3_compat_lsa_CreateTrustedDomainEx_state {
2594 struct tevent_context *ev;
2595 struct dcerpc_call_handle *call;
2596 struct lsa_CreateTrustedDomainEx *r;
2599 static struct tevent_req *_s3_compat_lsa_CreateTrustedDomainEx_send(TALLOC_CTX *mem_ctx,
2600 struct tevent_context *ev,
2601 struct dcerpc_call_handle *call,
2602 struct lsa_CreateTrustedDomainEx *r)
2604 struct tevent_req *req;
2605 struct _s3_compat_lsa_CreateTrustedDomainEx_state *state;
2606 struct pipes_struct *p;
2608 req = tevent_req_create(mem_ctx, &state,
2609 struct _s3_compat_lsa_CreateTrustedDomainEx_state);
2617 p = dcerpc_call_handle_get_pipes_struct(call);
2619 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2620 return tevent_req_post(req, ev);
2623 ZERO_STRUCT(r->out);
2624 r->out.trustdom_handle = talloc_zero(r, struct policy_handle);
2625 if (tevent_req_nomem(r->out.trustdom_handle, req)) {
2626 return tevent_req_post(req, ev);
2629 r->out.result = _lsa_CreateTrustedDomainEx(p, r);
2631 if (p->fault_state) {
2632 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2633 tevent_req_nterror(req, status);
2634 return tevent_req_post(req, ev);
2637 tevent_req_done(req);
2638 return tevent_req_post(req, ev);
2641 static NTSTATUS _s3_compat_lsa_CreateTrustedDomainEx_recv(struct tevent_req *req)
2643 return tevent_req_simple_recv_ntstatus(req);
2646 struct _s3_compat_lsa_CloseTrustedDomainEx_state {
2647 struct tevent_context *ev;
2648 struct dcerpc_call_handle *call;
2649 struct lsa_CloseTrustedDomainEx *r;
2652 static struct tevent_req *_s3_compat_lsa_CloseTrustedDomainEx_send(TALLOC_CTX *mem_ctx,
2653 struct tevent_context *ev,
2654 struct dcerpc_call_handle *call,
2655 struct lsa_CloseTrustedDomainEx *r)
2657 struct tevent_req *req;
2658 struct _s3_compat_lsa_CloseTrustedDomainEx_state *state;
2659 struct pipes_struct *p;
2661 req = tevent_req_create(mem_ctx, &state,
2662 struct _s3_compat_lsa_CloseTrustedDomainEx_state);
2670 p = dcerpc_call_handle_get_pipes_struct(call);
2672 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2673 return tevent_req_post(req, ev);
2676 ZERO_STRUCT(r->out);
2677 r->out.handle = r->in.handle;
2678 r->out.result = _lsa_CloseTrustedDomainEx(p, r);
2680 if (p->fault_state) {
2681 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2682 tevent_req_nterror(req, status);
2683 return tevent_req_post(req, ev);
2686 tevent_req_done(req);
2687 return tevent_req_post(req, ev);
2690 static NTSTATUS _s3_compat_lsa_CloseTrustedDomainEx_recv(struct tevent_req *req)
2692 return tevent_req_simple_recv_ntstatus(req);
2695 struct _s3_compat_lsa_QueryDomainInformationPolicy_state {
2696 struct tevent_context *ev;
2697 struct dcerpc_call_handle *call;
2698 struct lsa_QueryDomainInformationPolicy *r;
2701 static struct tevent_req *_s3_compat_lsa_QueryDomainInformationPolicy_send(TALLOC_CTX *mem_ctx,
2702 struct tevent_context *ev,
2703 struct dcerpc_call_handle *call,
2704 struct lsa_QueryDomainInformationPolicy *r)
2706 struct tevent_req *req;
2707 struct _s3_compat_lsa_QueryDomainInformationPolicy_state *state;
2708 struct pipes_struct *p;
2710 req = tevent_req_create(mem_ctx, &state,
2711 struct _s3_compat_lsa_QueryDomainInformationPolicy_state);
2719 p = dcerpc_call_handle_get_pipes_struct(call);
2721 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2722 return tevent_req_post(req, ev);
2725 ZERO_STRUCT(r->out);
2726 r->out.info = talloc_zero(r, union lsa_DomainInformationPolicy *);
2727 if (tevent_req_nomem(r->out.info, req)) {
2728 return tevent_req_post(req, ev);
2731 r->out.result = _lsa_QueryDomainInformationPolicy(p, r);
2733 if (p->fault_state) {
2734 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2735 tevent_req_nterror(req, status);
2736 return tevent_req_post(req, ev);
2739 tevent_req_done(req);
2740 return tevent_req_post(req, ev);
2743 static NTSTATUS _s3_compat_lsa_QueryDomainInformationPolicy_recv(struct tevent_req *req)
2745 return tevent_req_simple_recv_ntstatus(req);
2748 struct _s3_compat_lsa_SetDomainInformationPolicy_state {
2749 struct tevent_context *ev;
2750 struct dcerpc_call_handle *call;
2751 struct lsa_SetDomainInformationPolicy *r;
2754 static struct tevent_req *_s3_compat_lsa_SetDomainInformationPolicy_send(TALLOC_CTX *mem_ctx,
2755 struct tevent_context *ev,
2756 struct dcerpc_call_handle *call,
2757 struct lsa_SetDomainInformationPolicy *r)
2759 struct tevent_req *req;
2760 struct _s3_compat_lsa_SetDomainInformationPolicy_state *state;
2761 struct pipes_struct *p;
2763 req = tevent_req_create(mem_ctx, &state,
2764 struct _s3_compat_lsa_SetDomainInformationPolicy_state);
2772 p = dcerpc_call_handle_get_pipes_struct(call);
2774 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2775 return tevent_req_post(req, ev);
2778 r->out.result = _lsa_SetDomainInformationPolicy(p, r);
2780 if (p->fault_state) {
2781 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2782 tevent_req_nterror(req, status);
2783 return tevent_req_post(req, ev);
2786 tevent_req_done(req);
2787 return tevent_req_post(req, ev);
2790 static NTSTATUS _s3_compat_lsa_SetDomainInformationPolicy_recv(struct tevent_req *req)
2792 return tevent_req_simple_recv_ntstatus(req);
2795 struct _s3_compat_lsa_OpenTrustedDomainByName_state {
2796 struct tevent_context *ev;
2797 struct dcerpc_call_handle *call;
2798 struct lsa_OpenTrustedDomainByName *r;
2801 static struct tevent_req *_s3_compat_lsa_OpenTrustedDomainByName_send(TALLOC_CTX *mem_ctx,
2802 struct tevent_context *ev,
2803 struct dcerpc_call_handle *call,
2804 struct lsa_OpenTrustedDomainByName *r)
2806 struct tevent_req *req;
2807 struct _s3_compat_lsa_OpenTrustedDomainByName_state *state;
2808 struct pipes_struct *p;
2810 req = tevent_req_create(mem_ctx, &state,
2811 struct _s3_compat_lsa_OpenTrustedDomainByName_state);
2819 p = dcerpc_call_handle_get_pipes_struct(call);
2821 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2822 return tevent_req_post(req, ev);
2825 ZERO_STRUCT(r->out);
2826 r->out.trustdom_handle = talloc_zero(r, struct policy_handle);
2827 if (tevent_req_nomem(r->out.trustdom_handle, req)) {
2828 return tevent_req_post(req, ev);
2831 r->out.result = _lsa_OpenTrustedDomainByName(p, r);
2833 if (p->fault_state) {
2834 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2835 tevent_req_nterror(req, status);
2836 return tevent_req_post(req, ev);
2839 tevent_req_done(req);
2840 return tevent_req_post(req, ev);
2843 static NTSTATUS _s3_compat_lsa_OpenTrustedDomainByName_recv(struct tevent_req *req)
2845 return tevent_req_simple_recv_ntstatus(req);
2848 struct _s3_compat_lsa_TestCall_state {
2849 struct tevent_context *ev;
2850 struct dcerpc_call_handle *call;
2851 struct lsa_TestCall *r;
2854 static struct tevent_req *_s3_compat_lsa_TestCall_send(TALLOC_CTX *mem_ctx,
2855 struct tevent_context *ev,
2856 struct dcerpc_call_handle *call,
2857 struct lsa_TestCall *r)
2859 struct tevent_req *req;
2860 struct _s3_compat_lsa_TestCall_state *state;
2861 struct pipes_struct *p;
2863 req = tevent_req_create(mem_ctx, &state,
2864 struct _s3_compat_lsa_TestCall_state);
2872 p = dcerpc_call_handle_get_pipes_struct(call);
2874 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2875 return tevent_req_post(req, ev);
2878 r->out.result = _lsa_TestCall(p, r);
2880 if (p->fault_state) {
2881 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2882 tevent_req_nterror(req, status);
2883 return tevent_req_post(req, ev);
2886 tevent_req_done(req);
2887 return tevent_req_post(req, ev);
2890 static NTSTATUS _s3_compat_lsa_TestCall_recv(struct tevent_req *req)
2892 return tevent_req_simple_recv_ntstatus(req);
2895 struct _s3_compat_lsa_LookupSids2_state {
2896 struct tevent_context *ev;
2897 struct dcerpc_call_handle *call;
2898 struct lsa_LookupSids2 *r;
2901 static struct tevent_req *_s3_compat_lsa_LookupSids2_send(TALLOC_CTX *mem_ctx,
2902 struct tevent_context *ev,
2903 struct dcerpc_call_handle *call,
2904 struct lsa_LookupSids2 *r)
2906 struct tevent_req *req;
2907 struct _s3_compat_lsa_LookupSids2_state *state;
2908 struct pipes_struct *p;
2910 req = tevent_req_create(mem_ctx, &state,
2911 struct _s3_compat_lsa_LookupSids2_state);
2919 p = dcerpc_call_handle_get_pipes_struct(call);
2921 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2922 return tevent_req_post(req, ev);
2925 ZERO_STRUCT(r->out);
2926 r->out.names = r->in.names;
2927 r->out.count = r->in.count;
2928 r->out.domains = talloc_zero(r, struct lsa_RefDomainList *);
2929 if (tevent_req_nomem(r->out.domains, req)) {
2930 return tevent_req_post(req, ev);
2933 r->out.result = _lsa_LookupSids2(p, r);
2935 if (p->fault_state) {
2936 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2937 tevent_req_nterror(req, status);
2938 return tevent_req_post(req, ev);
2941 tevent_req_done(req);
2942 return tevent_req_post(req, ev);
2945 static NTSTATUS _s3_compat_lsa_LookupSids2_recv(struct tevent_req *req)
2947 return tevent_req_simple_recv_ntstatus(req);
2950 struct _s3_compat_lsa_LookupNames2_state {
2951 struct tevent_context *ev;
2952 struct dcerpc_call_handle *call;
2953 struct lsa_LookupNames2 *r;
2956 static struct tevent_req *_s3_compat_lsa_LookupNames2_send(TALLOC_CTX *mem_ctx,
2957 struct tevent_context *ev,
2958 struct dcerpc_call_handle *call,
2959 struct lsa_LookupNames2 *r)
2961 struct tevent_req *req;
2962 struct _s3_compat_lsa_LookupNames2_state *state;
2963 struct pipes_struct *p;
2965 req = tevent_req_create(mem_ctx, &state,
2966 struct _s3_compat_lsa_LookupNames2_state);
2974 p = dcerpc_call_handle_get_pipes_struct(call);
2976 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
2977 return tevent_req_post(req, ev);
2980 ZERO_STRUCT(r->out);
2981 r->out.sids = r->in.sids;
2982 r->out.count = r->in.count;
2983 r->out.domains = talloc_zero(r, struct lsa_RefDomainList *);
2984 if (tevent_req_nomem(r->out.domains, req)) {
2985 return tevent_req_post(req, ev);
2988 r->out.result = _lsa_LookupNames2(p, r);
2990 if (p->fault_state) {
2991 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
2992 tevent_req_nterror(req, status);
2993 return tevent_req_post(req, ev);
2996 tevent_req_done(req);
2997 return tevent_req_post(req, ev);
3000 static NTSTATUS _s3_compat_lsa_LookupNames2_recv(struct tevent_req *req)
3002 return tevent_req_simple_recv_ntstatus(req);
3005 struct _s3_compat_lsa_CreateTrustedDomainEx2_state {
3006 struct tevent_context *ev;
3007 struct dcerpc_call_handle *call;
3008 struct lsa_CreateTrustedDomainEx2 *r;
3011 static struct tevent_req *_s3_compat_lsa_CreateTrustedDomainEx2_send(TALLOC_CTX *mem_ctx,
3012 struct tevent_context *ev,
3013 struct dcerpc_call_handle *call,
3014 struct lsa_CreateTrustedDomainEx2 *r)
3016 struct tevent_req *req;
3017 struct _s3_compat_lsa_CreateTrustedDomainEx2_state *state;
3018 struct pipes_struct *p;
3020 req = tevent_req_create(mem_ctx, &state,
3021 struct _s3_compat_lsa_CreateTrustedDomainEx2_state);
3029 p = dcerpc_call_handle_get_pipes_struct(call);
3031 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3032 return tevent_req_post(req, ev);
3035 ZERO_STRUCT(r->out);
3036 r->out.trustdom_handle = talloc_zero(r, struct policy_handle);
3037 if (tevent_req_nomem(r->out.trustdom_handle, req)) {
3038 return tevent_req_post(req, ev);
3041 r->out.result = _lsa_CreateTrustedDomainEx2(p, r);
3043 if (p->fault_state) {
3044 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3045 tevent_req_nterror(req, status);
3046 return tevent_req_post(req, ev);
3049 tevent_req_done(req);
3050 return tevent_req_post(req, ev);
3053 static NTSTATUS _s3_compat_lsa_CreateTrustedDomainEx2_recv(struct tevent_req *req)
3055 return tevent_req_simple_recv_ntstatus(req);
3058 struct _s3_compat_lsa_CREDRWRITE_state {
3059 struct tevent_context *ev;
3060 struct dcerpc_call_handle *call;
3061 struct lsa_CREDRWRITE *r;
3064 static struct tevent_req *_s3_compat_lsa_CREDRWRITE_send(TALLOC_CTX *mem_ctx,
3065 struct tevent_context *ev,
3066 struct dcerpc_call_handle *call,
3067 struct lsa_CREDRWRITE *r)
3069 struct tevent_req *req;
3070 struct _s3_compat_lsa_CREDRWRITE_state *state;
3071 struct pipes_struct *p;
3073 req = tevent_req_create(mem_ctx, &state,
3074 struct _s3_compat_lsa_CREDRWRITE_state);
3082 p = dcerpc_call_handle_get_pipes_struct(call);
3084 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3085 return tevent_req_post(req, ev);
3088 r->out.result = _lsa_CREDRWRITE(p, r);
3090 if (p->fault_state) {
3091 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3092 tevent_req_nterror(req, status);
3093 return tevent_req_post(req, ev);
3096 tevent_req_done(req);
3097 return tevent_req_post(req, ev);
3100 static NTSTATUS _s3_compat_lsa_CREDRWRITE_recv(struct tevent_req *req)
3102 return tevent_req_simple_recv_ntstatus(req);
3105 struct _s3_compat_lsa_CREDRREAD_state {
3106 struct tevent_context *ev;
3107 struct dcerpc_call_handle *call;
3108 struct lsa_CREDRREAD *r;
3111 static struct tevent_req *_s3_compat_lsa_CREDRREAD_send(TALLOC_CTX *mem_ctx,
3112 struct tevent_context *ev,
3113 struct dcerpc_call_handle *call,
3114 struct lsa_CREDRREAD *r)
3116 struct tevent_req *req;
3117 struct _s3_compat_lsa_CREDRREAD_state *state;
3118 struct pipes_struct *p;
3120 req = tevent_req_create(mem_ctx, &state,
3121 struct _s3_compat_lsa_CREDRREAD_state);
3129 p = dcerpc_call_handle_get_pipes_struct(call);
3131 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3132 return tevent_req_post(req, ev);
3135 r->out.result = _lsa_CREDRREAD(p, r);
3137 if (p->fault_state) {
3138 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3139 tevent_req_nterror(req, status);
3140 return tevent_req_post(req, ev);
3143 tevent_req_done(req);
3144 return tevent_req_post(req, ev);
3147 static NTSTATUS _s3_compat_lsa_CREDRREAD_recv(struct tevent_req *req)
3149 return tevent_req_simple_recv_ntstatus(req);
3152 struct _s3_compat_lsa_CREDRENUMERATE_state {
3153 struct tevent_context *ev;
3154 struct dcerpc_call_handle *call;
3155 struct lsa_CREDRENUMERATE *r;
3158 static struct tevent_req *_s3_compat_lsa_CREDRENUMERATE_send(TALLOC_CTX *mem_ctx,
3159 struct tevent_context *ev,
3160 struct dcerpc_call_handle *call,
3161 struct lsa_CREDRENUMERATE *r)
3163 struct tevent_req *req;
3164 struct _s3_compat_lsa_CREDRENUMERATE_state *state;
3165 struct pipes_struct *p;
3167 req = tevent_req_create(mem_ctx, &state,
3168 struct _s3_compat_lsa_CREDRENUMERATE_state);
3176 p = dcerpc_call_handle_get_pipes_struct(call);
3178 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3179 return tevent_req_post(req, ev);
3182 r->out.result = _lsa_CREDRENUMERATE(p, r);
3184 if (p->fault_state) {
3185 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3186 tevent_req_nterror(req, status);
3187 return tevent_req_post(req, ev);
3190 tevent_req_done(req);
3191 return tevent_req_post(req, ev);
3194 static NTSTATUS _s3_compat_lsa_CREDRENUMERATE_recv(struct tevent_req *req)
3196 return tevent_req_simple_recv_ntstatus(req);
3199 struct _s3_compat_lsa_CREDRWRITEDOMAINCREDENTIALS_state {
3200 struct tevent_context *ev;
3201 struct dcerpc_call_handle *call;
3202 struct lsa_CREDRWRITEDOMAINCREDENTIALS *r;
3205 static struct tevent_req *_s3_compat_lsa_CREDRWRITEDOMAINCREDENTIALS_send(TALLOC_CTX *mem_ctx,
3206 struct tevent_context *ev,
3207 struct dcerpc_call_handle *call,
3208 struct lsa_CREDRWRITEDOMAINCREDENTIALS *r)
3210 struct tevent_req *req;
3211 struct _s3_compat_lsa_CREDRWRITEDOMAINCREDENTIALS_state *state;
3212 struct pipes_struct *p;
3214 req = tevent_req_create(mem_ctx, &state,
3215 struct _s3_compat_lsa_CREDRWRITEDOMAINCREDENTIALS_state);
3223 p = dcerpc_call_handle_get_pipes_struct(call);
3225 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3226 return tevent_req_post(req, ev);
3229 r->out.result = _lsa_CREDRWRITEDOMAINCREDENTIALS(p, r);
3231 if (p->fault_state) {
3232 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3233 tevent_req_nterror(req, status);
3234 return tevent_req_post(req, ev);
3237 tevent_req_done(req);
3238 return tevent_req_post(req, ev);
3241 static NTSTATUS _s3_compat_lsa_CREDRWRITEDOMAINCREDENTIALS_recv(struct tevent_req *req)
3243 return tevent_req_simple_recv_ntstatus(req);
3246 struct _s3_compat_lsa_CREDRREADDOMAINCREDENTIALS_state {
3247 struct tevent_context *ev;
3248 struct dcerpc_call_handle *call;
3249 struct lsa_CREDRREADDOMAINCREDENTIALS *r;
3252 static struct tevent_req *_s3_compat_lsa_CREDRREADDOMAINCREDENTIALS_send(TALLOC_CTX *mem_ctx,
3253 struct tevent_context *ev,
3254 struct dcerpc_call_handle *call,
3255 struct lsa_CREDRREADDOMAINCREDENTIALS *r)
3257 struct tevent_req *req;
3258 struct _s3_compat_lsa_CREDRREADDOMAINCREDENTIALS_state *state;
3259 struct pipes_struct *p;
3261 req = tevent_req_create(mem_ctx, &state,
3262 struct _s3_compat_lsa_CREDRREADDOMAINCREDENTIALS_state);
3270 p = dcerpc_call_handle_get_pipes_struct(call);
3272 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3273 return tevent_req_post(req, ev);
3276 r->out.result = _lsa_CREDRREADDOMAINCREDENTIALS(p, r);
3278 if (p->fault_state) {
3279 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3280 tevent_req_nterror(req, status);
3281 return tevent_req_post(req, ev);
3284 tevent_req_done(req);
3285 return tevent_req_post(req, ev);
3288 static NTSTATUS _s3_compat_lsa_CREDRREADDOMAINCREDENTIALS_recv(struct tevent_req *req)
3290 return tevent_req_simple_recv_ntstatus(req);
3293 struct _s3_compat_lsa_CREDRDELETE_state {
3294 struct tevent_context *ev;
3295 struct dcerpc_call_handle *call;
3296 struct lsa_CREDRDELETE *r;
3299 static struct tevent_req *_s3_compat_lsa_CREDRDELETE_send(TALLOC_CTX *mem_ctx,
3300 struct tevent_context *ev,
3301 struct dcerpc_call_handle *call,
3302 struct lsa_CREDRDELETE *r)
3304 struct tevent_req *req;
3305 struct _s3_compat_lsa_CREDRDELETE_state *state;
3306 struct pipes_struct *p;
3308 req = tevent_req_create(mem_ctx, &state,
3309 struct _s3_compat_lsa_CREDRDELETE_state);
3317 p = dcerpc_call_handle_get_pipes_struct(call);
3319 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3320 return tevent_req_post(req, ev);
3323 r->out.result = _lsa_CREDRDELETE(p, r);
3325 if (p->fault_state) {
3326 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3327 tevent_req_nterror(req, status);
3328 return tevent_req_post(req, ev);
3331 tevent_req_done(req);
3332 return tevent_req_post(req, ev);
3335 static NTSTATUS _s3_compat_lsa_CREDRDELETE_recv(struct tevent_req *req)
3337 return tevent_req_simple_recv_ntstatus(req);
3340 struct _s3_compat_lsa_CREDRGETTARGETINFO_state {
3341 struct tevent_context *ev;
3342 struct dcerpc_call_handle *call;
3343 struct lsa_CREDRGETTARGETINFO *r;
3346 static struct tevent_req *_s3_compat_lsa_CREDRGETTARGETINFO_send(TALLOC_CTX *mem_ctx,
3347 struct tevent_context *ev,
3348 struct dcerpc_call_handle *call,
3349 struct lsa_CREDRGETTARGETINFO *r)
3351 struct tevent_req *req;
3352 struct _s3_compat_lsa_CREDRGETTARGETINFO_state *state;
3353 struct pipes_struct *p;
3355 req = tevent_req_create(mem_ctx, &state,
3356 struct _s3_compat_lsa_CREDRGETTARGETINFO_state);
3364 p = dcerpc_call_handle_get_pipes_struct(call);
3366 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3367 return tevent_req_post(req, ev);
3370 r->out.result = _lsa_CREDRGETTARGETINFO(p, r);
3372 if (p->fault_state) {
3373 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3374 tevent_req_nterror(req, status);
3375 return tevent_req_post(req, ev);
3378 tevent_req_done(req);
3379 return tevent_req_post(req, ev);
3382 static NTSTATUS _s3_compat_lsa_CREDRGETTARGETINFO_recv(struct tevent_req *req)
3384 return tevent_req_simple_recv_ntstatus(req);
3387 struct _s3_compat_lsa_CREDRPROFILELOADED_state {
3388 struct tevent_context *ev;
3389 struct dcerpc_call_handle *call;
3390 struct lsa_CREDRPROFILELOADED *r;
3393 static struct tevent_req *_s3_compat_lsa_CREDRPROFILELOADED_send(TALLOC_CTX *mem_ctx,
3394 struct tevent_context *ev,
3395 struct dcerpc_call_handle *call,
3396 struct lsa_CREDRPROFILELOADED *r)
3398 struct tevent_req *req;
3399 struct _s3_compat_lsa_CREDRPROFILELOADED_state *state;
3400 struct pipes_struct *p;
3402 req = tevent_req_create(mem_ctx, &state,
3403 struct _s3_compat_lsa_CREDRPROFILELOADED_state);
3411 p = dcerpc_call_handle_get_pipes_struct(call);
3413 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3414 return tevent_req_post(req, ev);
3417 r->out.result = _lsa_CREDRPROFILELOADED(p, r);
3419 if (p->fault_state) {
3420 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3421 tevent_req_nterror(req, status);
3422 return tevent_req_post(req, ev);
3425 tevent_req_done(req);
3426 return tevent_req_post(req, ev);
3429 static NTSTATUS _s3_compat_lsa_CREDRPROFILELOADED_recv(struct tevent_req *req)
3431 return tevent_req_simple_recv_ntstatus(req);
3434 struct _s3_compat_lsa_LookupNames3_state {
3435 struct tevent_context *ev;
3436 struct dcerpc_call_handle *call;
3437 struct lsa_LookupNames3 *r;
3440 static struct tevent_req *_s3_compat_lsa_LookupNames3_send(TALLOC_CTX *mem_ctx,
3441 struct tevent_context *ev,
3442 struct dcerpc_call_handle *call,
3443 struct lsa_LookupNames3 *r)
3445 struct tevent_req *req;
3446 struct _s3_compat_lsa_LookupNames3_state *state;
3447 struct pipes_struct *p;
3449 req = tevent_req_create(mem_ctx, &state,
3450 struct _s3_compat_lsa_LookupNames3_state);
3458 p = dcerpc_call_handle_get_pipes_struct(call);
3460 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3461 return tevent_req_post(req, ev);
3464 ZERO_STRUCT(r->out);
3465 r->out.sids = r->in.sids;
3466 r->out.count = r->in.count;
3467 r->out.domains = talloc_zero(r, struct lsa_RefDomainList *);
3468 if (tevent_req_nomem(r->out.domains, req)) {
3469 return tevent_req_post(req, ev);
3472 r->out.result = _lsa_LookupNames3(p, r);
3474 if (p->fault_state) {
3475 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3476 tevent_req_nterror(req, status);
3477 return tevent_req_post(req, ev);
3480 tevent_req_done(req);
3481 return tevent_req_post(req, ev);
3484 static NTSTATUS _s3_compat_lsa_LookupNames3_recv(struct tevent_req *req)
3486 return tevent_req_simple_recv_ntstatus(req);
3489 struct _s3_compat_lsa_CREDRGETSESSIONTYPES_state {
3490 struct tevent_context *ev;
3491 struct dcerpc_call_handle *call;
3492 struct lsa_CREDRGETSESSIONTYPES *r;
3495 static struct tevent_req *_s3_compat_lsa_CREDRGETSESSIONTYPES_send(TALLOC_CTX *mem_ctx,
3496 struct tevent_context *ev,
3497 struct dcerpc_call_handle *call,
3498 struct lsa_CREDRGETSESSIONTYPES *r)
3500 struct tevent_req *req;
3501 struct _s3_compat_lsa_CREDRGETSESSIONTYPES_state *state;
3502 struct pipes_struct *p;
3504 req = tevent_req_create(mem_ctx, &state,
3505 struct _s3_compat_lsa_CREDRGETSESSIONTYPES_state);
3513 p = dcerpc_call_handle_get_pipes_struct(call);
3515 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3516 return tevent_req_post(req, ev);
3519 r->out.result = _lsa_CREDRGETSESSIONTYPES(p, r);
3521 if (p->fault_state) {
3522 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3523 tevent_req_nterror(req, status);
3524 return tevent_req_post(req, ev);
3527 tevent_req_done(req);
3528 return tevent_req_post(req, ev);
3531 static NTSTATUS _s3_compat_lsa_CREDRGETSESSIONTYPES_recv(struct tevent_req *req)
3533 return tevent_req_simple_recv_ntstatus(req);
3536 struct _s3_compat_lsa_LSARREGISTERAUDITEVENT_state {
3537 struct tevent_context *ev;
3538 struct dcerpc_call_handle *call;
3539 struct lsa_LSARREGISTERAUDITEVENT *r;
3542 static struct tevent_req *_s3_compat_lsa_LSARREGISTERAUDITEVENT_send(TALLOC_CTX *mem_ctx,
3543 struct tevent_context *ev,
3544 struct dcerpc_call_handle *call,
3545 struct lsa_LSARREGISTERAUDITEVENT *r)
3547 struct tevent_req *req;
3548 struct _s3_compat_lsa_LSARREGISTERAUDITEVENT_state *state;
3549 struct pipes_struct *p;
3551 req = tevent_req_create(mem_ctx, &state,
3552 struct _s3_compat_lsa_LSARREGISTERAUDITEVENT_state);
3560 p = dcerpc_call_handle_get_pipes_struct(call);
3562 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3563 return tevent_req_post(req, ev);
3566 r->out.result = _lsa_LSARREGISTERAUDITEVENT(p, r);
3568 if (p->fault_state) {
3569 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3570 tevent_req_nterror(req, status);
3571 return tevent_req_post(req, ev);
3574 tevent_req_done(req);
3575 return tevent_req_post(req, ev);
3578 static NTSTATUS _s3_compat_lsa_LSARREGISTERAUDITEVENT_recv(struct tevent_req *req)
3580 return tevent_req_simple_recv_ntstatus(req);
3583 struct _s3_compat_lsa_LSARGENAUDITEVENT_state {
3584 struct tevent_context *ev;
3585 struct dcerpc_call_handle *call;
3586 struct lsa_LSARGENAUDITEVENT *r;
3589 static struct tevent_req *_s3_compat_lsa_LSARGENAUDITEVENT_send(TALLOC_CTX *mem_ctx,
3590 struct tevent_context *ev,
3591 struct dcerpc_call_handle *call,
3592 struct lsa_LSARGENAUDITEVENT *r)
3594 struct tevent_req *req;
3595 struct _s3_compat_lsa_LSARGENAUDITEVENT_state *state;
3596 struct pipes_struct *p;
3598 req = tevent_req_create(mem_ctx, &state,
3599 struct _s3_compat_lsa_LSARGENAUDITEVENT_state);
3607 p = dcerpc_call_handle_get_pipes_struct(call);
3609 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3610 return tevent_req_post(req, ev);
3613 r->out.result = _lsa_LSARGENAUDITEVENT(p, r);
3615 if (p->fault_state) {
3616 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3617 tevent_req_nterror(req, status);
3618 return tevent_req_post(req, ev);
3621 tevent_req_done(req);
3622 return tevent_req_post(req, ev);
3625 static NTSTATUS _s3_compat_lsa_LSARGENAUDITEVENT_recv(struct tevent_req *req)
3627 return tevent_req_simple_recv_ntstatus(req);
3630 struct _s3_compat_lsa_LSARUNREGISTERAUDITEVENT_state {
3631 struct tevent_context *ev;
3632 struct dcerpc_call_handle *call;
3633 struct lsa_LSARUNREGISTERAUDITEVENT *r;
3636 static struct tevent_req *_s3_compat_lsa_LSARUNREGISTERAUDITEVENT_send(TALLOC_CTX *mem_ctx,
3637 struct tevent_context *ev,
3638 struct dcerpc_call_handle *call,
3639 struct lsa_LSARUNREGISTERAUDITEVENT *r)
3641 struct tevent_req *req;
3642 struct _s3_compat_lsa_LSARUNREGISTERAUDITEVENT_state *state;
3643 struct pipes_struct *p;
3645 req = tevent_req_create(mem_ctx, &state,
3646 struct _s3_compat_lsa_LSARUNREGISTERAUDITEVENT_state);
3654 p = dcerpc_call_handle_get_pipes_struct(call);
3656 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3657 return tevent_req_post(req, ev);
3660 r->out.result = _lsa_LSARUNREGISTERAUDITEVENT(p, r);
3662 if (p->fault_state) {
3663 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3664 tevent_req_nterror(req, status);
3665 return tevent_req_post(req, ev);
3668 tevent_req_done(req);
3669 return tevent_req_post(req, ev);
3672 static NTSTATUS _s3_compat_lsa_LSARUNREGISTERAUDITEVENT_recv(struct tevent_req *req)
3674 return tevent_req_simple_recv_ntstatus(req);
3677 struct _s3_compat_lsa_lsaRQueryForestTrustInformation_state {
3678 struct tevent_context *ev;
3679 struct dcerpc_call_handle *call;
3680 struct lsa_lsaRQueryForestTrustInformation *r;
3683 static struct tevent_req *_s3_compat_lsa_lsaRQueryForestTrustInformation_send(TALLOC_CTX *mem_ctx,
3684 struct tevent_context *ev,
3685 struct dcerpc_call_handle *call,
3686 struct lsa_lsaRQueryForestTrustInformation *r)
3688 struct tevent_req *req;
3689 struct _s3_compat_lsa_lsaRQueryForestTrustInformation_state *state;
3690 struct pipes_struct *p;
3692 req = tevent_req_create(mem_ctx, &state,
3693 struct _s3_compat_lsa_lsaRQueryForestTrustInformation_state);
3701 p = dcerpc_call_handle_get_pipes_struct(call);
3703 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3704 return tevent_req_post(req, ev);
3707 ZERO_STRUCT(r->out);
3708 r->out.forest_trust_info = talloc_zero(r, struct lsa_ForestTrustInformation *);
3709 if (tevent_req_nomem(r->out.forest_trust_info, req)) {
3710 return tevent_req_post(req, ev);
3713 r->out.result = _lsa_lsaRQueryForestTrustInformation(p, r);
3715 if (p->fault_state) {
3716 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3717 tevent_req_nterror(req, status);
3718 return tevent_req_post(req, ev);
3721 tevent_req_done(req);
3722 return tevent_req_post(req, ev);
3725 static NTSTATUS _s3_compat_lsa_lsaRQueryForestTrustInformation_recv(struct tevent_req *req)
3727 return tevent_req_simple_recv_ntstatus(req);
3730 struct _s3_compat_lsa_lsaRSetForestTrustInformation_state {
3731 struct tevent_context *ev;
3732 struct dcerpc_call_handle *call;
3733 struct lsa_lsaRSetForestTrustInformation *r;
3736 static struct tevent_req *_s3_compat_lsa_lsaRSetForestTrustInformation_send(TALLOC_CTX *mem_ctx,
3737 struct tevent_context *ev,
3738 struct dcerpc_call_handle *call,
3739 struct lsa_lsaRSetForestTrustInformation *r)
3741 struct tevent_req *req;
3742 struct _s3_compat_lsa_lsaRSetForestTrustInformation_state *state;
3743 struct pipes_struct *p;
3745 req = tevent_req_create(mem_ctx, &state,
3746 struct _s3_compat_lsa_lsaRSetForestTrustInformation_state);
3754 p = dcerpc_call_handle_get_pipes_struct(call);
3756 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3757 return tevent_req_post(req, ev);
3760 ZERO_STRUCT(r->out);
3761 r->out.collision_info = talloc_zero(r, struct lsa_ForestTrustCollisionInfo *);
3762 if (tevent_req_nomem(r->out.collision_info, req)) {
3763 return tevent_req_post(req, ev);
3766 r->out.result = _lsa_lsaRSetForestTrustInformation(p, r);
3768 if (p->fault_state) {
3769 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3770 tevent_req_nterror(req, status);
3771 return tevent_req_post(req, ev);
3774 tevent_req_done(req);
3775 return tevent_req_post(req, ev);
3778 static NTSTATUS _s3_compat_lsa_lsaRSetForestTrustInformation_recv(struct tevent_req *req)
3780 return tevent_req_simple_recv_ntstatus(req);
3783 struct _s3_compat_lsa_CREDRRENAME_state {
3784 struct tevent_context *ev;
3785 struct dcerpc_call_handle *call;
3786 struct lsa_CREDRRENAME *r;
3789 static struct tevent_req *_s3_compat_lsa_CREDRRENAME_send(TALLOC_CTX *mem_ctx,
3790 struct tevent_context *ev,
3791 struct dcerpc_call_handle *call,
3792 struct lsa_CREDRRENAME *r)
3794 struct tevent_req *req;
3795 struct _s3_compat_lsa_CREDRRENAME_state *state;
3796 struct pipes_struct *p;
3798 req = tevent_req_create(mem_ctx, &state,
3799 struct _s3_compat_lsa_CREDRRENAME_state);
3807 p = dcerpc_call_handle_get_pipes_struct(call);
3809 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3810 return tevent_req_post(req, ev);
3813 r->out.result = _lsa_CREDRRENAME(p, r);
3815 if (p->fault_state) {
3816 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3817 tevent_req_nterror(req, status);
3818 return tevent_req_post(req, ev);
3821 tevent_req_done(req);
3822 return tevent_req_post(req, ev);
3825 static NTSTATUS _s3_compat_lsa_CREDRRENAME_recv(struct tevent_req *req)
3827 return tevent_req_simple_recv_ntstatus(req);
3830 struct _s3_compat_lsa_LookupSids3_state {
3831 struct tevent_context *ev;
3832 struct dcerpc_call_handle *call;
3833 struct lsa_LookupSids3 *r;
3836 static struct tevent_req *_s3_compat_lsa_LookupSids3_send(TALLOC_CTX *mem_ctx,
3837 struct tevent_context *ev,
3838 struct dcerpc_call_handle *call,
3839 struct lsa_LookupSids3 *r)
3841 struct tevent_req *req;
3842 struct _s3_compat_lsa_LookupSids3_state *state;
3843 struct pipes_struct *p;
3845 req = tevent_req_create(mem_ctx, &state,
3846 struct _s3_compat_lsa_LookupSids3_state);
3854 p = dcerpc_call_handle_get_pipes_struct(call);
3856 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3857 return tevent_req_post(req, ev);
3860 ZERO_STRUCT(r->out);
3861 r->out.names = r->in.names;
3862 r->out.count = r->in.count;
3863 r->out.domains = talloc_zero(r, struct lsa_RefDomainList *);
3864 if (tevent_req_nomem(r->out.domains, req)) {
3865 return tevent_req_post(req, ev);
3868 r->out.result = _lsa_LookupSids3(p, r);
3870 if (p->fault_state) {
3871 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3872 tevent_req_nterror(req, status);
3873 return tevent_req_post(req, ev);
3876 tevent_req_done(req);
3877 return tevent_req_post(req, ev);
3880 static NTSTATUS _s3_compat_lsa_LookupSids3_recv(struct tevent_req *req)
3882 return tevent_req_simple_recv_ntstatus(req);
3885 struct _s3_compat_lsa_LookupNames4_state {
3886 struct tevent_context *ev;
3887 struct dcerpc_call_handle *call;
3888 struct lsa_LookupNames4 *r;
3891 static struct tevent_req *_s3_compat_lsa_LookupNames4_send(TALLOC_CTX *mem_ctx,
3892 struct tevent_context *ev,
3893 struct dcerpc_call_handle *call,
3894 struct lsa_LookupNames4 *r)
3896 struct tevent_req *req;
3897 struct _s3_compat_lsa_LookupNames4_state *state;
3898 struct pipes_struct *p;
3900 req = tevent_req_create(mem_ctx, &state,
3901 struct _s3_compat_lsa_LookupNames4_state);
3909 p = dcerpc_call_handle_get_pipes_struct(call);
3911 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3912 return tevent_req_post(req, ev);
3915 ZERO_STRUCT(r->out);
3916 r->out.sids = r->in.sids;
3917 r->out.count = r->in.count;
3918 r->out.domains = talloc_zero(r, struct lsa_RefDomainList *);
3919 if (tevent_req_nomem(r->out.domains, req)) {
3920 return tevent_req_post(req, ev);
3923 r->out.result = _lsa_LookupNames4(p, r);
3925 if (p->fault_state) {
3926 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3927 tevent_req_nterror(req, status);
3928 return tevent_req_post(req, ev);
3931 tevent_req_done(req);
3932 return tevent_req_post(req, ev);
3935 static NTSTATUS _s3_compat_lsa_LookupNames4_recv(struct tevent_req *req)
3937 return tevent_req_simple_recv_ntstatus(req);
3940 struct _s3_compat_lsa_LSAROPENPOLICYSCE_state {
3941 struct tevent_context *ev;
3942 struct dcerpc_call_handle *call;
3943 struct lsa_LSAROPENPOLICYSCE *r;
3946 static struct tevent_req *_s3_compat_lsa_LSAROPENPOLICYSCE_send(TALLOC_CTX *mem_ctx,
3947 struct tevent_context *ev,
3948 struct dcerpc_call_handle *call,
3949 struct lsa_LSAROPENPOLICYSCE *r)
3951 struct tevent_req *req;
3952 struct _s3_compat_lsa_LSAROPENPOLICYSCE_state *state;
3953 struct pipes_struct *p;
3955 req = tevent_req_create(mem_ctx, &state,
3956 struct _s3_compat_lsa_LSAROPENPOLICYSCE_state);
3964 p = dcerpc_call_handle_get_pipes_struct(call);
3966 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
3967 return tevent_req_post(req, ev);
3970 r->out.result = _lsa_LSAROPENPOLICYSCE(p, r);
3972 if (p->fault_state) {
3973 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
3974 tevent_req_nterror(req, status);
3975 return tevent_req_post(req, ev);
3978 tevent_req_done(req);
3979 return tevent_req_post(req, ev);
3982 static NTSTATUS _s3_compat_lsa_LSAROPENPOLICYSCE_recv(struct tevent_req *req)
3984 return tevent_req_simple_recv_ntstatus(req);
3987 struct _s3_compat_lsa_LSARADTREGISTERSECURITYEVENTSOURCE_state {
3988 struct tevent_context *ev;
3989 struct dcerpc_call_handle *call;
3990 struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r;
3993 static struct tevent_req *_s3_compat_lsa_LSARADTREGISTERSECURITYEVENTSOURCE_send(TALLOC_CTX *mem_ctx,
3994 struct tevent_context *ev,
3995 struct dcerpc_call_handle *call,
3996 struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r)
3998 struct tevent_req *req;
3999 struct _s3_compat_lsa_LSARADTREGISTERSECURITYEVENTSOURCE_state *state;
4000 struct pipes_struct *p;
4002 req = tevent_req_create(mem_ctx, &state,
4003 struct _s3_compat_lsa_LSARADTREGISTERSECURITYEVENTSOURCE_state);
4011 p = dcerpc_call_handle_get_pipes_struct(call);
4013 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
4014 return tevent_req_post(req, ev);
4017 r->out.result = _lsa_LSARADTREGISTERSECURITYEVENTSOURCE(p, r);
4019 if (p->fault_state) {
4020 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
4021 tevent_req_nterror(req, status);
4022 return tevent_req_post(req, ev);
4025 tevent_req_done(req);
4026 return tevent_req_post(req, ev);
4029 static NTSTATUS _s3_compat_lsa_LSARADTREGISTERSECURITYEVENTSOURCE_recv(struct tevent_req *req)
4031 return tevent_req_simple_recv_ntstatus(req);
4034 struct _s3_compat_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE_state {
4035 struct tevent_context *ev;
4036 struct dcerpc_call_handle *call;
4037 struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r;
4040 static struct tevent_req *_s3_compat_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE_send(TALLOC_CTX *mem_ctx,
4041 struct tevent_context *ev,
4042 struct dcerpc_call_handle *call,
4043 struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r)
4045 struct tevent_req *req;
4046 struct _s3_compat_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE_state *state;
4047 struct pipes_struct *p;
4049 req = tevent_req_create(mem_ctx, &state,
4050 struct _s3_compat_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE_state);
4058 p = dcerpc_call_handle_get_pipes_struct(call);
4060 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
4061 return tevent_req_post(req, ev);
4064 r->out.result = _lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(p, r);
4066 if (p->fault_state) {
4067 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
4068 tevent_req_nterror(req, status);
4069 return tevent_req_post(req, ev);
4072 tevent_req_done(req);
4073 return tevent_req_post(req, ev);
4076 static NTSTATUS _s3_compat_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE_recv(struct tevent_req *req)
4078 return tevent_req_simple_recv_ntstatus(req);
4081 struct _s3_compat_lsa_LSARADTREPORTSECURITYEVENT_state {
4082 struct tevent_context *ev;
4083 struct dcerpc_call_handle *call;
4084 struct lsa_LSARADTREPORTSECURITYEVENT *r;
4087 static struct tevent_req *_s3_compat_lsa_LSARADTREPORTSECURITYEVENT_send(TALLOC_CTX *mem_ctx,
4088 struct tevent_context *ev,
4089 struct dcerpc_call_handle *call,
4090 struct lsa_LSARADTREPORTSECURITYEVENT *r)
4092 struct tevent_req *req;
4093 struct _s3_compat_lsa_LSARADTREPORTSECURITYEVENT_state *state;
4094 struct pipes_struct *p;
4096 req = tevent_req_create(mem_ctx, &state,
4097 struct _s3_compat_lsa_LSARADTREPORTSECURITYEVENT_state);
4105 p = dcerpc_call_handle_get_pipes_struct(call);
4107 tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
4108 return tevent_req_post(req, ev);
4111 r->out.result = _lsa_LSARADTREPORTSECURITYEVENT(p, r);
4113 if (p->fault_state) {
4114 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
4115 tevent_req_nterror(req, status);
4116 return tevent_req_post(req, ev);
4119 tevent_req_done(req);
4120 return tevent_req_post(req, ev);
4123 static NTSTATUS _s3_compat_lsa_LSARADTREPORTSECURITYEVENT_recv(struct tevent_req *req)
4125 return tevent_req_simple_recv_ntstatus(req);
4129 static const struct dcerpc_call_entry_point_fns _s3_compat_lsarpc_fns[] = {
4131 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4132 _s3_compat_lsa_Close_send,
4133 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4134 _s3_compat_lsa_Close_recv,
4137 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4138 _s3_compat_lsa_Delete_send,
4139 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4140 _s3_compat_lsa_Delete_recv,
4143 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4144 _s3_compat_lsa_EnumPrivs_send,
4145 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4146 _s3_compat_lsa_EnumPrivs_recv,
4149 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4150 _s3_compat_lsa_QuerySecurity_send,
4151 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4152 _s3_compat_lsa_QuerySecurity_recv,
4155 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4156 _s3_compat_lsa_SetSecObj_send,
4157 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4158 _s3_compat_lsa_SetSecObj_recv,
4161 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4162 _s3_compat_lsa_ChangePassword_send,
4163 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4164 _s3_compat_lsa_ChangePassword_recv,
4167 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4168 _s3_compat_lsa_OpenPolicy_send,
4169 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4170 _s3_compat_lsa_OpenPolicy_recv,
4173 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4174 _s3_compat_lsa_QueryInfoPolicy_send,
4175 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4176 _s3_compat_lsa_QueryInfoPolicy_recv,
4179 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4180 _s3_compat_lsa_SetInfoPolicy_send,
4181 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4182 _s3_compat_lsa_SetInfoPolicy_recv,
4185 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4186 _s3_compat_lsa_ClearAuditLog_send,
4187 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4188 _s3_compat_lsa_ClearAuditLog_recv,
4191 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4192 _s3_compat_lsa_CreateAccount_send,
4193 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4194 _s3_compat_lsa_CreateAccount_recv,
4197 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4198 _s3_compat_lsa_EnumAccounts_send,
4199 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4200 _s3_compat_lsa_EnumAccounts_recv,
4203 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4204 _s3_compat_lsa_CreateTrustedDomain_send,
4205 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4206 _s3_compat_lsa_CreateTrustedDomain_recv,
4209 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4210 _s3_compat_lsa_EnumTrustDom_send,
4211 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4212 _s3_compat_lsa_EnumTrustDom_recv,
4215 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4216 _s3_compat_lsa_LookupNames_send,
4217 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4218 _s3_compat_lsa_LookupNames_recv,
4221 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4222 _s3_compat_lsa_LookupSids_send,
4223 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4224 _s3_compat_lsa_LookupSids_recv,
4227 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4228 _s3_compat_lsa_CreateSecret_send,
4229 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4230 _s3_compat_lsa_CreateSecret_recv,
4233 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4234 _s3_compat_lsa_OpenAccount_send,
4235 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4236 _s3_compat_lsa_OpenAccount_recv,
4239 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4240 _s3_compat_lsa_EnumPrivsAccount_send,
4241 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4242 _s3_compat_lsa_EnumPrivsAccount_recv,
4245 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4246 _s3_compat_lsa_AddPrivilegesToAccount_send,
4247 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4248 _s3_compat_lsa_AddPrivilegesToAccount_recv,
4251 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4252 _s3_compat_lsa_RemovePrivilegesFromAccount_send,
4253 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4254 _s3_compat_lsa_RemovePrivilegesFromAccount_recv,
4257 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4258 _s3_compat_lsa_GetQuotasForAccount_send,
4259 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4260 _s3_compat_lsa_GetQuotasForAccount_recv,
4263 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4264 _s3_compat_lsa_SetQuotasForAccount_send,
4265 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4266 _s3_compat_lsa_SetQuotasForAccount_recv,
4269 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4270 _s3_compat_lsa_GetSystemAccessAccount_send,
4271 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4272 _s3_compat_lsa_GetSystemAccessAccount_recv,
4275 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4276 _s3_compat_lsa_SetSystemAccessAccount_send,
4277 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4278 _s3_compat_lsa_SetSystemAccessAccount_recv,
4281 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4282 _s3_compat_lsa_OpenTrustedDomain_send,
4283 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4284 _s3_compat_lsa_OpenTrustedDomain_recv,
4287 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4288 _s3_compat_lsa_QueryTrustedDomainInfo_send,
4289 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4290 _s3_compat_lsa_QueryTrustedDomainInfo_recv,
4293 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4294 _s3_compat_lsa_SetInformationTrustedDomain_send,
4295 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4296 _s3_compat_lsa_SetInformationTrustedDomain_recv,
4299 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4300 _s3_compat_lsa_OpenSecret_send,
4301 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4302 _s3_compat_lsa_OpenSecret_recv,
4305 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4306 _s3_compat_lsa_SetSecret_send,
4307 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4308 _s3_compat_lsa_SetSecret_recv,
4311 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4312 _s3_compat_lsa_QuerySecret_send,
4313 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4314 _s3_compat_lsa_QuerySecret_recv,
4317 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4318 _s3_compat_lsa_LookupPrivValue_send,
4319 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4320 _s3_compat_lsa_LookupPrivValue_recv,
4323 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4324 _s3_compat_lsa_LookupPrivName_send,
4325 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4326 _s3_compat_lsa_LookupPrivName_recv,
4329 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4330 _s3_compat_lsa_LookupPrivDisplayName_send,
4331 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4332 _s3_compat_lsa_LookupPrivDisplayName_recv,
4335 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4336 _s3_compat_lsa_DeleteObject_send,
4337 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4338 _s3_compat_lsa_DeleteObject_recv,
4341 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4342 _s3_compat_lsa_EnumAccountsWithUserRight_send,
4343 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4344 _s3_compat_lsa_EnumAccountsWithUserRight_recv,
4347 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4348 _s3_compat_lsa_EnumAccountRights_send,
4349 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4350 _s3_compat_lsa_EnumAccountRights_recv,
4353 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4354 _s3_compat_lsa_AddAccountRights_send,
4355 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4356 _s3_compat_lsa_AddAccountRights_recv,
4359 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4360 _s3_compat_lsa_RemoveAccountRights_send,
4361 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4362 _s3_compat_lsa_RemoveAccountRights_recv,
4365 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4366 _s3_compat_lsa_QueryTrustedDomainInfoBySid_send,
4367 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4368 _s3_compat_lsa_QueryTrustedDomainInfoBySid_recv,
4371 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4372 _s3_compat_lsa_SetTrustedDomainInfo_send,
4373 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4374 _s3_compat_lsa_SetTrustedDomainInfo_recv,
4377 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4378 _s3_compat_lsa_DeleteTrustedDomain_send,
4379 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4380 _s3_compat_lsa_DeleteTrustedDomain_recv,
4383 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4384 _s3_compat_lsa_StorePrivateData_send,
4385 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4386 _s3_compat_lsa_StorePrivateData_recv,
4389 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4390 _s3_compat_lsa_RetrievePrivateData_send,
4391 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4392 _s3_compat_lsa_RetrievePrivateData_recv,
4395 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4396 _s3_compat_lsa_OpenPolicy2_send,
4397 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4398 _s3_compat_lsa_OpenPolicy2_recv,
4401 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4402 _s3_compat_lsa_GetUserName_send,
4403 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4404 _s3_compat_lsa_GetUserName_recv,
4407 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4408 _s3_compat_lsa_QueryInfoPolicy2_send,
4409 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4410 _s3_compat_lsa_QueryInfoPolicy2_recv,
4413 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4414 _s3_compat_lsa_SetInfoPolicy2_send,
4415 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4416 _s3_compat_lsa_SetInfoPolicy2_recv,
4419 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4420 _s3_compat_lsa_QueryTrustedDomainInfoByName_send,
4421 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4422 _s3_compat_lsa_QueryTrustedDomainInfoByName_recv,
4425 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4426 _s3_compat_lsa_SetTrustedDomainInfoByName_send,
4427 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4428 _s3_compat_lsa_SetTrustedDomainInfoByName_recv,
4431 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4432 _s3_compat_lsa_EnumTrustedDomainsEx_send,
4433 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4434 _s3_compat_lsa_EnumTrustedDomainsEx_recv,
4437 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4438 _s3_compat_lsa_CreateTrustedDomainEx_send,
4439 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4440 _s3_compat_lsa_CreateTrustedDomainEx_recv,
4443 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4444 _s3_compat_lsa_CloseTrustedDomainEx_send,
4445 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4446 _s3_compat_lsa_CloseTrustedDomainEx_recv,
4449 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4450 _s3_compat_lsa_QueryDomainInformationPolicy_send,
4451 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4452 _s3_compat_lsa_QueryDomainInformationPolicy_recv,
4455 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4456 _s3_compat_lsa_SetDomainInformationPolicy_send,
4457 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4458 _s3_compat_lsa_SetDomainInformationPolicy_recv,
4461 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4462 _s3_compat_lsa_OpenTrustedDomainByName_send,
4463 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4464 _s3_compat_lsa_OpenTrustedDomainByName_recv,
4467 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4468 _s3_compat_lsa_TestCall_send,
4469 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4470 _s3_compat_lsa_TestCall_recv,
4473 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4474 _s3_compat_lsa_LookupSids2_send,
4475 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4476 _s3_compat_lsa_LookupSids2_recv,
4479 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4480 _s3_compat_lsa_LookupNames2_send,
4481 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4482 _s3_compat_lsa_LookupNames2_recv,
4485 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4486 _s3_compat_lsa_CreateTrustedDomainEx2_send,
4487 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4488 _s3_compat_lsa_CreateTrustedDomainEx2_recv,
4491 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4492 _s3_compat_lsa_CREDRWRITE_send,
4493 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4494 _s3_compat_lsa_CREDRWRITE_recv,
4497 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4498 _s3_compat_lsa_CREDRREAD_send,
4499 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4500 _s3_compat_lsa_CREDRREAD_recv,
4503 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4504 _s3_compat_lsa_CREDRENUMERATE_send,
4505 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4506 _s3_compat_lsa_CREDRENUMERATE_recv,
4509 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4510 _s3_compat_lsa_CREDRWRITEDOMAINCREDENTIALS_send,
4511 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4512 _s3_compat_lsa_CREDRWRITEDOMAINCREDENTIALS_recv,
4515 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4516 _s3_compat_lsa_CREDRREADDOMAINCREDENTIALS_send,
4517 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4518 _s3_compat_lsa_CREDRREADDOMAINCREDENTIALS_recv,
4521 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4522 _s3_compat_lsa_CREDRDELETE_send,
4523 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4524 _s3_compat_lsa_CREDRDELETE_recv,
4527 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4528 _s3_compat_lsa_CREDRGETTARGETINFO_send,
4529 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4530 _s3_compat_lsa_CREDRGETTARGETINFO_recv,
4533 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4534 _s3_compat_lsa_CREDRPROFILELOADED_send,
4535 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4536 _s3_compat_lsa_CREDRPROFILELOADED_recv,
4539 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4540 _s3_compat_lsa_LookupNames3_send,
4541 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4542 _s3_compat_lsa_LookupNames3_recv,
4545 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4546 _s3_compat_lsa_CREDRGETSESSIONTYPES_send,
4547 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4548 _s3_compat_lsa_CREDRGETSESSIONTYPES_recv,
4551 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4552 _s3_compat_lsa_LSARREGISTERAUDITEVENT_send,
4553 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4554 _s3_compat_lsa_LSARREGISTERAUDITEVENT_recv,
4557 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4558 _s3_compat_lsa_LSARGENAUDITEVENT_send,
4559 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4560 _s3_compat_lsa_LSARGENAUDITEVENT_recv,
4563 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4564 _s3_compat_lsa_LSARUNREGISTERAUDITEVENT_send,
4565 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4566 _s3_compat_lsa_LSARUNREGISTERAUDITEVENT_recv,
4569 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4570 _s3_compat_lsa_lsaRQueryForestTrustInformation_send,
4571 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4572 _s3_compat_lsa_lsaRQueryForestTrustInformation_recv,
4575 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4576 _s3_compat_lsa_lsaRSetForestTrustInformation_send,
4577 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4578 _s3_compat_lsa_lsaRSetForestTrustInformation_recv,
4581 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4582 _s3_compat_lsa_CREDRRENAME_send,
4583 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4584 _s3_compat_lsa_CREDRRENAME_recv,
4587 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4588 _s3_compat_lsa_LookupSids3_send,
4589 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4590 _s3_compat_lsa_LookupSids3_recv,
4593 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4594 _s3_compat_lsa_LookupNames4_send,
4595 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4596 _s3_compat_lsa_LookupNames4_recv,
4599 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4600 _s3_compat_lsa_LSAROPENPOLICYSCE_send,
4601 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4602 _s3_compat_lsa_LSAROPENPOLICYSCE_recv,
4605 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4606 _s3_compat_lsa_LSARADTREGISTERSECURITYEVENTSOURCE_send,
4607 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4608 _s3_compat_lsa_LSARADTREGISTERSECURITYEVENTSOURCE_recv,
4611 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4612 _s3_compat_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE_send,
4613 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4614 _s3_compat_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE_recv,
4617 .send_fn = (dcerpc_call_entry_point_send_fn_t)
4618 _s3_compat_lsa_LSARADTREPORTSECURITYEVENT_send,
4619 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
4620 _s3_compat_lsa_LSARADTREPORTSECURITYEVENT_recv,
4628 static const struct dcerpc_call_entry_point_vector _s3_compat_lsarpc_epv[] = {
4630 .name = "_s3_compat_lsarpc",
4631 .table = &ndr_table_lsarpc,
4633 .fns = _s3_compat_lsarpc_fns,
4637 NTSTATUS dcerpc_server_setup_s3compat_lsarpc(struct dcerpc_server *server)
4639 return NT_STATUS_NOT_IMPLEMENTED;