2 Unix SMB/CIFS implementation.
4 endpoint server for the lsarpc pipe
6 Copyright (C) Andrew Tridgell 2004
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #include "librpc/gen_ndr/ndr_lsa.h"
25 #include "librpc/gen_ndr/ndr_samr.h"
26 #include "rpc_server/dcerpc_server.h"
27 #include "rpc_server/common/common.h"
28 #include "lib/ldb/include/ldb.h"
31 this type allows us to distinguish handle types
40 state associated with a lsa_OpenPolicy() operation
42 struct lsa_policy_state {
46 const char *domain_dn;
53 static void lsa_Policy_close(struct lsa_policy_state *state)
55 state->reference_count--;
56 if (state->reference_count == 0) {
62 destroy an open policy. This closes the database connection
64 static void lsa_Policy_destroy(struct dcesrv_connection *conn, struct dcesrv_handle *h)
66 struct lsa_policy_state *state = h->data;
67 lsa_Policy_close(state);
73 static NTSTATUS lsa_Close(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
76 struct dcesrv_handle *h;
78 *r->out.handle = *r->in.handle;
80 DCESRV_PULL_HANDLE(h, r->in.handle, DCESRV_HANDLE_ANY);
82 /* this causes the callback samr_XXX_destroy() to be called by
83 the handle destroy code which destroys the state associated
85 dcesrv_handle_destroy(dce_call->conn, h);
87 ZERO_STRUCTP(r->out.handle);
96 static NTSTATUS lsa_Delete(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
99 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
106 static NTSTATUS lsa_EnumPrivs(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
107 struct lsa_EnumPrivs *r)
109 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
116 static NTSTATUS lsa_QuerySecObj(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
117 struct lsa_QuerySecObj *r)
119 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
126 static NTSTATUS lsa_SetSecObj(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
127 struct lsa_SetSecObj *r)
129 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
136 static NTSTATUS lsa_ChangePassword(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
137 struct lsa_ChangePassword *r)
139 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
146 static NTSTATUS lsa_OpenPolicy2(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
147 struct lsa_OpenPolicy2 *r)
149 struct lsa_policy_state *state;
150 struct dcesrv_handle *handle;
152 ZERO_STRUCTP(r->out.handle);
154 state = talloc_p(dce_call->conn, struct lsa_policy_state);
156 return NT_STATUS_NO_MEMORY;
159 /* make sure the sam database is accessible */
160 state->sam_ctx = samdb_connect(state);
161 if (state->sam_ctx == NULL) {
163 return NT_STATUS_INVALID_SYSTEM_SERVICE;
166 /* work out the domain_dn - useful for so many calls its worth
168 state->domain_dn = samdb_search_string(state->sam_ctx, state, NULL,
169 "dn", "(&(objectClass=domain)(!(objectclass=builtinDomain)))");
170 if (!state->domain_dn) {
172 return NT_STATUS_NO_SUCH_DOMAIN;
175 handle = dcesrv_handle_new(dce_call->conn, LSA_HANDLE_POLICY);
178 return NT_STATUS_NO_MEMORY;
181 handle->data = state;
182 handle->destroy = lsa_Policy_destroy;
184 state->reference_count = 1;
185 state->access_mask = r->in.access_mask;
186 *r->out.handle = handle->wire_handle;
188 /* note that we have completely ignored the attr element of
189 the OpenPolicy. As far as I can tell, this is what w2k3
197 a wrapper around lsa_OpenPolicy2
199 static NTSTATUS lsa_OpenPolicy(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
200 struct lsa_OpenPolicy *r)
202 struct lsa_OpenPolicy2 r2;
204 r2.in.system_name = NULL;
205 r2.in.attr = r->in.attr;
206 r2.in.access_mask = r->in.access_mask;
207 r2.out.handle = r->out.handle;
209 return lsa_OpenPolicy2(dce_call, mem_ctx, &r2);
216 fill in the AccountDomain info
218 static NTSTATUS lsa_info_AccountDomain(struct lsa_policy_state *state, TALLOC_CTX *mem_ctx,
219 struct lsa_DomainInfo *info)
221 const char * const attrs[] = { "objectSid", "name", NULL};
223 struct ldb_message **res;
225 ret = samdb_search(state->sam_ctx, mem_ctx, NULL, &res, attrs,
226 "dn=%s", state->domain_dn);
228 return NT_STATUS_INTERNAL_DB_CORRUPTION;
231 info->name.name = samdb_result_string(res[0], "name", NULL);
232 info->sid = samdb_result_dom_sid(mem_ctx, res[0], "objectSid");
238 fill in the DNS domain info
240 static NTSTATUS lsa_info_DNS(struct lsa_policy_state *state, TALLOC_CTX *mem_ctx,
241 struct lsa_DnsDomainInfo *info)
243 const char * const attrs[] = { "name", "dnsDomain", "objectGUID", "objectSid", NULL };
245 struct ldb_message **res;
247 ret = samdb_search(state->sam_ctx, mem_ctx, NULL, &res, attrs,
248 "dn=%s", state->domain_dn);
250 return NT_STATUS_INTERNAL_DB_CORRUPTION;
253 info->name.name = samdb_result_string(res[0], "name", NULL);
254 info->dns_domain.name = samdb_result_string(res[0], "dnsDomain", NULL);
255 info->dns_forest.name = samdb_result_string(res[0], "dnsDomain", NULL);
256 info->domain_guid = samdb_result_guid(res[0], "objectGUID");
257 info->sid = samdb_result_dom_sid(mem_ctx, res[0], "objectSid");
265 static NTSTATUS lsa_QueryInfoPolicy2(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
266 struct lsa_QueryInfoPolicy2 *r)
268 struct lsa_policy_state *state;
269 struct dcesrv_handle *h;
273 DCESRV_PULL_HANDLE(h, r->in.handle, LSA_HANDLE_POLICY);
277 r->out.info = talloc_p(mem_ctx, union lsa_PolicyInformation);
279 return NT_STATUS_NO_MEMORY;
282 ZERO_STRUCTP(r->out.info);
284 switch (r->in.level) {
285 case LSA_POLICY_INFO_DOMAIN:
286 case LSA_POLICY_INFO_ACCOUNT_DOMAIN:
287 return lsa_info_AccountDomain(state, mem_ctx, &r->out.info->account_domain);
289 case LSA_POLICY_INFO_DNS:
290 return lsa_info_DNS(state, mem_ctx, &r->out.info->dns);
293 return NT_STATUS_INVALID_INFO_CLASS;
299 static NTSTATUS lsa_QueryInfoPolicy(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
300 struct lsa_QueryInfoPolicy *r)
302 struct lsa_QueryInfoPolicy2 r2;
305 r2.in.handle = r->in.handle;
306 r2.in.level = r->in.level;
308 status = lsa_QueryInfoPolicy2(dce_call, mem_ctx, &r2);
310 r->out.info = r2.out.info;
318 static NTSTATUS lsa_SetInfoPolicy(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
319 struct lsa_SetInfoPolicy *r)
321 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
328 static NTSTATUS lsa_ClearAuditLog(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
329 struct lsa_ClearAuditLog *r)
331 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
338 static NTSTATUS lsa_CreateAccount(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
339 struct lsa_CreateAccount *r)
341 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
348 static NTSTATUS lsa_EnumAccounts(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
349 struct lsa_EnumAccounts *r)
351 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
356 lsa_CreateTrustedDomain
358 static NTSTATUS lsa_CreateTrustedDomain(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
359 struct lsa_CreateTrustedDomain *r)
361 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
368 static NTSTATUS lsa_EnumTrustDom(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
369 struct lsa_EnumTrustDom *r)
371 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
378 static NTSTATUS lsa_LookupNames(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
379 struct lsa_LookupNames *r)
381 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
388 static NTSTATUS lsa_LookupSids(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
389 struct lsa_LookupSids *r)
391 struct lsa_policy_state *state;
392 struct dcesrv_handle *h;
394 NTSTATUS status = NT_STATUS_OK;
396 r->out.domains = NULL;
398 DCESRV_PULL_HANDLE(h, r->in.handle, LSA_HANDLE_POLICY);
402 r->out.domains = talloc_zero_p(mem_ctx, struct lsa_RefDomainList);
403 if (r->out.domains == NULL) {
404 return NT_STATUS_NO_MEMORY;
407 r->out.names = talloc_zero_p(mem_ctx, struct lsa_TransNameArray);
408 if (r->out.domains == NULL) {
409 return NT_STATUS_NO_MEMORY;
414 r->out.names->names = talloc_array_p(r->out.names, struct lsa_TranslatedName,
415 r->in.sids->num_sids);
416 if (r->out.names->names == NULL) {
417 return NT_STATUS_NO_MEMORY;
420 for (i=0;i<r->in.sids->num_sids;i++) {
421 const char * const attrs[] = { "sAMAccountName", "sAMAccountType", NULL};
422 struct dom_sid *sid = r->in.sids->sids[i].sid;
423 char *sid_str = dom_sid_string(mem_ctx, sid);
425 struct ldb_message **res;
426 const char *name, *authority_name;
427 struct dom_sid *authority_sid;
428 uint32_t atype, rtype;
430 const char *sid_prefix;
431 const char *authority_name;
432 } authority_names[] = {
433 { "S-1-5", "NT AUTHORITY" }
436 r->out.names->count++;
439 r->out.names->names[i].sid_type = SID_NAME_UNKNOWN;
440 r->out.names->names[i].name.name = sid_str;
441 r->out.names->names[i].sid_index = 0xFFFFFFFF;
443 if (sid_str == NULL) {
444 r->out.names->names[i].name.name = "(SIDERROR)";
445 status = STATUS_SOME_UNMAPPED;
449 /* work out the authority name */
450 authority_name = talloc_strndup(mem_ctx, sid_str, 5);
451 authority_sid = dom_sid_parse_talloc(mem_ctx, authority_name);
452 if (!authority_name || !authority_sid) {
453 return NT_STATUS_NO_MEMORY;
455 for (j=0;j<ARRAY_SIZE(authority_names);j++) {
456 if (strncmp(sid_str, authority_names[j].sid_prefix,
457 strlen(authority_names[j].sid_prefix)) == 0) {
458 authority_name = authority_names[j].authority_name;
463 /* see if we've already done this authority name */
464 for (j=0;j<r->out.domains->count;j++) {
465 if (strcmp(authority_name, r->out.domains->domains[j].name.name) == 0) {
469 if (j == r->out.domains->count) {
470 r->out.domains->domains = talloc_realloc_p(r->out.domains,
471 r->out.domains->domains,
472 struct lsa_TrustInformation,
473 r->out.domains->count+1);
474 if (r->out.domains == NULL) {
475 return NT_STATUS_NO_MEMORY;
477 r->out.domains->domains[j].name.name = authority_name;
478 r->out.domains->domains[j].sid = authority_sid;
479 r->out.domains->count++;
482 ret = samdb_search(state->sam_ctx, mem_ctx, NULL, &res, attrs, "objectSid=%s", sid_str);
484 status = STATUS_SOME_UNMAPPED;
488 name = ldb_msg_find_string(res[0], "sAMAccountName", NULL);
490 status = STATUS_SOME_UNMAPPED;
494 atype = samdb_result_uint(res[0], "sAMAccountType", 0);
496 status = STATUS_SOME_UNMAPPED;
500 rtype = samdb_atype_map(atype);
501 if (rtype == SID_NAME_UNKNOWN) {
502 status = STATUS_SOME_UNMAPPED;
506 r->out.names->names[i].sid_type = rtype;
507 r->out.names->names[i].name.name = name;
508 r->out.names->names[i].sid_index = 0;
518 static NTSTATUS lsa_CreateSecret(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
519 struct lsa_CreateSecret *r)
521 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
528 static NTSTATUS lsa_OpenAccount(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
529 struct lsa_OpenAccount *r)
531 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
538 static NTSTATUS lsa_EnumPrivsAccount(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
539 struct lsa_EnumPrivsAccount *r)
541 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
546 lsa_AddPrivilegesToAccount
548 static NTSTATUS lsa_AddPrivilegesToAccount(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
549 struct lsa_AddPrivilegesToAccount *r)
551 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
556 lsa_RemovePrivilegesFromAccount
558 static NTSTATUS lsa_RemovePrivilegesFromAccount(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
559 struct lsa_RemovePrivilegesFromAccount *r)
561 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
566 lsa_GetQuotasForAccount
568 static NTSTATUS lsa_GetQuotasForAccount(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
569 struct lsa_GetQuotasForAccount *r)
571 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
576 lsa_SetQuotasForAccount
578 static NTSTATUS lsa_SetQuotasForAccount(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
579 struct lsa_SetQuotasForAccount *r)
581 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
586 lsa_GetSystemAccessAccount
588 static NTSTATUS lsa_GetSystemAccessAccount(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
589 struct lsa_GetSystemAccessAccount *r)
591 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
596 lsa_SetSystemAccessAccount
598 static NTSTATUS lsa_SetSystemAccessAccount(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
599 struct lsa_SetSystemAccessAccount *r)
601 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
606 lsa_OpenTrustedDomain
608 static NTSTATUS lsa_OpenTrustedDomain(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
609 struct lsa_OpenTrustedDomain *r)
611 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
616 lsa_QueryInfoTrustedDomain
618 static NTSTATUS lsa_QueryInfoTrustedDomain(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
619 struct lsa_QueryInfoTrustedDomain *r)
621 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
626 lsa_SetInformationTrustedDomain
628 static NTSTATUS lsa_SetInformationTrustedDomain(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
629 struct lsa_SetInformationTrustedDomain *r)
631 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
638 static NTSTATUS lsa_OpenSecret(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
639 struct lsa_OpenSecret *r)
641 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
648 static NTSTATUS lsa_SetSecret(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
649 struct lsa_SetSecret *r)
651 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
658 static NTSTATUS lsa_QuerySecret(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
659 struct lsa_QuerySecret *r)
661 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
668 static NTSTATUS lsa_LookupPrivValue(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
669 struct lsa_LookupPrivValue *r)
671 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
678 static NTSTATUS lsa_LookupPrivName(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
679 struct lsa_LookupPrivName *r)
681 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
686 lsa_LookupPrivDisplayName
688 static NTSTATUS lsa_LookupPrivDisplayName(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
689 struct lsa_LookupPrivDisplayName *r)
691 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
698 static NTSTATUS lsa_DeleteObject(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
699 struct lsa_DeleteObject *r)
701 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
706 lsa_EnumAccountsWithUserRight
708 static NTSTATUS lsa_EnumAccountsWithUserRight(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
709 struct lsa_EnumAccountsWithUserRight *r)
711 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
716 lsa_EnumAccountRights
718 static NTSTATUS lsa_EnumAccountRights(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
719 struct lsa_EnumAccountRights *r)
721 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
728 static NTSTATUS lsa_AddAccountRights(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
729 struct lsa_AddAccountRights *r)
731 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
736 lsa_RemoveAccountRights
738 static NTSTATUS lsa_RemoveAccountRights(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
739 struct lsa_RemoveAccountRights *r)
741 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
746 lsa_QueryTrustDomainInfo
748 static NTSTATUS lsa_QueryTrustDomainInfo(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
749 struct lsa_QueryTrustDomainInfo *r)
751 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
756 lsa_SetTrustDomainInfo
758 static NTSTATUS lsa_SetTrustDomainInfo(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
759 struct lsa_SetTrustDomainInfo *r)
761 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
766 lsa_DeleteTrustDomain
768 static NTSTATUS lsa_DeleteTrustDomain(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
769 struct lsa_DeleteTrustDomain *r)
771 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
778 static NTSTATUS lsa_StorePrivateData(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
779 struct lsa_StorePrivateData *r)
781 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
786 lsa_RetrievePrivateData
788 static NTSTATUS lsa_RetrievePrivateData(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
789 struct lsa_RetrievePrivateData *r)
791 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
798 static NTSTATUS lsa_GetUserName(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
799 struct lsa_GetUserName *r)
801 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
807 static NTSTATUS lsa_SetInfoPolicy2(struct dcesrv_call_state *dce_call,
809 struct lsa_SetInfoPolicy2 *r)
811 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
815 lsa_QueryTrustedDomainInfoByName
817 static NTSTATUS lsa_QueryTrustedDomainInfoByName(struct dcesrv_call_state *dce_call,
819 struct lsa_QueryTrustedDomainInfoByName *r)
821 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
825 lsa_SetTrustedDomainInfoByName
827 static NTSTATUS lsa_SetTrustedDomainInfoByName(struct dcesrv_call_state *dce_call,
829 struct lsa_SetTrustedDomainInfoByName *r)
831 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
835 lsa_EnumTrustedDomainsEx
837 static NTSTATUS lsa_EnumTrustedDomainsEx(struct dcesrv_call_state *dce_call,
839 struct lsa_EnumTrustedDomainsEx *r)
841 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
845 lsa_CreateTrustedDomainEx
847 static NTSTATUS lsa_CreateTrustedDomainEx(struct dcesrv_call_state *dce_call,
849 struct lsa_CreateTrustedDomainEx *r)
851 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
855 lsa_CloseTrustedDomainEx
857 static NTSTATUS lsa_CloseTrustedDomainEx(struct dcesrv_call_state *dce_call,
859 struct lsa_CloseTrustedDomainEx *r)
861 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
865 lsa_QueryDomainInformationPolicy
867 static NTSTATUS lsa_QueryDomainInformationPolicy(struct dcesrv_call_state *dce_call,
869 struct lsa_QueryDomainInformationPolicy *r)
871 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
877 static NTSTATUS lsa_SetDomInfoPolicy(struct dcesrv_call_state *dce_call,
879 struct lsa_SetDomInfoPolicy *r)
881 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
885 lsa_OpenTrustedDomainByName
887 static NTSTATUS lsa_OpenTrustedDomainByName(struct dcesrv_call_state *dce_call,
889 struct lsa_OpenTrustedDomainByName *r)
891 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
897 static NTSTATUS lsa_TestCall(struct dcesrv_call_state *dce_call,
899 struct lsa_TestCall *r)
901 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
907 static NTSTATUS lsa_LookupSids2(struct dcesrv_call_state *dce_call,
909 struct lsa_LookupSids2 *r)
911 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
917 static NTSTATUS lsa_LookupNames2(struct dcesrv_call_state *dce_call,
919 struct lsa_LookupNames2 *r)
921 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
925 lsa_CreateTrustedDomainEx2
927 static NTSTATUS lsa_CreateTrustedDomainEx2(struct dcesrv_call_state *dce_call,
929 struct lsa_CreateTrustedDomainEx2 *r)
931 DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
934 /* include the generated boilerplate */
935 #include "librpc/gen_ndr/ndr_lsa_s.c"