LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_lsa_scompat.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 567 2404 23.6 %
Date: 2024-04-21 15:09:00 Functions: 10 13 76.9 %

          Line data    Source code
       1             : /* s3 compat server functions auto-generated by pidl */
       2             : #include "bin/default/librpc/gen_ndr/ndr_lsa.h"
       3             : #include "bin/default/librpc/gen_ndr/ndr_lsa_scompat.h"
       4             : #include <librpc/rpc/dcesrv_core.h>
       5             : #include <rpc_server/rpc_config.h>
       6             : #include <rpc_server/rpc_server.h>
       7             : #include <util/debug.h>
       8             : 
       9             : enum s3compat_rpc_dispatch {
      10             :         S3COMPAT_RPC_DISPATCH_EXTERNAL = 0x00000001,
      11             :         S3COMPAT_RPC_DISPATCH_INTERNAL = 0x00000002,
      12             : };
      13             : 
      14             : /* lsarpc - dcerpc server boilerplate generated by pidl */
      15        2794 : static NTSTATUS lsarpc__op_bind(struct dcesrv_connection_context *context, const struct dcesrv_interface *iface)
      16             : {
      17             : #ifdef DCESRV_INTERFACE_LSARPC_BIND
      18        2794 :         return DCESRV_INTERFACE_LSARPC_BIND(context,iface);
      19             : #else
      20             :         return NT_STATUS_OK;
      21             : #endif
      22             : }
      23             : 
      24        2793 : static void lsarpc__op_unbind(struct dcesrv_connection_context *context, const struct dcesrv_interface *iface)
      25             : {
      26             : #ifdef DCESRV_INTERFACE_LSARPC_UNBIND
      27             :         DCESRV_INTERFACE_LSARPC_UNBIND(context, iface);
      28             : #else
      29        2793 :         return;
      30             : #endif
      31             : }
      32             : 
      33       11310 : NTSTATUS lsarpc__op_ndr_pull(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_pull *pull, void **r)
      34             : {
      35           0 :         enum ndr_err_code ndr_err;
      36       11310 :         uint16_t opnum = dce_call->pkt.u.request.opnum;
      37             : 
      38       11310 :         dce_call->fault_code = 0;
      39             : 
      40       11310 :         if (opnum >= ndr_table_lsarpc.num_calls) {
      41           0 :                 dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR;
      42           0 :                 return NT_STATUS_NET_WRITE_FAULT;
      43             :         }
      44             : 
      45       11310 :         *r = talloc_named(mem_ctx, ndr_table_lsarpc.calls[opnum].struct_size, "struct %s", ndr_table_lsarpc.calls[opnum].name);
      46       11310 :         NT_STATUS_HAVE_NO_MEMORY(*r);
      47             : 
      48             :         /* unravel the NDR for the packet */
      49       11310 :         ndr_err = ndr_table_lsarpc.calls[opnum].ndr_pull(pull, NDR_IN, *r);
      50       11310 :         if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
      51           0 :                 dce_call->fault_code = DCERPC_FAULT_NDR;
      52           0 :                 return NT_STATUS_NET_WRITE_FAULT;
      53             :         }
      54             : 
      55       11310 :         return NT_STATUS_OK;
      56             : }
      57             : 
      58       11310 : static NTSTATUS lsarpc__op_dispatch_internal(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r, enum s3compat_rpc_dispatch dispatch)
      59             : {
      60       11310 :         uint16_t opnum = dce_call->pkt.u.request.opnum;
      61       11310 :         struct pipes_struct *p = NULL;
      62       11310 :         NTSTATUS status = NT_STATUS_OK;
      63       11310 :         bool impersonated = false;
      64             : 
      65             :         /* Retrieve pipes struct */
      66       11310 :         p = dcesrv_get_pipes_struct(dce_call->conn);
      67       11310 :         p->dce_call = dce_call;
      68       11310 :         p->mem_ctx = mem_ctx;
      69             :         /* Reset pipes struct fault state */
      70       11310 :         p->fault_state = 0;
      71             : 
      72             :         /* Impersonate */
      73       11310 :         if (dispatch == S3COMPAT_RPC_DISPATCH_EXTERNAL) {
      74       11310 :                 impersonated = become_authenticated_pipe_user(dce_call->auth_state->session_info);
      75       11310 :                 if (!impersonated) {
      76           0 :                         dce_call->fault_code = DCERPC_FAULT_ACCESS_DENIED;
      77           0 :                         status = NT_STATUS_NET_WRITE_FAULT;
      78           0 :                         goto fail;
      79             :                 }
      80             :         }
      81             : 
      82       11310 :         switch (opnum) {
      83         978 :         case 0: { /* lsa_Close */
      84         978 :                 struct lsa_Close *r2 = (struct lsa_Close *)r;
      85         978 :                 if (DEBUGLEVEL >= 10) {
      86           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Close, NDR_IN, r2);
      87             :                 }
      88         978 :                 NDR_ZERO_STRUCT(r2->out);
      89         978 :                 r2->out.handle = r2->in.handle;
      90         978 :                 r2->out.result = _lsa_Close(p, r2);
      91         978 :                 break;
      92             :         }
      93           8 :         case 1: { /* lsa_Delete */
      94           8 :                 struct lsa_Delete *r2 = (struct lsa_Delete *)r;
      95           8 :                 if (DEBUGLEVEL >= 10) {
      96           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Delete, NDR_IN, r2);
      97             :                 }
      98           8 :                 r2->out.result = _lsa_Delete(p, r2);
      99           8 :                 break;
     100             :         }
     101           2 :         case 2: { /* lsa_EnumPrivs */
     102           2 :                 struct lsa_EnumPrivs *r2 = (struct lsa_EnumPrivs *)r;
     103           2 :                 if (DEBUGLEVEL >= 10) {
     104           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumPrivs, NDR_IN, r2);
     105             :                 }
     106           2 :                 NDR_ZERO_STRUCT(r2->out);
     107           2 :                 r2->out.resume_handle = r2->in.resume_handle;
     108           2 :                 r2->out.privs = talloc_zero(r2, struct lsa_PrivArray);
     109           2 :                 if (r2->out.privs == NULL) {
     110           0 :                         status = NT_STATUS_NO_MEMORY;
     111           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     112           0 :                         goto fail;
     113             :                 }
     114             : 
     115           2 :                 r2->out.result = _lsa_EnumPrivs(p, r2);
     116           2 :                 break;
     117             :         }
     118          12 :         case 3: { /* lsa_QuerySecurity */
     119          12 :                 struct lsa_QuerySecurity *r2 = (struct lsa_QuerySecurity *)r;
     120          12 :                 if (DEBUGLEVEL >= 10) {
     121           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QuerySecurity, NDR_IN, r2);
     122             :                 }
     123          12 :                 NDR_ZERO_STRUCT(r2->out);
     124          12 :                 r2->out.sdbuf = talloc_zero(r2, struct sec_desc_buf *);
     125          12 :                 if (r2->out.sdbuf == NULL) {
     126           0 :                         status = NT_STATUS_NO_MEMORY;
     127           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     128           0 :                         goto fail;
     129             :                 }
     130             : 
     131          12 :                 r2->out.result = _lsa_QuerySecurity(p, r2);
     132          12 :                 break;
     133             :         }
     134           0 :         case 4: { /* lsa_SetSecObj */
     135           0 :                 struct lsa_SetSecObj *r2 = (struct lsa_SetSecObj *)r;
     136           0 :                 if (DEBUGLEVEL >= 10) {
     137           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetSecObj, NDR_IN, r2);
     138             :                 }
     139           0 :                 r2->out.result = _lsa_SetSecObj(p, r2);
     140           0 :                 break;
     141             :         }
     142           0 :         case 5: { /* lsa_ChangePassword */
     143           0 :                 struct lsa_ChangePassword *r2 = (struct lsa_ChangePassword *)r;
     144           0 :                 if (DEBUGLEVEL >= 10) {
     145           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_ChangePassword, NDR_IN, r2);
     146             :                 }
     147           0 :                 r2->out.result = _lsa_ChangePassword(p, r2);
     148           0 :                 break;
     149             :         }
     150        1550 :         case 6: { /* lsa_OpenPolicy */
     151        1550 :                 struct lsa_OpenPolicy *r2 = (struct lsa_OpenPolicy *)r;
     152        1550 :                 if (DEBUGLEVEL >= 10) {
     153           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenPolicy, NDR_IN, r2);
     154             :                 }
     155        1550 :                 NDR_ZERO_STRUCT(r2->out);
     156        1550 :                 r2->out.handle = talloc_zero(r2, struct policy_handle);
     157        1550 :                 if (r2->out.handle == NULL) {
     158           0 :                         status = NT_STATUS_NO_MEMORY;
     159           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     160           0 :                         goto fail;
     161             :                 }
     162             : 
     163        1550 :                 r2->out.result = _lsa_OpenPolicy(p, r2);
     164        1550 :                 break;
     165             :         }
     166         858 :         case 7: { /* lsa_QueryInfoPolicy */
     167         858 :                 struct lsa_QueryInfoPolicy *r2 = (struct lsa_QueryInfoPolicy *)r;
     168         858 :                 if (DEBUGLEVEL >= 10) {
     169           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QueryInfoPolicy, NDR_IN, r2);
     170             :                 }
     171         858 :                 NDR_ZERO_STRUCT(r2->out);
     172         858 :                 r2->out.info = talloc_zero(r2, union lsa_PolicyInformation *);
     173         858 :                 if (r2->out.info == NULL) {
     174           0 :                         status = NT_STATUS_NO_MEMORY;
     175           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     176           0 :                         goto fail;
     177             :                 }
     178             : 
     179         858 :                 r2->out.result = _lsa_QueryInfoPolicy(p, r2);
     180         858 :                 break;
     181             :         }
     182           0 :         case 8: { /* lsa_SetInfoPolicy */
     183           0 :                 struct lsa_SetInfoPolicy *r2 = (struct lsa_SetInfoPolicy *)r;
     184           0 :                 if (DEBUGLEVEL >= 10) {
     185           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetInfoPolicy, NDR_IN, r2);
     186             :                 }
     187           0 :                 r2->out.result = _lsa_SetInfoPolicy(p, r2);
     188           0 :                 break;
     189             :         }
     190           0 :         case 9: { /* lsa_ClearAuditLog */
     191           0 :                 struct lsa_ClearAuditLog *r2 = (struct lsa_ClearAuditLog *)r;
     192           0 :                 if (DEBUGLEVEL >= 10) {
     193           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_ClearAuditLog, NDR_IN, r2);
     194             :                 }
     195           0 :                 r2->out.result = _lsa_ClearAuditLog(p, r2);
     196           0 :                 break;
     197             :         }
     198           2 :         case 10: { /* lsa_CreateAccount */
     199           2 :                 struct lsa_CreateAccount *r2 = (struct lsa_CreateAccount *)r;
     200           2 :                 if (DEBUGLEVEL >= 10) {
     201           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CreateAccount, NDR_IN, r2);
     202             :                 }
     203           2 :                 NDR_ZERO_STRUCT(r2->out);
     204           2 :                 r2->out.acct_handle = talloc_zero(r2, struct policy_handle);
     205           2 :                 if (r2->out.acct_handle == NULL) {
     206           0 :                         status = NT_STATUS_NO_MEMORY;
     207           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     208           0 :                         goto fail;
     209             :                 }
     210             : 
     211           2 :                 r2->out.result = _lsa_CreateAccount(p, r2);
     212           2 :                 break;
     213             :         }
     214          10 :         case 11: { /* lsa_EnumAccounts */
     215          10 :                 struct lsa_EnumAccounts *r2 = (struct lsa_EnumAccounts *)r;
     216          10 :                 if (DEBUGLEVEL >= 10) {
     217           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumAccounts, NDR_IN, r2);
     218             :                 }
     219          10 :                 NDR_ZERO_STRUCT(r2->out);
     220          10 :                 r2->out.resume_handle = r2->in.resume_handle;
     221          10 :                 r2->out.sids = talloc_zero(r2, struct lsa_SidArray);
     222          10 :                 if (r2->out.sids == NULL) {
     223           0 :                         status = NT_STATUS_NO_MEMORY;
     224           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     225           0 :                         goto fail;
     226             :                 }
     227             : 
     228          10 :                 r2->out.result = _lsa_EnumAccounts(p, r2);
     229          10 :                 break;
     230             :         }
     231           0 :         case 12: { /* lsa_CreateTrustedDomain */
     232           0 :                 struct lsa_CreateTrustedDomain *r2 = (struct lsa_CreateTrustedDomain *)r;
     233           0 :                 if (DEBUGLEVEL >= 10) {
     234           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomain, NDR_IN, r2);
     235             :                 }
     236           0 :                 NDR_ZERO_STRUCT(r2->out);
     237           0 :                 r2->out.trustdom_handle = talloc_zero(r2, struct policy_handle);
     238           0 :                 if (r2->out.trustdom_handle == NULL) {
     239           0 :                         status = NT_STATUS_NO_MEMORY;
     240           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     241           0 :                         goto fail;
     242             :                 }
     243             : 
     244           0 :                 r2->out.result = _lsa_CreateTrustedDomain(p, r2);
     245           0 :                 break;
     246             :         }
     247           0 :         case 13: { /* lsa_EnumTrustDom */
     248           0 :                 struct lsa_EnumTrustDom *r2 = (struct lsa_EnumTrustDom *)r;
     249           0 :                 if (DEBUGLEVEL >= 10) {
     250           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumTrustDom, NDR_IN, r2);
     251             :                 }
     252           0 :                 NDR_ZERO_STRUCT(r2->out);
     253           0 :                 r2->out.resume_handle = r2->in.resume_handle;
     254           0 :                 r2->out.domains = talloc_zero(r2, struct lsa_DomainList);
     255           0 :                 if (r2->out.domains == NULL) {
     256           0 :                         status = NT_STATUS_NO_MEMORY;
     257           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     258           0 :                         goto fail;
     259             :                 }
     260             : 
     261           0 :                 r2->out.result = _lsa_EnumTrustDom(p, r2);
     262           0 :                 break;
     263             :         }
     264         318 :         case 14: { /* lsa_LookupNames */
     265         318 :                 struct lsa_LookupNames *r2 = (struct lsa_LookupNames *)r;
     266         318 :                 if (DEBUGLEVEL >= 10) {
     267           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames, NDR_IN, r2);
     268             :                 }
     269         318 :                 NDR_ZERO_STRUCT(r2->out);
     270         318 :                 r2->out.sids = r2->in.sids;
     271         318 :                 r2->out.count = r2->in.count;
     272         318 :                 r2->out.domains = talloc_zero(r2, struct lsa_RefDomainList *);
     273         318 :                 if (r2->out.domains == NULL) {
     274           0 :                         status = NT_STATUS_NO_MEMORY;
     275           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     276           0 :                         goto fail;
     277             :                 }
     278             : 
     279         318 :                 r2->out.result = _lsa_LookupNames(p, r2);
     280         318 :                 break;
     281             :         }
     282        3114 :         case 15: { /* lsa_LookupSids */
     283        3114 :                 struct lsa_LookupSids *r2 = (struct lsa_LookupSids *)r;
     284        3114 :                 if (DEBUGLEVEL >= 10) {
     285           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupSids, NDR_IN, r2);
     286             :                 }
     287        3114 :                 NDR_ZERO_STRUCT(r2->out);
     288        3114 :                 r2->out.names = r2->in.names;
     289        3114 :                 r2->out.count = r2->in.count;
     290        3114 :                 r2->out.domains = talloc_zero(r2, struct lsa_RefDomainList *);
     291        3114 :                 if (r2->out.domains == NULL) {
     292           0 :                         status = NT_STATUS_NO_MEMORY;
     293           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     294           0 :                         goto fail;
     295             :                 }
     296             : 
     297        3114 :                 r2->out.result = _lsa_LookupSids(p, r2);
     298        3114 :                 break;
     299             :         }
     300         632 :         case 16: { /* lsa_CreateSecret */
     301         632 :                 struct lsa_CreateSecret *r2 = (struct lsa_CreateSecret *)r;
     302         632 :                 if (DEBUGLEVEL >= 10) {
     303           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CreateSecret, NDR_IN, r2);
     304             :                 }
     305         632 :                 NDR_ZERO_STRUCT(r2->out);
     306         632 :                 r2->out.sec_handle = talloc_zero(r2, struct policy_handle);
     307         632 :                 if (r2->out.sec_handle == NULL) {
     308           0 :                         status = NT_STATUS_NO_MEMORY;
     309           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     310           0 :                         goto fail;
     311             :                 }
     312             : 
     313         632 :                 r2->out.result = _lsa_CreateSecret(p, r2);
     314         632 :                 break;
     315             :         }
     316          16 :         case 17: { /* lsa_OpenAccount */
     317          16 :                 struct lsa_OpenAccount *r2 = (struct lsa_OpenAccount *)r;
     318          16 :                 if (DEBUGLEVEL >= 10) {
     319           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenAccount, NDR_IN, r2);
     320             :                 }
     321          16 :                 NDR_ZERO_STRUCT(r2->out);
     322          16 :                 r2->out.acct_handle = talloc_zero(r2, struct policy_handle);
     323          16 :                 if (r2->out.acct_handle == NULL) {
     324           0 :                         status = NT_STATUS_NO_MEMORY;
     325           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     326           0 :                         goto fail;
     327             :                 }
     328             : 
     329          16 :                 r2->out.result = _lsa_OpenAccount(p, r2);
     330          16 :                 break;
     331             :         }
     332          12 :         case 18: { /* lsa_EnumPrivsAccount */
     333          12 :                 struct lsa_EnumPrivsAccount *r2 = (struct lsa_EnumPrivsAccount *)r;
     334          12 :                 if (DEBUGLEVEL >= 10) {
     335           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumPrivsAccount, NDR_IN, r2);
     336             :                 }
     337          12 :                 NDR_ZERO_STRUCT(r2->out);
     338          12 :                 r2->out.privs = talloc_zero(r2, struct lsa_PrivilegeSet *);
     339          12 :                 if (r2->out.privs == NULL) {
     340           0 :                         status = NT_STATUS_NO_MEMORY;
     341           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     342           0 :                         goto fail;
     343             :                 }
     344             : 
     345          12 :                 r2->out.result = _lsa_EnumPrivsAccount(p, r2);
     346          12 :                 break;
     347             :         }
     348           2 :         case 19: { /* lsa_AddPrivilegesToAccount */
     349           2 :                 struct lsa_AddPrivilegesToAccount *r2 = (struct lsa_AddPrivilegesToAccount *)r;
     350           2 :                 if (DEBUGLEVEL >= 10) {
     351           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_AddPrivilegesToAccount, NDR_IN, r2);
     352             :                 }
     353           2 :                 r2->out.result = _lsa_AddPrivilegesToAccount(p, r2);
     354           2 :                 break;
     355             :         }
     356           2 :         case 20: { /* lsa_RemovePrivilegesFromAccount */
     357           2 :                 struct lsa_RemovePrivilegesFromAccount *r2 = (struct lsa_RemovePrivilegesFromAccount *)r;
     358           2 :                 if (DEBUGLEVEL >= 10) {
     359           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_RemovePrivilegesFromAccount, NDR_IN, r2);
     360             :                 }
     361           2 :                 r2->out.result = _lsa_RemovePrivilegesFromAccount(p, r2);
     362           2 :                 break;
     363             :         }
     364           0 :         case 21: { /* lsa_GetQuotasForAccount */
     365           0 :                 struct lsa_GetQuotasForAccount *r2 = (struct lsa_GetQuotasForAccount *)r;
     366           0 :                 if (DEBUGLEVEL >= 10) {
     367           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_GetQuotasForAccount, NDR_IN, r2);
     368             :                 }
     369           0 :                 r2->out.result = _lsa_GetQuotasForAccount(p, r2);
     370           0 :                 break;
     371             :         }
     372           0 :         case 22: { /* lsa_SetQuotasForAccount */
     373           0 :                 struct lsa_SetQuotasForAccount *r2 = (struct lsa_SetQuotasForAccount *)r;
     374           0 :                 if (DEBUGLEVEL >= 10) {
     375           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetQuotasForAccount, NDR_IN, r2);
     376             :                 }
     377           0 :                 r2->out.result = _lsa_SetQuotasForAccount(p, r2);
     378           0 :                 break;
     379             :         }
     380          16 :         case 23: { /* lsa_GetSystemAccessAccount */
     381          16 :                 struct lsa_GetSystemAccessAccount *r2 = (struct lsa_GetSystemAccessAccount *)r;
     382          16 :                 if (DEBUGLEVEL >= 10) {
     383           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_GetSystemAccessAccount, NDR_IN, r2);
     384             :                 }
     385          16 :                 NDR_ZERO_STRUCT(r2->out);
     386          16 :                 r2->out.access_mask = talloc_zero(r2, uint32_t);
     387          16 :                 if (r2->out.access_mask == NULL) {
     388           0 :                         status = NT_STATUS_NO_MEMORY;
     389           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     390           0 :                         goto fail;
     391             :                 }
     392             : 
     393          16 :                 r2->out.result = _lsa_GetSystemAccessAccount(p, r2);
     394          16 :                 break;
     395             :         }
     396           0 :         case 24: { /* lsa_SetSystemAccessAccount */
     397           0 :                 struct lsa_SetSystemAccessAccount *r2 = (struct lsa_SetSystemAccessAccount *)r;
     398           0 :                 if (DEBUGLEVEL >= 10) {
     399           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetSystemAccessAccount, NDR_IN, r2);
     400             :                 }
     401           0 :                 r2->out.result = _lsa_SetSystemAccessAccount(p, r2);
     402           0 :                 break;
     403             :         }
     404           0 :         case 25: { /* lsa_OpenTrustedDomain */
     405           0 :                 struct lsa_OpenTrustedDomain *r2 = (struct lsa_OpenTrustedDomain *)r;
     406           0 :                 if (DEBUGLEVEL >= 10) {
     407           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenTrustedDomain, NDR_IN, r2);
     408             :                 }
     409           0 :                 NDR_ZERO_STRUCT(r2->out);
     410           0 :                 r2->out.trustdom_handle = talloc_zero(r2, struct policy_handle);
     411           0 :                 if (r2->out.trustdom_handle == NULL) {
     412           0 :                         status = NT_STATUS_NO_MEMORY;
     413           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     414           0 :                         goto fail;
     415             :                 }
     416             : 
     417           0 :                 r2->out.result = _lsa_OpenTrustedDomain(p, r2);
     418           0 :                 break;
     419             :         }
     420           0 :         case 26: { /* lsa_QueryTrustedDomainInfo */
     421           0 :                 struct lsa_QueryTrustedDomainInfo *r2 = (struct lsa_QueryTrustedDomainInfo *)r;
     422           0 :                 if (DEBUGLEVEL >= 10) {
     423           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QueryTrustedDomainInfo, NDR_IN, r2);
     424             :                 }
     425           0 :                 NDR_ZERO_STRUCT(r2->out);
     426           0 :                 r2->out.info = talloc_zero(r2, union lsa_TrustedDomainInfo *);
     427           0 :                 if (r2->out.info == NULL) {
     428           0 :                         status = NT_STATUS_NO_MEMORY;
     429           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     430           0 :                         goto fail;
     431             :                 }
     432             : 
     433           0 :                 r2->out.result = _lsa_QueryTrustedDomainInfo(p, r2);
     434           0 :                 break;
     435             :         }
     436           0 :         case 27: { /* lsa_SetInformationTrustedDomain */
     437           0 :                 struct lsa_SetInformationTrustedDomain *r2 = (struct lsa_SetInformationTrustedDomain *)r;
     438           0 :                 if (DEBUGLEVEL >= 10) {
     439           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetInformationTrustedDomain, NDR_IN, r2);
     440             :                 }
     441           0 :                 r2->out.result = _lsa_SetInformationTrustedDomain(p, r2);
     442           0 :                 break;
     443             :         }
     444           8 :         case 28: { /* lsa_OpenSecret */
     445           8 :                 struct lsa_OpenSecret *r2 = (struct lsa_OpenSecret *)r;
     446           8 :                 if (DEBUGLEVEL >= 10) {
     447           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenSecret, NDR_IN, r2);
     448             :                 }
     449           8 :                 NDR_ZERO_STRUCT(r2->out);
     450           8 :                 r2->out.sec_handle = talloc_zero(r2, struct policy_handle);
     451           8 :                 if (r2->out.sec_handle == NULL) {
     452           0 :                         status = NT_STATUS_NO_MEMORY;
     453           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     454           0 :                         goto fail;
     455             :                 }
     456             : 
     457           8 :                 r2->out.result = _lsa_OpenSecret(p, r2);
     458           8 :                 break;
     459             :         }
     460         848 :         case 29: { /* lsa_SetSecret */
     461         848 :                 struct lsa_SetSecret *r2 = (struct lsa_SetSecret *)r;
     462         848 :                 if (DEBUGLEVEL >= 10) {
     463           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetSecret, NDR_IN, r2);
     464             :                 }
     465         848 :                 r2->out.result = _lsa_SetSecret(p, r2);
     466         848 :                 break;
     467             :         }
     468         428 :         case 30: { /* lsa_QuerySecret */
     469         428 :                 struct lsa_QuerySecret *r2 = (struct lsa_QuerySecret *)r;
     470         428 :                 if (DEBUGLEVEL >= 10) {
     471           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QuerySecret, NDR_IN, r2);
     472             :                 }
     473         428 :                 NDR_ZERO_STRUCT(r2->out);
     474         428 :                 r2->out.new_val = r2->in.new_val;
     475         428 :                 r2->out.new_mtime = r2->in.new_mtime;
     476         428 :                 r2->out.old_val = r2->in.old_val;
     477         428 :                 r2->out.old_mtime = r2->in.old_mtime;
     478         428 :                 r2->out.result = _lsa_QuerySecret(p, r2);
     479         428 :                 break;
     480             :         }
     481          20 :         case 31: { /* lsa_LookupPrivValue */
     482          20 :                 struct lsa_LookupPrivValue *r2 = (struct lsa_LookupPrivValue *)r;
     483          20 :                 if (DEBUGLEVEL >= 10) {
     484           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupPrivValue, NDR_IN, r2);
     485             :                 }
     486          20 :                 NDR_ZERO_STRUCT(r2->out);
     487          20 :                 r2->out.luid = talloc_zero(r2, struct lsa_LUID);
     488          20 :                 if (r2->out.luid == NULL) {
     489           0 :                         status = NT_STATUS_NO_MEMORY;
     490           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     491           0 :                         goto fail;
     492             :                 }
     493             : 
     494          20 :                 r2->out.result = _lsa_LookupPrivValue(p, r2);
     495          20 :                 break;
     496             :         }
     497          50 :         case 32: { /* lsa_LookupPrivName */
     498          50 :                 struct lsa_LookupPrivName *r2 = (struct lsa_LookupPrivName *)r;
     499          50 :                 if (DEBUGLEVEL >= 10) {
     500           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupPrivName, NDR_IN, r2);
     501             :                 }
     502          50 :                 NDR_ZERO_STRUCT(r2->out);
     503          50 :                 r2->out.name = talloc_zero(r2, struct lsa_StringLarge *);
     504          50 :                 if (r2->out.name == NULL) {
     505           0 :                         status = NT_STATUS_NO_MEMORY;
     506           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     507           0 :                         goto fail;
     508             :                 }
     509             : 
     510          50 :                 r2->out.result = _lsa_LookupPrivName(p, r2);
     511          50 :                 break;
     512             :         }
     513          18 :         case 33: { /* lsa_LookupPrivDisplayName */
     514          18 :                 struct lsa_LookupPrivDisplayName *r2 = (struct lsa_LookupPrivDisplayName *)r;
     515          18 :                 if (DEBUGLEVEL >= 10) {
     516           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupPrivDisplayName, NDR_IN, r2);
     517             :                 }
     518          18 :                 NDR_ZERO_STRUCT(r2->out);
     519          18 :                 r2->out.disp_name = talloc_zero(r2, struct lsa_StringLarge *);
     520          18 :                 if (r2->out.disp_name == NULL) {
     521           0 :                         status = NT_STATUS_NO_MEMORY;
     522           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     523           0 :                         goto fail;
     524             :                 }
     525             : 
     526          18 :                 r2->out.returned_language_id = talloc_zero(r2, uint16_t);
     527          18 :                 if (r2->out.returned_language_id == NULL) {
     528           0 :                         status = NT_STATUS_NO_MEMORY;
     529           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     530           0 :                         goto fail;
     531             :                 }
     532             : 
     533          18 :                 r2->out.result = _lsa_LookupPrivDisplayName(p, r2);
     534          18 :                 break;
     535             :         }
     536         636 :         case 34: { /* lsa_DeleteObject */
     537         636 :                 struct lsa_DeleteObject *r2 = (struct lsa_DeleteObject *)r;
     538         636 :                 if (DEBUGLEVEL >= 10) {
     539           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_DeleteObject, NDR_IN, r2);
     540             :                 }
     541         636 :                 NDR_ZERO_STRUCT(r2->out);
     542         636 :                 r2->out.handle = r2->in.handle;
     543         636 :                 r2->out.result = _lsa_DeleteObject(p, r2);
     544         636 :                 break;
     545             :         }
     546          18 :         case 35: { /* lsa_EnumAccountsWithUserRight */
     547          18 :                 struct lsa_EnumAccountsWithUserRight *r2 = (struct lsa_EnumAccountsWithUserRight *)r;
     548          18 :                 if (DEBUGLEVEL >= 10) {
     549           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumAccountsWithUserRight, NDR_IN, r2);
     550             :                 }
     551          18 :                 NDR_ZERO_STRUCT(r2->out);
     552          18 :                 r2->out.sids = talloc_zero(r2, struct lsa_SidArray);
     553          18 :                 if (r2->out.sids == NULL) {
     554           0 :                         status = NT_STATUS_NO_MEMORY;
     555           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     556           0 :                         goto fail;
     557             :                 }
     558             : 
     559          18 :                 r2->out.result = _lsa_EnumAccountsWithUserRight(p, r2);
     560          18 :                 break;
     561             :         }
     562         116 :         case 36: { /* lsa_EnumAccountRights */
     563         116 :                 struct lsa_EnumAccountRights *r2 = (struct lsa_EnumAccountRights *)r;
     564         116 :                 if (DEBUGLEVEL >= 10) {
     565           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumAccountRights, NDR_IN, r2);
     566             :                 }
     567         116 :                 NDR_ZERO_STRUCT(r2->out);
     568         116 :                 r2->out.rights = talloc_zero(r2, struct lsa_RightSet);
     569         116 :                 if (r2->out.rights == NULL) {
     570           0 :                         status = NT_STATUS_NO_MEMORY;
     571           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     572           0 :                         goto fail;
     573             :                 }
     574             : 
     575         116 :                 r2->out.result = _lsa_EnumAccountRights(p, r2);
     576         116 :                 break;
     577             :         }
     578          26 :         case 37: { /* lsa_AddAccountRights */
     579          26 :                 struct lsa_AddAccountRights *r2 = (struct lsa_AddAccountRights *)r;
     580          26 :                 if (DEBUGLEVEL >= 10) {
     581           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_AddAccountRights, NDR_IN, r2);
     582             :                 }
     583          26 :                 r2->out.result = _lsa_AddAccountRights(p, r2);
     584          26 :                 break;
     585             :         }
     586          20 :         case 38: { /* lsa_RemoveAccountRights */
     587          20 :                 struct lsa_RemoveAccountRights *r2 = (struct lsa_RemoveAccountRights *)r;
     588          20 :                 if (DEBUGLEVEL >= 10) {
     589           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_RemoveAccountRights, NDR_IN, r2);
     590             :                 }
     591          20 :                 r2->out.result = _lsa_RemoveAccountRights(p, r2);
     592          20 :                 break;
     593             :         }
     594           0 :         case 39: { /* lsa_QueryTrustedDomainInfoBySid */
     595           0 :                 struct lsa_QueryTrustedDomainInfoBySid *r2 = (struct lsa_QueryTrustedDomainInfoBySid *)r;
     596           0 :                 if (DEBUGLEVEL >= 10) {
     597           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QueryTrustedDomainInfoBySid, NDR_IN, r2);
     598             :                 }
     599           0 :                 NDR_ZERO_STRUCT(r2->out);
     600           0 :                 r2->out.info = talloc_zero(r2, union lsa_TrustedDomainInfo *);
     601           0 :                 if (r2->out.info == NULL) {
     602           0 :                         status = NT_STATUS_NO_MEMORY;
     603           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     604           0 :                         goto fail;
     605             :                 }
     606             : 
     607           0 :                 r2->out.result = _lsa_QueryTrustedDomainInfoBySid(p, r2);
     608           0 :                 break;
     609             :         }
     610           0 :         case 40: { /* lsa_SetTrustedDomainInfo */
     611           0 :                 struct lsa_SetTrustedDomainInfo *r2 = (struct lsa_SetTrustedDomainInfo *)r;
     612           0 :                 if (DEBUGLEVEL >= 10) {
     613           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetTrustedDomainInfo, NDR_IN, r2);
     614             :                 }
     615           0 :                 r2->out.result = _lsa_SetTrustedDomainInfo(p, r2);
     616           0 :                 break;
     617             :         }
     618           0 :         case 41: { /* lsa_DeleteTrustedDomain */
     619           0 :                 struct lsa_DeleteTrustedDomain *r2 = (struct lsa_DeleteTrustedDomain *)r;
     620           0 :                 if (DEBUGLEVEL >= 10) {
     621           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_DeleteTrustedDomain, NDR_IN, r2);
     622             :                 }
     623           0 :                 r2->out.result = _lsa_DeleteTrustedDomain(p, r2);
     624           0 :                 break;
     625             :         }
     626           0 :         case 42: { /* lsa_StorePrivateData */
     627           0 :                 struct lsa_StorePrivateData *r2 = (struct lsa_StorePrivateData *)r;
     628           0 :                 if (DEBUGLEVEL >= 10) {
     629           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_StorePrivateData, NDR_IN, r2);
     630             :                 }
     631           0 :                 r2->out.result = _lsa_StorePrivateData(p, r2);
     632           0 :                 break;
     633             :         }
     634           0 :         case 43: { /* lsa_RetrievePrivateData */
     635           0 :                 struct lsa_RetrievePrivateData *r2 = (struct lsa_RetrievePrivateData *)r;
     636           0 :                 if (DEBUGLEVEL >= 10) {
     637           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_RetrievePrivateData, NDR_IN, r2);
     638             :                 }
     639           0 :                 NDR_ZERO_STRUCT(r2->out);
     640           0 :                 r2->out.val = r2->in.val;
     641           0 :                 r2->out.result = _lsa_RetrievePrivateData(p, r2);
     642           0 :                 break;
     643             :         }
     644         880 :         case 44: { /* lsa_OpenPolicy2 */
     645         880 :                 struct lsa_OpenPolicy2 *r2 = (struct lsa_OpenPolicy2 *)r;
     646         880 :                 if (DEBUGLEVEL >= 10) {
     647           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenPolicy2, NDR_IN, r2);
     648             :                 }
     649         880 :                 NDR_ZERO_STRUCT(r2->out);
     650         880 :                 r2->out.handle = talloc_zero(r2, struct policy_handle);
     651         880 :                 if (r2->out.handle == NULL) {
     652           0 :                         status = NT_STATUS_NO_MEMORY;
     653           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     654           0 :                         goto fail;
     655             :                 }
     656             : 
     657         880 :                 r2->out.result = _lsa_OpenPolicy2(p, r2);
     658         880 :                 break;
     659             :         }
     660         394 :         case 45: { /* lsa_GetUserName */
     661         394 :                 struct lsa_GetUserName *r2 = (struct lsa_GetUserName *)r;
     662         394 :                 if (DEBUGLEVEL >= 10) {
     663           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_GetUserName, NDR_IN, r2);
     664             :                 }
     665         394 :                 NDR_ZERO_STRUCT(r2->out);
     666         394 :                 r2->out.account_name = r2->in.account_name;
     667         394 :                 r2->out.authority_name = r2->in.authority_name;
     668         394 :                 r2->out.result = _lsa_GetUserName(p, r2);
     669         394 :                 break;
     670             :         }
     671         158 :         case 46: { /* lsa_QueryInfoPolicy2 */
     672         158 :                 struct lsa_QueryInfoPolicy2 *r2 = (struct lsa_QueryInfoPolicy2 *)r;
     673         158 :                 if (DEBUGLEVEL >= 10) {
     674           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QueryInfoPolicy2, NDR_IN, r2);
     675             :                 }
     676         158 :                 NDR_ZERO_STRUCT(r2->out);
     677         158 :                 r2->out.info = talloc_zero(r2, union lsa_PolicyInformation *);
     678         158 :                 if (r2->out.info == NULL) {
     679           0 :                         status = NT_STATUS_NO_MEMORY;
     680           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     681           0 :                         goto fail;
     682             :                 }
     683             : 
     684         158 :                 r2->out.result = _lsa_QueryInfoPolicy2(p, r2);
     685         158 :                 break;
     686             :         }
     687           0 :         case 47: { /* lsa_SetInfoPolicy2 */
     688           0 :                 struct lsa_SetInfoPolicy2 *r2 = (struct lsa_SetInfoPolicy2 *)r;
     689           0 :                 if (DEBUGLEVEL >= 10) {
     690           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetInfoPolicy2, NDR_IN, r2);
     691             :                 }
     692           0 :                 r2->out.result = _lsa_SetInfoPolicy2(p, r2);
     693           0 :                 break;
     694             :         }
     695           0 :         case 48: { /* lsa_QueryTrustedDomainInfoByName */
     696           0 :                 struct lsa_QueryTrustedDomainInfoByName *r2 = (struct lsa_QueryTrustedDomainInfoByName *)r;
     697           0 :                 if (DEBUGLEVEL >= 10) {
     698           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QueryTrustedDomainInfoByName, NDR_IN, r2);
     699             :                 }
     700           0 :                 NDR_ZERO_STRUCT(r2->out);
     701           0 :                 r2->out.info = talloc_zero(r2, union lsa_TrustedDomainInfo *);
     702           0 :                 if (r2->out.info == NULL) {
     703           0 :                         status = NT_STATUS_NO_MEMORY;
     704           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     705           0 :                         goto fail;
     706             :                 }
     707             : 
     708           0 :                 r2->out.result = _lsa_QueryTrustedDomainInfoByName(p, r2);
     709           0 :                 break;
     710             :         }
     711           0 :         case 49: { /* lsa_SetTrustedDomainInfoByName */
     712           0 :                 struct lsa_SetTrustedDomainInfoByName *r2 = (struct lsa_SetTrustedDomainInfoByName *)r;
     713           0 :                 if (DEBUGLEVEL >= 10) {
     714           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetTrustedDomainInfoByName, NDR_IN, r2);
     715             :                 }
     716           0 :                 r2->out.result = _lsa_SetTrustedDomainInfoByName(p, r2);
     717           0 :                 break;
     718             :         }
     719           0 :         case 50: { /* lsa_EnumTrustedDomainsEx */
     720           0 :                 struct lsa_EnumTrustedDomainsEx *r2 = (struct lsa_EnumTrustedDomainsEx *)r;
     721           0 :                 if (DEBUGLEVEL >= 10) {
     722           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumTrustedDomainsEx, NDR_IN, r2);
     723             :                 }
     724           0 :                 NDR_ZERO_STRUCT(r2->out);
     725           0 :                 r2->out.resume_handle = r2->in.resume_handle;
     726           0 :                 r2->out.domains = talloc_zero(r2, struct lsa_DomainListEx);
     727           0 :                 if (r2->out.domains == NULL) {
     728           0 :                         status = NT_STATUS_NO_MEMORY;
     729           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     730           0 :                         goto fail;
     731             :                 }
     732             : 
     733           0 :                 r2->out.result = _lsa_EnumTrustedDomainsEx(p, r2);
     734           0 :                 break;
     735             :         }
     736           0 :         case 51: { /* lsa_CreateTrustedDomainEx */
     737           0 :                 struct lsa_CreateTrustedDomainEx *r2 = (struct lsa_CreateTrustedDomainEx *)r;
     738           0 :                 if (DEBUGLEVEL >= 10) {
     739           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomainEx, NDR_IN, r2);
     740             :                 }
     741           0 :                 NDR_ZERO_STRUCT(r2->out);
     742           0 :                 r2->out.trustdom_handle = talloc_zero(r2, struct policy_handle);
     743           0 :                 if (r2->out.trustdom_handle == NULL) {
     744           0 :                         status = NT_STATUS_NO_MEMORY;
     745           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     746           0 :                         goto fail;
     747             :                 }
     748             : 
     749           0 :                 r2->out.result = _lsa_CreateTrustedDomainEx(p, r2);
     750           0 :                 break;
     751             :         }
     752           0 :         case 52: { /* lsa_CloseTrustedDomainEx */
     753           0 :                 struct lsa_CloseTrustedDomainEx *r2 = (struct lsa_CloseTrustedDomainEx *)r;
     754           0 :                 if (DEBUGLEVEL >= 10) {
     755           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CloseTrustedDomainEx, NDR_IN, r2);
     756             :                 }
     757           0 :                 NDR_ZERO_STRUCT(r2->out);
     758           0 :                 r2->out.handle = r2->in.handle;
     759           0 :                 r2->out.result = _lsa_CloseTrustedDomainEx(p, r2);
     760           0 :                 break;
     761             :         }
     762           0 :         case 53: { /* lsa_QueryDomainInformationPolicy */
     763           0 :                 struct lsa_QueryDomainInformationPolicy *r2 = (struct lsa_QueryDomainInformationPolicy *)r;
     764           0 :                 if (DEBUGLEVEL >= 10) {
     765           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QueryDomainInformationPolicy, NDR_IN, r2);
     766             :                 }
     767           0 :                 NDR_ZERO_STRUCT(r2->out);
     768           0 :                 r2->out.info = talloc_zero(r2, union lsa_DomainInformationPolicy *);
     769           0 :                 if (r2->out.info == NULL) {
     770           0 :                         status = NT_STATUS_NO_MEMORY;
     771           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     772           0 :                         goto fail;
     773             :                 }
     774             : 
     775           0 :                 r2->out.result = _lsa_QueryDomainInformationPolicy(p, r2);
     776           0 :                 break;
     777             :         }
     778           0 :         case 54: { /* lsa_SetDomainInformationPolicy */
     779           0 :                 struct lsa_SetDomainInformationPolicy *r2 = (struct lsa_SetDomainInformationPolicy *)r;
     780           0 :                 if (DEBUGLEVEL >= 10) {
     781           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetDomainInformationPolicy, NDR_IN, r2);
     782             :                 }
     783           0 :                 r2->out.result = _lsa_SetDomainInformationPolicy(p, r2);
     784           0 :                 break;
     785             :         }
     786           0 :         case 55: { /* lsa_OpenTrustedDomainByName */
     787           0 :                 struct lsa_OpenTrustedDomainByName *r2 = (struct lsa_OpenTrustedDomainByName *)r;
     788           0 :                 if (DEBUGLEVEL >= 10) {
     789           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenTrustedDomainByName, NDR_IN, r2);
     790             :                 }
     791           0 :                 NDR_ZERO_STRUCT(r2->out);
     792           0 :                 r2->out.trustdom_handle = talloc_zero(r2, struct policy_handle);
     793           0 :                 if (r2->out.trustdom_handle == NULL) {
     794           0 :                         status = NT_STATUS_NO_MEMORY;
     795           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     796           0 :                         goto fail;
     797             :                 }
     798             : 
     799           0 :                 r2->out.result = _lsa_OpenTrustedDomainByName(p, r2);
     800           0 :                 break;
     801             :         }
     802           0 :         case 56: { /* lsa_TestCall */
     803           0 :                 struct lsa_TestCall *r2 = (struct lsa_TestCall *)r;
     804           0 :                 if (DEBUGLEVEL >= 10) {
     805           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_TestCall, NDR_IN, r2);
     806             :                 }
     807           0 :                 r2->out.result = _lsa_TestCall(p, r2);
     808           0 :                 break;
     809             :         }
     810           2 :         case 57: { /* lsa_LookupSids2 */
     811           2 :                 struct lsa_LookupSids2 *r2 = (struct lsa_LookupSids2 *)r;
     812           2 :                 if (DEBUGLEVEL >= 10) {
     813           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupSids2, NDR_IN, r2);
     814             :                 }
     815           2 :                 NDR_ZERO_STRUCT(r2->out);
     816           2 :                 r2->out.names = r2->in.names;
     817           2 :                 r2->out.count = r2->in.count;
     818           2 :                 r2->out.domains = talloc_zero(r2, struct lsa_RefDomainList *);
     819           2 :                 if (r2->out.domains == NULL) {
     820           0 :                         status = NT_STATUS_NO_MEMORY;
     821           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     822           0 :                         goto fail;
     823             :                 }
     824             : 
     825           2 :                 r2->out.result = _lsa_LookupSids2(p, r2);
     826           2 :                 break;
     827             :         }
     828           4 :         case 58: { /* lsa_LookupNames2 */
     829           4 :                 struct lsa_LookupNames2 *r2 = (struct lsa_LookupNames2 *)r;
     830           4 :                 if (DEBUGLEVEL >= 10) {
     831           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames2, NDR_IN, r2);
     832             :                 }
     833           4 :                 NDR_ZERO_STRUCT(r2->out);
     834           4 :                 r2->out.sids = r2->in.sids;
     835           4 :                 r2->out.count = r2->in.count;
     836           4 :                 r2->out.domains = talloc_zero(r2, struct lsa_RefDomainList *);
     837           4 :                 if (r2->out.domains == NULL) {
     838           0 :                         status = NT_STATUS_NO_MEMORY;
     839           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     840           0 :                         goto fail;
     841             :                 }
     842             : 
     843           4 :                 r2->out.result = _lsa_LookupNames2(p, r2);
     844           4 :                 break;
     845             :         }
     846           0 :         case 59: { /* lsa_CreateTrustedDomainEx2 */
     847           0 :                 struct lsa_CreateTrustedDomainEx2 *r2 = (struct lsa_CreateTrustedDomainEx2 *)r;
     848           0 :                 if (DEBUGLEVEL >= 10) {
     849           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomainEx2, NDR_IN, r2);
     850             :                 }
     851           0 :                 NDR_ZERO_STRUCT(r2->out);
     852           0 :                 r2->out.trustdom_handle = talloc_zero(r2, struct policy_handle);
     853           0 :                 if (r2->out.trustdom_handle == NULL) {
     854           0 :                         status = NT_STATUS_NO_MEMORY;
     855           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     856           0 :                         goto fail;
     857             :                 }
     858             : 
     859           0 :                 r2->out.result = _lsa_CreateTrustedDomainEx2(p, r2);
     860           0 :                 break;
     861             :         }
     862           0 :         case 60: { /* lsa_CREDRWRITE */
     863           0 :                 struct lsa_CREDRWRITE *r2 = (struct lsa_CREDRWRITE *)r;
     864           0 :                 if (DEBUGLEVEL >= 10) {
     865           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRWRITE, NDR_IN, r2);
     866             :                 }
     867           0 :                 r2->out.result = _lsa_CREDRWRITE(p, r2);
     868           0 :                 break;
     869             :         }
     870           0 :         case 61: { /* lsa_CREDRREAD */
     871           0 :                 struct lsa_CREDRREAD *r2 = (struct lsa_CREDRREAD *)r;
     872           0 :                 if (DEBUGLEVEL >= 10) {
     873           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRREAD, NDR_IN, r2);
     874             :                 }
     875           0 :                 r2->out.result = _lsa_CREDRREAD(p, r2);
     876           0 :                 break;
     877             :         }
     878           0 :         case 62: { /* lsa_CREDRENUMERATE */
     879           0 :                 struct lsa_CREDRENUMERATE *r2 = (struct lsa_CREDRENUMERATE *)r;
     880           0 :                 if (DEBUGLEVEL >= 10) {
     881           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRENUMERATE, NDR_IN, r2);
     882             :                 }
     883           0 :                 r2->out.result = _lsa_CREDRENUMERATE(p, r2);
     884           0 :                 break;
     885             :         }
     886           0 :         case 63: { /* lsa_CREDRWRITEDOMAINCREDENTIALS */
     887           0 :                 struct lsa_CREDRWRITEDOMAINCREDENTIALS *r2 = (struct lsa_CREDRWRITEDOMAINCREDENTIALS *)r;
     888           0 :                 if (DEBUGLEVEL >= 10) {
     889           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, NDR_IN, r2);
     890             :                 }
     891           0 :                 r2->out.result = _lsa_CREDRWRITEDOMAINCREDENTIALS(p, r2);
     892           0 :                 break;
     893             :         }
     894           0 :         case 64: { /* lsa_CREDRREADDOMAINCREDENTIALS */
     895           0 :                 struct lsa_CREDRREADDOMAINCREDENTIALS *r2 = (struct lsa_CREDRREADDOMAINCREDENTIALS *)r;
     896           0 :                 if (DEBUGLEVEL >= 10) {
     897           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, NDR_IN, r2);
     898             :                 }
     899           0 :                 r2->out.result = _lsa_CREDRREADDOMAINCREDENTIALS(p, r2);
     900           0 :                 break;
     901             :         }
     902           0 :         case 65: { /* lsa_CREDRDELETE */
     903           0 :                 struct lsa_CREDRDELETE *r2 = (struct lsa_CREDRDELETE *)r;
     904           0 :                 if (DEBUGLEVEL >= 10) {
     905           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRDELETE, NDR_IN, r2);
     906             :                 }
     907           0 :                 r2->out.result = _lsa_CREDRDELETE(p, r2);
     908           0 :                 break;
     909             :         }
     910           0 :         case 66: { /* lsa_CREDRGETTARGETINFO */
     911           0 :                 struct lsa_CREDRGETTARGETINFO *r2 = (struct lsa_CREDRGETTARGETINFO *)r;
     912           0 :                 if (DEBUGLEVEL >= 10) {
     913           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRGETTARGETINFO, NDR_IN, r2);
     914             :                 }
     915           0 :                 r2->out.result = _lsa_CREDRGETTARGETINFO(p, r2);
     916           0 :                 break;
     917             :         }
     918           0 :         case 67: { /* lsa_CREDRPROFILELOADED */
     919           0 :                 struct lsa_CREDRPROFILELOADED *r2 = (struct lsa_CREDRPROFILELOADED *)r;
     920           0 :                 if (DEBUGLEVEL >= 10) {
     921           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRPROFILELOADED, NDR_IN, r2);
     922             :                 }
     923           0 :                 r2->out.result = _lsa_CREDRPROFILELOADED(p, r2);
     924           0 :                 break;
     925             :         }
     926           4 :         case 68: { /* lsa_LookupNames3 */
     927           4 :                 struct lsa_LookupNames3 *r2 = (struct lsa_LookupNames3 *)r;
     928           4 :                 if (DEBUGLEVEL >= 10) {
     929           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames3, NDR_IN, r2);
     930             :                 }
     931           4 :                 NDR_ZERO_STRUCT(r2->out);
     932           4 :                 r2->out.sids = r2->in.sids;
     933           4 :                 r2->out.count = r2->in.count;
     934           4 :                 r2->out.domains = talloc_zero(r2, struct lsa_RefDomainList *);
     935           4 :                 if (r2->out.domains == NULL) {
     936           0 :                         status = NT_STATUS_NO_MEMORY;
     937           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     938           0 :                         goto fail;
     939             :                 }
     940             : 
     941           4 :                 r2->out.result = _lsa_LookupNames3(p, r2);
     942           4 :                 break;
     943             :         }
     944           0 :         case 69: { /* lsa_CREDRGETSESSIONTYPES */
     945           0 :                 struct lsa_CREDRGETSESSIONTYPES *r2 = (struct lsa_CREDRGETSESSIONTYPES *)r;
     946           0 :                 if (DEBUGLEVEL >= 10) {
     947           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRGETSESSIONTYPES, NDR_IN, r2);
     948             :                 }
     949           0 :                 r2->out.result = _lsa_CREDRGETSESSIONTYPES(p, r2);
     950           0 :                 break;
     951             :         }
     952           0 :         case 70: { /* lsa_LSARREGISTERAUDITEVENT */
     953           0 :                 struct lsa_LSARREGISTERAUDITEVENT *r2 = (struct lsa_LSARREGISTERAUDITEVENT *)r;
     954           0 :                 if (DEBUGLEVEL >= 10) {
     955           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSARREGISTERAUDITEVENT, NDR_IN, r2);
     956             :                 }
     957           0 :                 r2->out.result = _lsa_LSARREGISTERAUDITEVENT(p, r2);
     958           0 :                 break;
     959             :         }
     960           0 :         case 71: { /* lsa_LSARGENAUDITEVENT */
     961           0 :                 struct lsa_LSARGENAUDITEVENT *r2 = (struct lsa_LSARGENAUDITEVENT *)r;
     962           0 :                 if (DEBUGLEVEL >= 10) {
     963           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSARGENAUDITEVENT, NDR_IN, r2);
     964             :                 }
     965           0 :                 r2->out.result = _lsa_LSARGENAUDITEVENT(p, r2);
     966           0 :                 break;
     967             :         }
     968           0 :         case 72: { /* lsa_LSARUNREGISTERAUDITEVENT */
     969           0 :                 struct lsa_LSARUNREGISTERAUDITEVENT *r2 = (struct lsa_LSARUNREGISTERAUDITEVENT *)r;
     970           0 :                 if (DEBUGLEVEL >= 10) {
     971           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, NDR_IN, r2);
     972             :                 }
     973           0 :                 r2->out.result = _lsa_LSARUNREGISTERAUDITEVENT(p, r2);
     974           0 :                 break;
     975             :         }
     976           0 :         case 73: { /* lsa_lsaRQueryForestTrustInformation */
     977           0 :                 struct lsa_lsaRQueryForestTrustInformation *r2 = (struct lsa_lsaRQueryForestTrustInformation *)r;
     978           0 :                 if (DEBUGLEVEL >= 10) {
     979           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_lsaRQueryForestTrustInformation, NDR_IN, r2);
     980             :                 }
     981           0 :                 NDR_ZERO_STRUCT(r2->out);
     982           0 :                 r2->out.forest_trust_info = talloc_zero(r2, struct lsa_ForestTrustInformation *);
     983           0 :                 if (r2->out.forest_trust_info == NULL) {
     984           0 :                         status = NT_STATUS_NO_MEMORY;
     985           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
     986           0 :                         goto fail;
     987             :                 }
     988             : 
     989           0 :                 r2->out.result = _lsa_lsaRQueryForestTrustInformation(p, r2);
     990           0 :                 break;
     991             :         }
     992           0 :         case 74: { /* lsa_lsaRSetForestTrustInformation */
     993           0 :                 struct lsa_lsaRSetForestTrustInformation *r2 = (struct lsa_lsaRSetForestTrustInformation *)r;
     994           0 :                 if (DEBUGLEVEL >= 10) {
     995           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_lsaRSetForestTrustInformation, NDR_IN, r2);
     996             :                 }
     997           0 :                 NDR_ZERO_STRUCT(r2->out);
     998           0 :                 r2->out.collision_info = talloc_zero(r2, struct lsa_ForestTrustCollisionInfo *);
     999           0 :                 if (r2->out.collision_info == NULL) {
    1000           0 :                         status = NT_STATUS_NO_MEMORY;
    1001           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
    1002           0 :                         goto fail;
    1003             :                 }
    1004             : 
    1005           0 :                 r2->out.result = _lsa_lsaRSetForestTrustInformation(p, r2);
    1006           0 :                 break;
    1007             :         }
    1008           0 :         case 75: { /* lsa_CREDRRENAME */
    1009           0 :                 struct lsa_CREDRRENAME *r2 = (struct lsa_CREDRRENAME *)r;
    1010           0 :                 if (DEBUGLEVEL >= 10) {
    1011           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRRENAME, NDR_IN, r2);
    1012             :                 }
    1013           0 :                 r2->out.result = _lsa_CREDRRENAME(p, r2);
    1014           0 :                 break;
    1015             :         }
    1016          28 :         case 76: { /* lsa_LookupSids3 */
    1017          28 :                 struct lsa_LookupSids3 *r2 = (struct lsa_LookupSids3 *)r;
    1018          28 :                 if (DEBUGLEVEL >= 10) {
    1019           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupSids3, NDR_IN, r2);
    1020             :                 }
    1021          28 :                 NDR_ZERO_STRUCT(r2->out);
    1022          28 :                 r2->out.names = r2->in.names;
    1023          28 :                 r2->out.count = r2->in.count;
    1024          28 :                 r2->out.domains = talloc_zero(r2, struct lsa_RefDomainList *);
    1025          28 :                 if (r2->out.domains == NULL) {
    1026           0 :                         status = NT_STATUS_NO_MEMORY;
    1027           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
    1028           0 :                         goto fail;
    1029             :                 }
    1030             : 
    1031          28 :                 r2->out.result = _lsa_LookupSids3(p, r2);
    1032          28 :                 break;
    1033             :         }
    1034          52 :         case 77: { /* lsa_LookupNames4 */
    1035          52 :                 struct lsa_LookupNames4 *r2 = (struct lsa_LookupNames4 *)r;
    1036          52 :                 if (DEBUGLEVEL >= 10) {
    1037           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames4, NDR_IN, r2);
    1038             :                 }
    1039          52 :                 NDR_ZERO_STRUCT(r2->out);
    1040          52 :                 r2->out.sids = r2->in.sids;
    1041          52 :                 r2->out.count = r2->in.count;
    1042          52 :                 r2->out.domains = talloc_zero(r2, struct lsa_RefDomainList *);
    1043          52 :                 if (r2->out.domains == NULL) {
    1044           0 :                         status = NT_STATUS_NO_MEMORY;
    1045           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
    1046           0 :                         goto fail;
    1047             :                 }
    1048             : 
    1049          52 :                 r2->out.result = _lsa_LookupNames4(p, r2);
    1050          52 :                 break;
    1051             :         }
    1052           0 :         case 78: { /* lsa_LSAROPENPOLICYSCE */
    1053           0 :                 struct lsa_LSAROPENPOLICYSCE *r2 = (struct lsa_LSAROPENPOLICYSCE *)r;
    1054           0 :                 if (DEBUGLEVEL >= 10) {
    1055           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSAROPENPOLICYSCE, NDR_IN, r2);
    1056             :                 }
    1057           0 :                 r2->out.result = _lsa_LSAROPENPOLICYSCE(p, r2);
    1058           0 :                 break;
    1059             :         }
    1060           0 :         case 79: { /* lsa_LSARADTREGISTERSECURITYEVENTSOURCE */
    1061           0 :                 struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r2 = (struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *)r;
    1062           0 :                 if (DEBUGLEVEL >= 10) {
    1063           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, NDR_IN, r2);
    1064             :                 }
    1065           0 :                 r2->out.result = _lsa_LSARADTREGISTERSECURITYEVENTSOURCE(p, r2);
    1066           0 :                 break;
    1067             :         }
    1068           0 :         case 80: { /* lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE */
    1069           0 :                 struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r2 = (struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *)r;
    1070           0 :                 if (DEBUGLEVEL >= 10) {
    1071           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, NDR_IN, r2);
    1072             :                 }
    1073           0 :                 r2->out.result = _lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(p, r2);
    1074           0 :                 break;
    1075             :         }
    1076           0 :         case 81: { /* lsa_LSARADTREPORTSECURITYEVENT */
    1077           0 :                 struct lsa_LSARADTREPORTSECURITYEVENT *r2 = (struct lsa_LSARADTREPORTSECURITYEVENT *)r;
    1078           0 :                 if (DEBUGLEVEL >= 10) {
    1079           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, NDR_IN, r2);
    1080             :                 }
    1081           0 :                 r2->out.result = _lsa_LSARADTREPORTSECURITYEVENT(p, r2);
    1082           0 :                 break;
    1083             :         }
    1084           0 :         case 82: { /* lsa_Opnum82NotUsedOnWire */
    1085           0 :                 struct lsa_Opnum82NotUsedOnWire *r2 = (struct lsa_Opnum82NotUsedOnWire *)r;
    1086           0 :                 if (DEBUGLEVEL >= 10) {
    1087           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum82NotUsedOnWire, NDR_IN, r2);
    1088             :                 }
    1089           0 :                 _lsa_Opnum82NotUsedOnWire(p, r2);
    1090           0 :                 break;
    1091             :         }
    1092           0 :         case 83: { /* lsa_Opnum83NotUsedOnWire */
    1093           0 :                 struct lsa_Opnum83NotUsedOnWire *r2 = (struct lsa_Opnum83NotUsedOnWire *)r;
    1094           0 :                 if (DEBUGLEVEL >= 10) {
    1095           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum83NotUsedOnWire, NDR_IN, r2);
    1096             :                 }
    1097           0 :                 _lsa_Opnum83NotUsedOnWire(p, r2);
    1098           0 :                 break;
    1099             :         }
    1100           0 :         case 84: { /* lsa_Opnum84NotUsedOnWire */
    1101           0 :                 struct lsa_Opnum84NotUsedOnWire *r2 = (struct lsa_Opnum84NotUsedOnWire *)r;
    1102           0 :                 if (DEBUGLEVEL >= 10) {
    1103           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum84NotUsedOnWire, NDR_IN, r2);
    1104             :                 }
    1105           0 :                 _lsa_Opnum84NotUsedOnWire(p, r2);
    1106           0 :                 break;
    1107             :         }
    1108           0 :         case 85: { /* lsa_Opnum85NotUsedOnWire */
    1109           0 :                 struct lsa_Opnum85NotUsedOnWire *r2 = (struct lsa_Opnum85NotUsedOnWire *)r;
    1110           0 :                 if (DEBUGLEVEL >= 10) {
    1111           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum85NotUsedOnWire, NDR_IN, r2);
    1112             :                 }
    1113           0 :                 _lsa_Opnum85NotUsedOnWire(p, r2);
    1114           0 :                 break;
    1115             :         }
    1116           0 :         case 86: { /* lsa_Opnum86NotUsedOnWire */
    1117           0 :                 struct lsa_Opnum86NotUsedOnWire *r2 = (struct lsa_Opnum86NotUsedOnWire *)r;
    1118           0 :                 if (DEBUGLEVEL >= 10) {
    1119           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum86NotUsedOnWire, NDR_IN, r2);
    1120             :                 }
    1121           0 :                 _lsa_Opnum86NotUsedOnWire(p, r2);
    1122           0 :                 break;
    1123             :         }
    1124           0 :         case 87: { /* lsa_Opnum87NotUsedOnWire */
    1125           0 :                 struct lsa_Opnum87NotUsedOnWire *r2 = (struct lsa_Opnum87NotUsedOnWire *)r;
    1126           0 :                 if (DEBUGLEVEL >= 10) {
    1127           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum87NotUsedOnWire, NDR_IN, r2);
    1128             :                 }
    1129           0 :                 _lsa_Opnum87NotUsedOnWire(p, r2);
    1130           0 :                 break;
    1131             :         }
    1132           0 :         case 88: { /* lsa_Opnum88NotUsedOnWire */
    1133           0 :                 struct lsa_Opnum88NotUsedOnWire *r2 = (struct lsa_Opnum88NotUsedOnWire *)r;
    1134           0 :                 if (DEBUGLEVEL >= 10) {
    1135           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum88NotUsedOnWire, NDR_IN, r2);
    1136             :                 }
    1137           0 :                 _lsa_Opnum88NotUsedOnWire(p, r2);
    1138           0 :                 break;
    1139             :         }
    1140           0 :         case 89: { /* lsa_Opnum89NotUsedOnWire */
    1141           0 :                 struct lsa_Opnum89NotUsedOnWire *r2 = (struct lsa_Opnum89NotUsedOnWire *)r;
    1142           0 :                 if (DEBUGLEVEL >= 10) {
    1143           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum89NotUsedOnWire, NDR_IN, r2);
    1144             :                 }
    1145           0 :                 _lsa_Opnum89NotUsedOnWire(p, r2);
    1146           0 :                 break;
    1147             :         }
    1148           0 :         case 90: { /* lsa_Opnum90NotUsedOnWire */
    1149           0 :                 struct lsa_Opnum90NotUsedOnWire *r2 = (struct lsa_Opnum90NotUsedOnWire *)r;
    1150           0 :                 if (DEBUGLEVEL >= 10) {
    1151           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum90NotUsedOnWire, NDR_IN, r2);
    1152             :                 }
    1153           0 :                 _lsa_Opnum90NotUsedOnWire(p, r2);
    1154           0 :                 break;
    1155             :         }
    1156           0 :         case 91: { /* lsa_Opnum91NotUsedOnWire */
    1157           0 :                 struct lsa_Opnum91NotUsedOnWire *r2 = (struct lsa_Opnum91NotUsedOnWire *)r;
    1158           0 :                 if (DEBUGLEVEL >= 10) {
    1159           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum91NotUsedOnWire, NDR_IN, r2);
    1160             :                 }
    1161           0 :                 _lsa_Opnum91NotUsedOnWire(p, r2);
    1162           0 :                 break;
    1163             :         }
    1164           0 :         case 92: { /* lsa_Opnum92NotUsedOnWire */
    1165           0 :                 struct lsa_Opnum92NotUsedOnWire *r2 = (struct lsa_Opnum92NotUsedOnWire *)r;
    1166           0 :                 if (DEBUGLEVEL >= 10) {
    1167           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum92NotUsedOnWire, NDR_IN, r2);
    1168             :                 }
    1169           0 :                 _lsa_Opnum92NotUsedOnWire(p, r2);
    1170           0 :                 break;
    1171             :         }
    1172           0 :         case 93: { /* lsa_Opnum93NotUsedOnWire */
    1173           0 :                 struct lsa_Opnum93NotUsedOnWire *r2 = (struct lsa_Opnum93NotUsedOnWire *)r;
    1174           0 :                 if (DEBUGLEVEL >= 10) {
    1175           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum93NotUsedOnWire, NDR_IN, r2);
    1176             :                 }
    1177           0 :                 _lsa_Opnum93NotUsedOnWire(p, r2);
    1178           0 :                 break;
    1179             :         }
    1180           0 :         case 94: { /* lsa_Opnum94NotUsedOnWire */
    1181           0 :                 struct lsa_Opnum94NotUsedOnWire *r2 = (struct lsa_Opnum94NotUsedOnWire *)r;
    1182           0 :                 if (DEBUGLEVEL >= 10) {
    1183           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum94NotUsedOnWire, NDR_IN, r2);
    1184             :                 }
    1185           0 :                 _lsa_Opnum94NotUsedOnWire(p, r2);
    1186           0 :                 break;
    1187             :         }
    1188           0 :         case 95: { /* lsa_Opnum95NotUsedOnWire */
    1189           0 :                 struct lsa_Opnum95NotUsedOnWire *r2 = (struct lsa_Opnum95NotUsedOnWire *)r;
    1190           0 :                 if (DEBUGLEVEL >= 10) {
    1191           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum95NotUsedOnWire, NDR_IN, r2);
    1192             :                 }
    1193           0 :                 _lsa_Opnum95NotUsedOnWire(p, r2);
    1194           0 :                 break;
    1195             :         }
    1196           0 :         case 96: { /* lsa_Opnum96NotUsedOnWire */
    1197           0 :                 struct lsa_Opnum96NotUsedOnWire *r2 = (struct lsa_Opnum96NotUsedOnWire *)r;
    1198           0 :                 if (DEBUGLEVEL >= 10) {
    1199           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum96NotUsedOnWire, NDR_IN, r2);
    1200             :                 }
    1201           0 :                 _lsa_Opnum96NotUsedOnWire(p, r2);
    1202           0 :                 break;
    1203             :         }
    1204           0 :         case 97: { /* lsa_Opnum97NotUsedOnWire */
    1205           0 :                 struct lsa_Opnum97NotUsedOnWire *r2 = (struct lsa_Opnum97NotUsedOnWire *)r;
    1206           0 :                 if (DEBUGLEVEL >= 10) {
    1207           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum97NotUsedOnWire, NDR_IN, r2);
    1208             :                 }
    1209           0 :                 _lsa_Opnum97NotUsedOnWire(p, r2);
    1210           0 :                 break;
    1211             :         }
    1212           0 :         case 98: { /* lsa_Opnum98NotUsedOnWire */
    1213           0 :                 struct lsa_Opnum98NotUsedOnWire *r2 = (struct lsa_Opnum98NotUsedOnWire *)r;
    1214           0 :                 if (DEBUGLEVEL >= 10) {
    1215           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum98NotUsedOnWire, NDR_IN, r2);
    1216             :                 }
    1217           0 :                 _lsa_Opnum98NotUsedOnWire(p, r2);
    1218           0 :                 break;
    1219             :         }
    1220           0 :         case 99: { /* lsa_Opnum99NotUsedOnWire */
    1221           0 :                 struct lsa_Opnum99NotUsedOnWire *r2 = (struct lsa_Opnum99NotUsedOnWire *)r;
    1222           0 :                 if (DEBUGLEVEL >= 10) {
    1223           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum99NotUsedOnWire, NDR_IN, r2);
    1224             :                 }
    1225           0 :                 _lsa_Opnum99NotUsedOnWire(p, r2);
    1226           0 :                 break;
    1227             :         }
    1228           0 :         case 100: { /* lsa_Opnum100NotUsedOnWire */
    1229           0 :                 struct lsa_Opnum100NotUsedOnWire *r2 = (struct lsa_Opnum100NotUsedOnWire *)r;
    1230           0 :                 if (DEBUGLEVEL >= 10) {
    1231           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum100NotUsedOnWire, NDR_IN, r2);
    1232             :                 }
    1233           0 :                 _lsa_Opnum100NotUsedOnWire(p, r2);
    1234           0 :                 break;
    1235             :         }
    1236           0 :         case 101: { /* lsa_Opnum101NotUsedOnWire */
    1237           0 :                 struct lsa_Opnum101NotUsedOnWire *r2 = (struct lsa_Opnum101NotUsedOnWire *)r;
    1238           0 :                 if (DEBUGLEVEL >= 10) {
    1239           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum101NotUsedOnWire, NDR_IN, r2);
    1240             :                 }
    1241           0 :                 _lsa_Opnum101NotUsedOnWire(p, r2);
    1242           0 :                 break;
    1243             :         }
    1244           0 :         case 102: { /* lsa_Opnum102NotUsedOnWire */
    1245           0 :                 struct lsa_Opnum102NotUsedOnWire *r2 = (struct lsa_Opnum102NotUsedOnWire *)r;
    1246           0 :                 if (DEBUGLEVEL >= 10) {
    1247           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum102NotUsedOnWire, NDR_IN, r2);
    1248             :                 }
    1249           0 :                 _lsa_Opnum102NotUsedOnWire(p, r2);
    1250           0 :                 break;
    1251             :         }
    1252           0 :         case 103: { /* lsa_Opnum103NotUsedOnWire */
    1253           0 :                 struct lsa_Opnum103NotUsedOnWire *r2 = (struct lsa_Opnum103NotUsedOnWire *)r;
    1254           0 :                 if (DEBUGLEVEL >= 10) {
    1255           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum103NotUsedOnWire, NDR_IN, r2);
    1256             :                 }
    1257           0 :                 _lsa_Opnum103NotUsedOnWire(p, r2);
    1258           0 :                 break;
    1259             :         }
    1260           0 :         case 104: { /* lsa_Opnum104NotUsedOnWire */
    1261           0 :                 struct lsa_Opnum104NotUsedOnWire *r2 = (struct lsa_Opnum104NotUsedOnWire *)r;
    1262           0 :                 if (DEBUGLEVEL >= 10) {
    1263           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum104NotUsedOnWire, NDR_IN, r2);
    1264             :                 }
    1265           0 :                 _lsa_Opnum104NotUsedOnWire(p, r2);
    1266           0 :                 break;
    1267             :         }
    1268           0 :         case 105: { /* lsa_Opnum105NotUsedOnWire */
    1269           0 :                 struct lsa_Opnum105NotUsedOnWire *r2 = (struct lsa_Opnum105NotUsedOnWire *)r;
    1270           0 :                 if (DEBUGLEVEL >= 10) {
    1271           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum105NotUsedOnWire, NDR_IN, r2);
    1272             :                 }
    1273           0 :                 _lsa_Opnum105NotUsedOnWire(p, r2);
    1274           0 :                 break;
    1275             :         }
    1276           0 :         case 106: { /* lsa_Opnum106NotUsedOnWire */
    1277           0 :                 struct lsa_Opnum106NotUsedOnWire *r2 = (struct lsa_Opnum106NotUsedOnWire *)r;
    1278           0 :                 if (DEBUGLEVEL >= 10) {
    1279           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum106NotUsedOnWire, NDR_IN, r2);
    1280             :                 }
    1281           0 :                 _lsa_Opnum106NotUsedOnWire(p, r2);
    1282           0 :                 break;
    1283             :         }
    1284           0 :         case 107: { /* lsa_Opnum107NotUsedOnWire */
    1285           0 :                 struct lsa_Opnum107NotUsedOnWire *r2 = (struct lsa_Opnum107NotUsedOnWire *)r;
    1286           0 :                 if (DEBUGLEVEL >= 10) {
    1287           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum107NotUsedOnWire, NDR_IN, r2);
    1288             :                 }
    1289           0 :                 _lsa_Opnum107NotUsedOnWire(p, r2);
    1290           0 :                 break;
    1291             :         }
    1292           0 :         case 108: { /* lsa_Opnum108NotUsedOnWire */
    1293           0 :                 struct lsa_Opnum108NotUsedOnWire *r2 = (struct lsa_Opnum108NotUsedOnWire *)r;
    1294           0 :                 if (DEBUGLEVEL >= 10) {
    1295           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum108NotUsedOnWire, NDR_IN, r2);
    1296             :                 }
    1297           0 :                 _lsa_Opnum108NotUsedOnWire(p, r2);
    1298           0 :                 break;
    1299             :         }
    1300           0 :         case 109: { /* lsa_Opnum109NotUsedOnWire */
    1301           0 :                 struct lsa_Opnum109NotUsedOnWire *r2 = (struct lsa_Opnum109NotUsedOnWire *)r;
    1302           0 :                 if (DEBUGLEVEL >= 10) {
    1303           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum109NotUsedOnWire, NDR_IN, r2);
    1304             :                 }
    1305           0 :                 _lsa_Opnum109NotUsedOnWire(p, r2);
    1306           0 :                 break;
    1307             :         }
    1308           0 :         case 110: { /* lsa_Opnum110NotUsedOnWire */
    1309           0 :                 struct lsa_Opnum110NotUsedOnWire *r2 = (struct lsa_Opnum110NotUsedOnWire *)r;
    1310           0 :                 if (DEBUGLEVEL >= 10) {
    1311           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum110NotUsedOnWire, NDR_IN, r2);
    1312             :                 }
    1313           0 :                 _lsa_Opnum110NotUsedOnWire(p, r2);
    1314           0 :                 break;
    1315             :         }
    1316           0 :         case 111: { /* lsa_Opnum111NotUsedOnWire */
    1317           0 :                 struct lsa_Opnum111NotUsedOnWire *r2 = (struct lsa_Opnum111NotUsedOnWire *)r;
    1318           0 :                 if (DEBUGLEVEL >= 10) {
    1319           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum111NotUsedOnWire, NDR_IN, r2);
    1320             :                 }
    1321           0 :                 _lsa_Opnum111NotUsedOnWire(p, r2);
    1322           0 :                 break;
    1323             :         }
    1324           0 :         case 112: { /* lsa_Opnum112NotUsedOnWire */
    1325           0 :                 struct lsa_Opnum112NotUsedOnWire *r2 = (struct lsa_Opnum112NotUsedOnWire *)r;
    1326           0 :                 if (DEBUGLEVEL >= 10) {
    1327           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum112NotUsedOnWire, NDR_IN, r2);
    1328             :                 }
    1329           0 :                 _lsa_Opnum112NotUsedOnWire(p, r2);
    1330           0 :                 break;
    1331             :         }
    1332           0 :         case 113: { /* lsa_Opnum113NotUsedOnWire */
    1333           0 :                 struct lsa_Opnum113NotUsedOnWire *r2 = (struct lsa_Opnum113NotUsedOnWire *)r;
    1334           0 :                 if (DEBUGLEVEL >= 10) {
    1335           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum113NotUsedOnWire, NDR_IN, r2);
    1336             :                 }
    1337           0 :                 _lsa_Opnum113NotUsedOnWire(p, r2);
    1338           0 :                 break;
    1339             :         }
    1340           0 :         case 114: { /* lsa_Opnum114NotUsedOnWire */
    1341           0 :                 struct lsa_Opnum114NotUsedOnWire *r2 = (struct lsa_Opnum114NotUsedOnWire *)r;
    1342           0 :                 if (DEBUGLEVEL >= 10) {
    1343           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum114NotUsedOnWire, NDR_IN, r2);
    1344             :                 }
    1345           0 :                 _lsa_Opnum114NotUsedOnWire(p, r2);
    1346           0 :                 break;
    1347             :         }
    1348           0 :         case 115: { /* lsa_Opnum115NotUsedOnWire */
    1349           0 :                 struct lsa_Opnum115NotUsedOnWire *r2 = (struct lsa_Opnum115NotUsedOnWire *)r;
    1350           0 :                 if (DEBUGLEVEL >= 10) {
    1351           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum115NotUsedOnWire, NDR_IN, r2);
    1352             :                 }
    1353           0 :                 _lsa_Opnum115NotUsedOnWire(p, r2);
    1354           0 :                 break;
    1355             :         }
    1356           0 :         case 116: { /* lsa_Opnum116NotUsedOnWire */
    1357           0 :                 struct lsa_Opnum116NotUsedOnWire *r2 = (struct lsa_Opnum116NotUsedOnWire *)r;
    1358           0 :                 if (DEBUGLEVEL >= 10) {
    1359           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum116NotUsedOnWire, NDR_IN, r2);
    1360             :                 }
    1361           0 :                 _lsa_Opnum116NotUsedOnWire(p, r2);
    1362           0 :                 break;
    1363             :         }
    1364           0 :         case 117: { /* lsa_Opnum117NotUsedOnWire */
    1365           0 :                 struct lsa_Opnum117NotUsedOnWire *r2 = (struct lsa_Opnum117NotUsedOnWire *)r;
    1366           0 :                 if (DEBUGLEVEL >= 10) {
    1367           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum117NotUsedOnWire, NDR_IN, r2);
    1368             :                 }
    1369           0 :                 _lsa_Opnum117NotUsedOnWire(p, r2);
    1370           0 :                 break;
    1371             :         }
    1372           0 :         case 118: { /* lsa_Opnum118NotUsedOnWire */
    1373           0 :                 struct lsa_Opnum118NotUsedOnWire *r2 = (struct lsa_Opnum118NotUsedOnWire *)r;
    1374           0 :                 if (DEBUGLEVEL >= 10) {
    1375           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum118NotUsedOnWire, NDR_IN, r2);
    1376             :                 }
    1377           0 :                 _lsa_Opnum118NotUsedOnWire(p, r2);
    1378           0 :                 break;
    1379             :         }
    1380           0 :         case 119: { /* lsa_Opnum119NotUsedOnWire */
    1381           0 :                 struct lsa_Opnum119NotUsedOnWire *r2 = (struct lsa_Opnum119NotUsedOnWire *)r;
    1382           0 :                 if (DEBUGLEVEL >= 10) {
    1383           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum119NotUsedOnWire, NDR_IN, r2);
    1384             :                 }
    1385           0 :                 _lsa_Opnum119NotUsedOnWire(p, r2);
    1386           0 :                 break;
    1387             :         }
    1388           0 :         case 120: { /* lsa_Opnum120NotUsedOnWire */
    1389           0 :                 struct lsa_Opnum120NotUsedOnWire *r2 = (struct lsa_Opnum120NotUsedOnWire *)r;
    1390           0 :                 if (DEBUGLEVEL >= 10) {
    1391           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum120NotUsedOnWire, NDR_IN, r2);
    1392             :                 }
    1393           0 :                 _lsa_Opnum120NotUsedOnWire(p, r2);
    1394           0 :                 break;
    1395             :         }
    1396           0 :         case 121: { /* lsa_Opnum121NotUsedOnWire */
    1397           0 :                 struct lsa_Opnum121NotUsedOnWire *r2 = (struct lsa_Opnum121NotUsedOnWire *)r;
    1398           0 :                 if (DEBUGLEVEL >= 10) {
    1399           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum121NotUsedOnWire, NDR_IN, r2);
    1400             :                 }
    1401           0 :                 _lsa_Opnum121NotUsedOnWire(p, r2);
    1402           0 :                 break;
    1403             :         }
    1404           0 :         case 122: { /* lsa_Opnum122NotUsedOnWire */
    1405           0 :                 struct lsa_Opnum122NotUsedOnWire *r2 = (struct lsa_Opnum122NotUsedOnWire *)r;
    1406           0 :                 if (DEBUGLEVEL >= 10) {
    1407           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum122NotUsedOnWire, NDR_IN, r2);
    1408             :                 }
    1409           0 :                 _lsa_Opnum122NotUsedOnWire(p, r2);
    1410           0 :                 break;
    1411             :         }
    1412           0 :         case 123: { /* lsa_Opnum123NotUsedOnWire */
    1413           0 :                 struct lsa_Opnum123NotUsedOnWire *r2 = (struct lsa_Opnum123NotUsedOnWire *)r;
    1414           0 :                 if (DEBUGLEVEL >= 10) {
    1415           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum123NotUsedOnWire, NDR_IN, r2);
    1416             :                 }
    1417           0 :                 _lsa_Opnum123NotUsedOnWire(p, r2);
    1418           0 :                 break;
    1419             :         }
    1420           0 :         case 124: { /* lsa_Opnum124NotUsedOnWire */
    1421           0 :                 struct lsa_Opnum124NotUsedOnWire *r2 = (struct lsa_Opnum124NotUsedOnWire *)r;
    1422           0 :                 if (DEBUGLEVEL >= 10) {
    1423           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum124NotUsedOnWire, NDR_IN, r2);
    1424             :                 }
    1425           0 :                 _lsa_Opnum124NotUsedOnWire(p, r2);
    1426           0 :                 break;
    1427             :         }
    1428           0 :         case 125: { /* lsa_Opnum125NotUsedOnWire */
    1429           0 :                 struct lsa_Opnum125NotUsedOnWire *r2 = (struct lsa_Opnum125NotUsedOnWire *)r;
    1430           0 :                 if (DEBUGLEVEL >= 10) {
    1431           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum125NotUsedOnWire, NDR_IN, r2);
    1432             :                 }
    1433           0 :                 _lsa_Opnum125NotUsedOnWire(p, r2);
    1434           0 :                 break;
    1435             :         }
    1436           0 :         case 126: { /* lsa_Opnum126NotUsedOnWire */
    1437           0 :                 struct lsa_Opnum126NotUsedOnWire *r2 = (struct lsa_Opnum126NotUsedOnWire *)r;
    1438           0 :                 if (DEBUGLEVEL >= 10) {
    1439           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum126NotUsedOnWire, NDR_IN, r2);
    1440             :                 }
    1441           0 :                 _lsa_Opnum126NotUsedOnWire(p, r2);
    1442           0 :                 break;
    1443             :         }
    1444           0 :         case 127: { /* lsa_Opnum127NotUsedOnWire */
    1445           0 :                 struct lsa_Opnum127NotUsedOnWire *r2 = (struct lsa_Opnum127NotUsedOnWire *)r;
    1446           0 :                 if (DEBUGLEVEL >= 10) {
    1447           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum127NotUsedOnWire, NDR_IN, r2);
    1448             :                 }
    1449           0 :                 _lsa_Opnum127NotUsedOnWire(p, r2);
    1450           0 :                 break;
    1451             :         }
    1452           0 :         case 128: { /* lsa_Opnum128NotUsedOnWire */
    1453           0 :                 struct lsa_Opnum128NotUsedOnWire *r2 = (struct lsa_Opnum128NotUsedOnWire *)r;
    1454           0 :                 if (DEBUGLEVEL >= 10) {
    1455           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum128NotUsedOnWire, NDR_IN, r2);
    1456             :                 }
    1457           0 :                 _lsa_Opnum128NotUsedOnWire(p, r2);
    1458           0 :                 break;
    1459             :         }
    1460           0 :         case 129: { /* lsa_CreateTrustedDomainEx3 */
    1461           0 :                 struct lsa_CreateTrustedDomainEx3 *r2 = (struct lsa_CreateTrustedDomainEx3 *)r;
    1462           0 :                 if (DEBUGLEVEL >= 10) {
    1463           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomainEx3, NDR_IN, r2);
    1464             :                 }
    1465           0 :                 NDR_ZERO_STRUCT(r2->out);
    1466           0 :                 r2->out.trustdom_handle = talloc_zero(r2, struct policy_handle);
    1467           0 :                 if (r2->out.trustdom_handle == NULL) {
    1468           0 :                         status = NT_STATUS_NO_MEMORY;
    1469           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
    1470           0 :                         goto fail;
    1471             :                 }
    1472             : 
    1473           0 :                 r2->out.result = _lsa_CreateTrustedDomainEx3(p, r2);
    1474           0 :                 break;
    1475             :         }
    1476          68 :         case 130: { /* lsa_OpenPolicy3 */
    1477          68 :                 struct lsa_OpenPolicy3 *r2 = (struct lsa_OpenPolicy3 *)r;
    1478          68 :                 if (DEBUGLEVEL >= 10) {
    1479           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenPolicy3, NDR_IN, r2);
    1480             :                 }
    1481          68 :                 NDR_ZERO_STRUCT(r2->out);
    1482          68 :                 r2->out.out_version = talloc_zero(r2, uint32_t);
    1483          68 :                 if (r2->out.out_version == NULL) {
    1484           0 :                         status = NT_STATUS_NO_MEMORY;
    1485           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
    1486           0 :                         goto fail;
    1487             :                 }
    1488             : 
    1489          68 :                 r2->out.out_revision_info = talloc_zero(r2, union lsa_revision_info);
    1490          68 :                 if (r2->out.out_revision_info == NULL) {
    1491           0 :                         status = NT_STATUS_NO_MEMORY;
    1492           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
    1493           0 :                         goto fail;
    1494             :                 }
    1495             : 
    1496          68 :                 r2->out.handle = talloc_zero(r2, struct policy_handle);
    1497          68 :                 if (r2->out.handle == NULL) {
    1498           0 :                         status = NT_STATUS_NO_MEMORY;
    1499           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
    1500           0 :                         goto fail;
    1501             :                 }
    1502             : 
    1503          68 :                 r2->out.result = _lsa_OpenPolicy3(p, r2);
    1504          68 :                 break;
    1505             :         }
    1506           0 :         case 131: { /* lsa_Opnum131NotUsedOnWire */
    1507           0 :                 struct lsa_Opnum131NotUsedOnWire *r2 = (struct lsa_Opnum131NotUsedOnWire *)r;
    1508           0 :                 if (DEBUGLEVEL >= 10) {
    1509           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum131NotUsedOnWire, NDR_IN, r2);
    1510             :                 }
    1511           0 :                 _lsa_Opnum131NotUsedOnWire(p, r2);
    1512           0 :                 break;
    1513             :         }
    1514           0 :         case 132: { /* lsa_lsaRQueryForestTrustInformation2 */
    1515           0 :                 struct lsa_lsaRQueryForestTrustInformation2 *r2 = (struct lsa_lsaRQueryForestTrustInformation2 *)r;
    1516           0 :                 if (DEBUGLEVEL >= 10) {
    1517           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_lsaRQueryForestTrustInformation2, NDR_IN, r2);
    1518             :                 }
    1519           0 :                 NDR_ZERO_STRUCT(r2->out);
    1520           0 :                 r2->out.forest_trust_info = talloc_zero(r2, struct lsa_ForestTrustInformation2 *);
    1521           0 :                 if (r2->out.forest_trust_info == NULL) {
    1522           0 :                         status = NT_STATUS_NO_MEMORY;
    1523           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
    1524           0 :                         goto fail;
    1525             :                 }
    1526             : 
    1527           0 :                 r2->out.result = _lsa_lsaRQueryForestTrustInformation2(p, r2);
    1528           0 :                 break;
    1529             :         }
    1530           0 :         case 133: { /* lsa_lsaRSetForestTrustInformation2 */
    1531           0 :                 struct lsa_lsaRSetForestTrustInformation2 *r2 = (struct lsa_lsaRSetForestTrustInformation2 *)r;
    1532           0 :                 if (DEBUGLEVEL >= 10) {
    1533           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_lsaRSetForestTrustInformation2, NDR_IN, r2);
    1534             :                 }
    1535           0 :                 NDR_ZERO_STRUCT(r2->out);
    1536           0 :                 r2->out.collision_info = talloc_zero(r2, struct lsa_ForestTrustCollisionInfo *);
    1537           0 :                 if (r2->out.collision_info == NULL) {
    1538           0 :                         status = NT_STATUS_NO_MEMORY;
    1539           0 :                         p->fault_state = DCERPC_FAULT_CANT_PERFORM;
    1540           0 :                         goto fail;
    1541             :                 }
    1542             : 
    1543           0 :                 r2->out.result = _lsa_lsaRSetForestTrustInformation2(p, r2);
    1544           0 :                 break;
    1545             :         }
    1546           0 :         default:
    1547           0 :                 dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR;
    1548           0 :                 break;
    1549             :         }
    1550             : 
    1551       11310 : fail:
    1552             :         /* Unimpersonate */
    1553       11310 :         if (impersonated) {
    1554       11310 :                 unbecome_authenticated_pipe_user();
    1555             :         }
    1556             : 
    1557       11310 :         p->dce_call = NULL;
    1558       11310 :         p->mem_ctx = NULL;
    1559             :         /* Check pipes struct fault state */
    1560       11310 :         if (p->fault_state != 0) {
    1561         196 :                 dce_call->fault_code = p->fault_state;
    1562             :         }
    1563       11310 :         if (dce_call->fault_code != 0) {
    1564         196 :                 status = NT_STATUS_NET_WRITE_FAULT;
    1565             :         }
    1566             : 
    1567       11310 :         return status;
    1568             : }
    1569             : 
    1570       11310 : NTSTATUS lsarpc__op_dispatch(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
    1571             : {
    1572       11310 :         return lsarpc__op_dispatch_internal(dce_call, mem_ctx, r, S3COMPAT_RPC_DISPATCH_EXTERNAL);
    1573             : }
    1574             : 
    1575       11114 : NTSTATUS lsarpc__op_reply(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
    1576             : {
    1577       11114 :         uint16_t opnum = dce_call->pkt.u.request.opnum;
    1578             : 
    1579       11114 :         switch (opnum) {
    1580         952 :         case 0: { /* lsa_Close */
    1581         952 :                 struct lsa_Close *r2 = (struct lsa_Close *)r;
    1582         952 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1583           0 :                         DEBUG(5,("function lsa_Close replied async\n"));
    1584             :                 }
    1585         952 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1586           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Close, NDR_OUT | NDR_SET_VALUES, r2);
    1587             :                 }
    1588         952 :                 if (dce_call->fault_code != 0) {
    1589           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Close\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1590             :                 }
    1591         952 :                 break;
    1592             :         }
    1593           8 :         case 1: { /* lsa_Delete */
    1594           8 :                 struct lsa_Delete *r2 = (struct lsa_Delete *)r;
    1595           8 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1596           0 :                         DEBUG(5,("function lsa_Delete replied async\n"));
    1597             :                 }
    1598           8 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1599           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Delete, NDR_OUT | NDR_SET_VALUES, r2);
    1600             :                 }
    1601           8 :                 if (dce_call->fault_code != 0) {
    1602           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Delete\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1603             :                 }
    1604           8 :                 break;
    1605             :         }
    1606           2 :         case 2: { /* lsa_EnumPrivs */
    1607           2 :                 struct lsa_EnumPrivs *r2 = (struct lsa_EnumPrivs *)r;
    1608           2 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1609           0 :                         DEBUG(5,("function lsa_EnumPrivs replied async\n"));
    1610             :                 }
    1611           2 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1612           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumPrivs, NDR_OUT | NDR_SET_VALUES, r2);
    1613             :                 }
    1614           2 :                 if (dce_call->fault_code != 0) {
    1615           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_EnumPrivs\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1616             :                 }
    1617           2 :                 break;
    1618             :         }
    1619          12 :         case 3: { /* lsa_QuerySecurity */
    1620          12 :                 struct lsa_QuerySecurity *r2 = (struct lsa_QuerySecurity *)r;
    1621          12 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1622           0 :                         DEBUG(5,("function lsa_QuerySecurity replied async\n"));
    1623             :                 }
    1624          12 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1625           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QuerySecurity, NDR_OUT | NDR_SET_VALUES, r2);
    1626             :                 }
    1627          12 :                 if (dce_call->fault_code != 0) {
    1628           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_QuerySecurity\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1629             :                 }
    1630          12 :                 break;
    1631             :         }
    1632           0 :         case 4: { /* lsa_SetSecObj */
    1633           0 :                 struct lsa_SetSecObj *r2 = (struct lsa_SetSecObj *)r;
    1634           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1635           0 :                         DEBUG(5,("function lsa_SetSecObj replied async\n"));
    1636             :                 }
    1637           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1638           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetSecObj, NDR_OUT | NDR_SET_VALUES, r2);
    1639             :                 }
    1640           0 :                 if (dce_call->fault_code != 0) {
    1641           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_SetSecObj\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1642             :                 }
    1643           0 :                 break;
    1644             :         }
    1645           0 :         case 5: { /* lsa_ChangePassword */
    1646           0 :                 struct lsa_ChangePassword *r2 = (struct lsa_ChangePassword *)r;
    1647           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1648           0 :                         DEBUG(5,("function lsa_ChangePassword replied async\n"));
    1649             :                 }
    1650           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1651           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_ChangePassword, NDR_OUT | NDR_SET_VALUES, r2);
    1652             :                 }
    1653           0 :                 if (dce_call->fault_code != 0) {
    1654           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_ChangePassword\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1655             :                 }
    1656           0 :                 break;
    1657             :         }
    1658        1548 :         case 6: { /* lsa_OpenPolicy */
    1659        1548 :                 struct lsa_OpenPolicy *r2 = (struct lsa_OpenPolicy *)r;
    1660        1548 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1661           0 :                         DEBUG(5,("function lsa_OpenPolicy replied async\n"));
    1662             :                 }
    1663        1548 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1664           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenPolicy, NDR_OUT | NDR_SET_VALUES, r2);
    1665             :                 }
    1666        1548 :                 if (dce_call->fault_code != 0) {
    1667           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_OpenPolicy\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1668             :                 }
    1669        1548 :                 break;
    1670             :         }
    1671         858 :         case 7: { /* lsa_QueryInfoPolicy */
    1672         858 :                 struct lsa_QueryInfoPolicy *r2 = (struct lsa_QueryInfoPolicy *)r;
    1673         858 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1674           0 :                         DEBUG(5,("function lsa_QueryInfoPolicy replied async\n"));
    1675             :                 }
    1676         858 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1677           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QueryInfoPolicy, NDR_OUT | NDR_SET_VALUES, r2);
    1678             :                 }
    1679         858 :                 if (dce_call->fault_code != 0) {
    1680           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_QueryInfoPolicy\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1681             :                 }
    1682         858 :                 break;
    1683             :         }
    1684           0 :         case 8: { /* lsa_SetInfoPolicy */
    1685           0 :                 struct lsa_SetInfoPolicy *r2 = (struct lsa_SetInfoPolicy *)r;
    1686           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1687           0 :                         DEBUG(5,("function lsa_SetInfoPolicy replied async\n"));
    1688             :                 }
    1689           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1690           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetInfoPolicy, NDR_OUT | NDR_SET_VALUES, r2);
    1691             :                 }
    1692           0 :                 if (dce_call->fault_code != 0) {
    1693           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_SetInfoPolicy\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1694             :                 }
    1695           0 :                 break;
    1696             :         }
    1697           0 :         case 9: { /* lsa_ClearAuditLog */
    1698           0 :                 struct lsa_ClearAuditLog *r2 = (struct lsa_ClearAuditLog *)r;
    1699           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1700           0 :                         DEBUG(5,("function lsa_ClearAuditLog replied async\n"));
    1701             :                 }
    1702           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1703           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_ClearAuditLog, NDR_OUT | NDR_SET_VALUES, r2);
    1704             :                 }
    1705           0 :                 if (dce_call->fault_code != 0) {
    1706           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_ClearAuditLog\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1707             :                 }
    1708           0 :                 break;
    1709             :         }
    1710           2 :         case 10: { /* lsa_CreateAccount */
    1711           2 :                 struct lsa_CreateAccount *r2 = (struct lsa_CreateAccount *)r;
    1712           2 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1713           0 :                         DEBUG(5,("function lsa_CreateAccount replied async\n"));
    1714             :                 }
    1715           2 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1716           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CreateAccount, NDR_OUT | NDR_SET_VALUES, r2);
    1717             :                 }
    1718           2 :                 if (dce_call->fault_code != 0) {
    1719           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CreateAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1720             :                 }
    1721           2 :                 break;
    1722             :         }
    1723          10 :         case 11: { /* lsa_EnumAccounts */
    1724          10 :                 struct lsa_EnumAccounts *r2 = (struct lsa_EnumAccounts *)r;
    1725          10 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1726           0 :                         DEBUG(5,("function lsa_EnumAccounts replied async\n"));
    1727             :                 }
    1728          10 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1729           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumAccounts, NDR_OUT | NDR_SET_VALUES, r2);
    1730             :                 }
    1731          10 :                 if (dce_call->fault_code != 0) {
    1732           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_EnumAccounts\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1733             :                 }
    1734          10 :                 break;
    1735             :         }
    1736           0 :         case 12: { /* lsa_CreateTrustedDomain */
    1737           0 :                 struct lsa_CreateTrustedDomain *r2 = (struct lsa_CreateTrustedDomain *)r;
    1738           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1739           0 :                         DEBUG(5,("function lsa_CreateTrustedDomain replied async\n"));
    1740             :                 }
    1741           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1742           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomain, NDR_OUT | NDR_SET_VALUES, r2);
    1743             :                 }
    1744           0 :                 if (dce_call->fault_code != 0) {
    1745           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CreateTrustedDomain\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1746             :                 }
    1747           0 :                 break;
    1748             :         }
    1749           0 :         case 13: { /* lsa_EnumTrustDom */
    1750           0 :                 struct lsa_EnumTrustDom *r2 = (struct lsa_EnumTrustDom *)r;
    1751           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1752           0 :                         DEBUG(5,("function lsa_EnumTrustDom replied async\n"));
    1753             :                 }
    1754           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1755           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumTrustDom, NDR_OUT | NDR_SET_VALUES, r2);
    1756             :                 }
    1757           0 :                 if (dce_call->fault_code != 0) {
    1758           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_EnumTrustDom\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1759             :                 }
    1760           0 :                 break;
    1761             :         }
    1762         318 :         case 14: { /* lsa_LookupNames */
    1763         318 :                 struct lsa_LookupNames *r2 = (struct lsa_LookupNames *)r;
    1764         318 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1765           0 :                         DEBUG(5,("function lsa_LookupNames replied async\n"));
    1766             :                 }
    1767         318 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1768           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames, NDR_OUT | NDR_SET_VALUES, r2);
    1769             :                 }
    1770         318 :                 if (dce_call->fault_code != 0) {
    1771           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LookupNames\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1772             :                 }
    1773         318 :                 break;
    1774             :         }
    1775        3114 :         case 15: { /* lsa_LookupSids */
    1776        3114 :                 struct lsa_LookupSids *r2 = (struct lsa_LookupSids *)r;
    1777        3114 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1778           0 :                         DEBUG(5,("function lsa_LookupSids replied async\n"));
    1779             :                 }
    1780        3114 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1781           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupSids, NDR_OUT | NDR_SET_VALUES, r2);
    1782             :                 }
    1783        3114 :                 if (dce_call->fault_code != 0) {
    1784           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LookupSids\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1785             :                 }
    1786        3114 :                 break;
    1787             :         }
    1788         632 :         case 16: { /* lsa_CreateSecret */
    1789         632 :                 struct lsa_CreateSecret *r2 = (struct lsa_CreateSecret *)r;
    1790         632 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1791           0 :                         DEBUG(5,("function lsa_CreateSecret replied async\n"));
    1792             :                 }
    1793         632 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1794           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CreateSecret, NDR_OUT | NDR_SET_VALUES, r2);
    1795             :                 }
    1796         632 :                 if (dce_call->fault_code != 0) {
    1797           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CreateSecret\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1798             :                 }
    1799         632 :                 break;
    1800             :         }
    1801          16 :         case 17: { /* lsa_OpenAccount */
    1802          16 :                 struct lsa_OpenAccount *r2 = (struct lsa_OpenAccount *)r;
    1803          16 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1804           0 :                         DEBUG(5,("function lsa_OpenAccount replied async\n"));
    1805             :                 }
    1806          16 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1807           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenAccount, NDR_OUT | NDR_SET_VALUES, r2);
    1808             :                 }
    1809          16 :                 if (dce_call->fault_code != 0) {
    1810           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_OpenAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1811             :                 }
    1812          16 :                 break;
    1813             :         }
    1814          12 :         case 18: { /* lsa_EnumPrivsAccount */
    1815          12 :                 struct lsa_EnumPrivsAccount *r2 = (struct lsa_EnumPrivsAccount *)r;
    1816          12 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1817           0 :                         DEBUG(5,("function lsa_EnumPrivsAccount replied async\n"));
    1818             :                 }
    1819          12 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1820           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumPrivsAccount, NDR_OUT | NDR_SET_VALUES, r2);
    1821             :                 }
    1822          12 :                 if (dce_call->fault_code != 0) {
    1823           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_EnumPrivsAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1824             :                 }
    1825          12 :                 break;
    1826             :         }
    1827           2 :         case 19: { /* lsa_AddPrivilegesToAccount */
    1828           2 :                 struct lsa_AddPrivilegesToAccount *r2 = (struct lsa_AddPrivilegesToAccount *)r;
    1829           2 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1830           0 :                         DEBUG(5,("function lsa_AddPrivilegesToAccount replied async\n"));
    1831             :                 }
    1832           2 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1833           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_AddPrivilegesToAccount, NDR_OUT | NDR_SET_VALUES, r2);
    1834             :                 }
    1835           2 :                 if (dce_call->fault_code != 0) {
    1836           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_AddPrivilegesToAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1837             :                 }
    1838           2 :                 break;
    1839             :         }
    1840           2 :         case 20: { /* lsa_RemovePrivilegesFromAccount */
    1841           2 :                 struct lsa_RemovePrivilegesFromAccount *r2 = (struct lsa_RemovePrivilegesFromAccount *)r;
    1842           2 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1843           0 :                         DEBUG(5,("function lsa_RemovePrivilegesFromAccount replied async\n"));
    1844             :                 }
    1845           2 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1846           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_RemovePrivilegesFromAccount, NDR_OUT | NDR_SET_VALUES, r2);
    1847             :                 }
    1848           2 :                 if (dce_call->fault_code != 0) {
    1849           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_RemovePrivilegesFromAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1850             :                 }
    1851           2 :                 break;
    1852             :         }
    1853           0 :         case 21: { /* lsa_GetQuotasForAccount */
    1854           0 :                 struct lsa_GetQuotasForAccount *r2 = (struct lsa_GetQuotasForAccount *)r;
    1855           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1856           0 :                         DEBUG(5,("function lsa_GetQuotasForAccount replied async\n"));
    1857             :                 }
    1858           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1859           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_GetQuotasForAccount, NDR_OUT | NDR_SET_VALUES, r2);
    1860             :                 }
    1861           0 :                 if (dce_call->fault_code != 0) {
    1862           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_GetQuotasForAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1863             :                 }
    1864           0 :                 break;
    1865             :         }
    1866           0 :         case 22: { /* lsa_SetQuotasForAccount */
    1867           0 :                 struct lsa_SetQuotasForAccount *r2 = (struct lsa_SetQuotasForAccount *)r;
    1868           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1869           0 :                         DEBUG(5,("function lsa_SetQuotasForAccount replied async\n"));
    1870             :                 }
    1871           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1872           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetQuotasForAccount, NDR_OUT | NDR_SET_VALUES, r2);
    1873             :                 }
    1874           0 :                 if (dce_call->fault_code != 0) {
    1875           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_SetQuotasForAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1876             :                 }
    1877           0 :                 break;
    1878             :         }
    1879          16 :         case 23: { /* lsa_GetSystemAccessAccount */
    1880          16 :                 struct lsa_GetSystemAccessAccount *r2 = (struct lsa_GetSystemAccessAccount *)r;
    1881          16 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1882           0 :                         DEBUG(5,("function lsa_GetSystemAccessAccount replied async\n"));
    1883             :                 }
    1884          16 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1885           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_GetSystemAccessAccount, NDR_OUT | NDR_SET_VALUES, r2);
    1886             :                 }
    1887          16 :                 if (dce_call->fault_code != 0) {
    1888           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_GetSystemAccessAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1889             :                 }
    1890          16 :                 break;
    1891             :         }
    1892           0 :         case 24: { /* lsa_SetSystemAccessAccount */
    1893           0 :                 struct lsa_SetSystemAccessAccount *r2 = (struct lsa_SetSystemAccessAccount *)r;
    1894           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1895           0 :                         DEBUG(5,("function lsa_SetSystemAccessAccount replied async\n"));
    1896             :                 }
    1897           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1898           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetSystemAccessAccount, NDR_OUT | NDR_SET_VALUES, r2);
    1899             :                 }
    1900           0 :                 if (dce_call->fault_code != 0) {
    1901           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_SetSystemAccessAccount\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1902             :                 }
    1903           0 :                 break;
    1904             :         }
    1905           0 :         case 25: { /* lsa_OpenTrustedDomain */
    1906           0 :                 struct lsa_OpenTrustedDomain *r2 = (struct lsa_OpenTrustedDomain *)r;
    1907           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1908           0 :                         DEBUG(5,("function lsa_OpenTrustedDomain replied async\n"));
    1909             :                 }
    1910           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1911           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenTrustedDomain, NDR_OUT | NDR_SET_VALUES, r2);
    1912             :                 }
    1913           0 :                 if (dce_call->fault_code != 0) {
    1914           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_OpenTrustedDomain\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1915             :                 }
    1916           0 :                 break;
    1917             :         }
    1918           0 :         case 26: { /* lsa_QueryTrustedDomainInfo */
    1919           0 :                 struct lsa_QueryTrustedDomainInfo *r2 = (struct lsa_QueryTrustedDomainInfo *)r;
    1920           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1921           0 :                         DEBUG(5,("function lsa_QueryTrustedDomainInfo replied async\n"));
    1922             :                 }
    1923           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1924           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QueryTrustedDomainInfo, NDR_OUT | NDR_SET_VALUES, r2);
    1925             :                 }
    1926           0 :                 if (dce_call->fault_code != 0) {
    1927           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_QueryTrustedDomainInfo\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1928             :                 }
    1929           0 :                 break;
    1930             :         }
    1931           0 :         case 27: { /* lsa_SetInformationTrustedDomain */
    1932           0 :                 struct lsa_SetInformationTrustedDomain *r2 = (struct lsa_SetInformationTrustedDomain *)r;
    1933           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1934           0 :                         DEBUG(5,("function lsa_SetInformationTrustedDomain replied async\n"));
    1935             :                 }
    1936           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1937           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetInformationTrustedDomain, NDR_OUT | NDR_SET_VALUES, r2);
    1938             :                 }
    1939           0 :                 if (dce_call->fault_code != 0) {
    1940           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_SetInformationTrustedDomain\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1941             :                 }
    1942           0 :                 break;
    1943             :         }
    1944           8 :         case 28: { /* lsa_OpenSecret */
    1945           8 :                 struct lsa_OpenSecret *r2 = (struct lsa_OpenSecret *)r;
    1946           8 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1947           0 :                         DEBUG(5,("function lsa_OpenSecret replied async\n"));
    1948             :                 }
    1949           8 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1950           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenSecret, NDR_OUT | NDR_SET_VALUES, r2);
    1951             :                 }
    1952           8 :                 if (dce_call->fault_code != 0) {
    1953           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_OpenSecret\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1954             :                 }
    1955           8 :                 break;
    1956             :         }
    1957         848 :         case 29: { /* lsa_SetSecret */
    1958         848 :                 struct lsa_SetSecret *r2 = (struct lsa_SetSecret *)r;
    1959         848 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1960           0 :                         DEBUG(5,("function lsa_SetSecret replied async\n"));
    1961             :                 }
    1962         848 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1963           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetSecret, NDR_OUT | NDR_SET_VALUES, r2);
    1964             :                 }
    1965         848 :                 if (dce_call->fault_code != 0) {
    1966           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_SetSecret\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1967             :                 }
    1968         848 :                 break;
    1969             :         }
    1970         428 :         case 30: { /* lsa_QuerySecret */
    1971         428 :                 struct lsa_QuerySecret *r2 = (struct lsa_QuerySecret *)r;
    1972         428 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1973           0 :                         DEBUG(5,("function lsa_QuerySecret replied async\n"));
    1974             :                 }
    1975         428 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1976           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QuerySecret, NDR_OUT | NDR_SET_VALUES, r2);
    1977             :                 }
    1978         428 :                 if (dce_call->fault_code != 0) {
    1979           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_QuerySecret\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1980             :                 }
    1981         428 :                 break;
    1982             :         }
    1983          20 :         case 31: { /* lsa_LookupPrivValue */
    1984          20 :                 struct lsa_LookupPrivValue *r2 = (struct lsa_LookupPrivValue *)r;
    1985          20 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1986           0 :                         DEBUG(5,("function lsa_LookupPrivValue replied async\n"));
    1987             :                 }
    1988          20 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    1989           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupPrivValue, NDR_OUT | NDR_SET_VALUES, r2);
    1990             :                 }
    1991          20 :                 if (dce_call->fault_code != 0) {
    1992           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LookupPrivValue\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    1993             :                 }
    1994          20 :                 break;
    1995             :         }
    1996          50 :         case 32: { /* lsa_LookupPrivName */
    1997          50 :                 struct lsa_LookupPrivName *r2 = (struct lsa_LookupPrivName *)r;
    1998          50 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    1999           0 :                         DEBUG(5,("function lsa_LookupPrivName replied async\n"));
    2000             :                 }
    2001          50 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2002           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupPrivName, NDR_OUT | NDR_SET_VALUES, r2);
    2003             :                 }
    2004          50 :                 if (dce_call->fault_code != 0) {
    2005           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LookupPrivName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2006             :                 }
    2007          50 :                 break;
    2008             :         }
    2009          18 :         case 33: { /* lsa_LookupPrivDisplayName */
    2010          18 :                 struct lsa_LookupPrivDisplayName *r2 = (struct lsa_LookupPrivDisplayName *)r;
    2011          18 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2012           0 :                         DEBUG(5,("function lsa_LookupPrivDisplayName replied async\n"));
    2013             :                 }
    2014          18 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2015           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupPrivDisplayName, NDR_OUT | NDR_SET_VALUES, r2);
    2016             :                 }
    2017          18 :                 if (dce_call->fault_code != 0) {
    2018           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LookupPrivDisplayName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2019             :                 }
    2020          18 :                 break;
    2021             :         }
    2022         636 :         case 34: { /* lsa_DeleteObject */
    2023         636 :                 struct lsa_DeleteObject *r2 = (struct lsa_DeleteObject *)r;
    2024         636 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2025           0 :                         DEBUG(5,("function lsa_DeleteObject replied async\n"));
    2026             :                 }
    2027         636 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2028           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_DeleteObject, NDR_OUT | NDR_SET_VALUES, r2);
    2029             :                 }
    2030         636 :                 if (dce_call->fault_code != 0) {
    2031           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_DeleteObject\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2032             :                 }
    2033         636 :                 break;
    2034             :         }
    2035          18 :         case 35: { /* lsa_EnumAccountsWithUserRight */
    2036          18 :                 struct lsa_EnumAccountsWithUserRight *r2 = (struct lsa_EnumAccountsWithUserRight *)r;
    2037          18 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2038           0 :                         DEBUG(5,("function lsa_EnumAccountsWithUserRight replied async\n"));
    2039             :                 }
    2040          18 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2041           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumAccountsWithUserRight, NDR_OUT | NDR_SET_VALUES, r2);
    2042             :                 }
    2043          18 :                 if (dce_call->fault_code != 0) {
    2044           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_EnumAccountsWithUserRight\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2045             :                 }
    2046          18 :                 break;
    2047             :         }
    2048         116 :         case 36: { /* lsa_EnumAccountRights */
    2049         116 :                 struct lsa_EnumAccountRights *r2 = (struct lsa_EnumAccountRights *)r;
    2050         116 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2051           0 :                         DEBUG(5,("function lsa_EnumAccountRights replied async\n"));
    2052             :                 }
    2053         116 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2054           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumAccountRights, NDR_OUT | NDR_SET_VALUES, r2);
    2055             :                 }
    2056         116 :                 if (dce_call->fault_code != 0) {
    2057           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_EnumAccountRights\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2058             :                 }
    2059         116 :                 break;
    2060             :         }
    2061          26 :         case 37: { /* lsa_AddAccountRights */
    2062          26 :                 struct lsa_AddAccountRights *r2 = (struct lsa_AddAccountRights *)r;
    2063          26 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2064           0 :                         DEBUG(5,("function lsa_AddAccountRights replied async\n"));
    2065             :                 }
    2066          26 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2067           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_AddAccountRights, NDR_OUT | NDR_SET_VALUES, r2);
    2068             :                 }
    2069          26 :                 if (dce_call->fault_code != 0) {
    2070           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_AddAccountRights\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2071             :                 }
    2072          26 :                 break;
    2073             :         }
    2074          20 :         case 38: { /* lsa_RemoveAccountRights */
    2075          20 :                 struct lsa_RemoveAccountRights *r2 = (struct lsa_RemoveAccountRights *)r;
    2076          20 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2077           0 :                         DEBUG(5,("function lsa_RemoveAccountRights replied async\n"));
    2078             :                 }
    2079          20 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2080           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_RemoveAccountRights, NDR_OUT | NDR_SET_VALUES, r2);
    2081             :                 }
    2082          20 :                 if (dce_call->fault_code != 0) {
    2083           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_RemoveAccountRights\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2084             :                 }
    2085          20 :                 break;
    2086             :         }
    2087           0 :         case 39: { /* lsa_QueryTrustedDomainInfoBySid */
    2088           0 :                 struct lsa_QueryTrustedDomainInfoBySid *r2 = (struct lsa_QueryTrustedDomainInfoBySid *)r;
    2089           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2090           0 :                         DEBUG(5,("function lsa_QueryTrustedDomainInfoBySid replied async\n"));
    2091             :                 }
    2092           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2093           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QueryTrustedDomainInfoBySid, NDR_OUT | NDR_SET_VALUES, r2);
    2094             :                 }
    2095           0 :                 if (dce_call->fault_code != 0) {
    2096           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_QueryTrustedDomainInfoBySid\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2097             :                 }
    2098           0 :                 break;
    2099             :         }
    2100           0 :         case 40: { /* lsa_SetTrustedDomainInfo */
    2101           0 :                 struct lsa_SetTrustedDomainInfo *r2 = (struct lsa_SetTrustedDomainInfo *)r;
    2102           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2103           0 :                         DEBUG(5,("function lsa_SetTrustedDomainInfo replied async\n"));
    2104             :                 }
    2105           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2106           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetTrustedDomainInfo, NDR_OUT | NDR_SET_VALUES, r2);
    2107             :                 }
    2108           0 :                 if (dce_call->fault_code != 0) {
    2109           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_SetTrustedDomainInfo\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2110             :                 }
    2111           0 :                 break;
    2112             :         }
    2113           0 :         case 41: { /* lsa_DeleteTrustedDomain */
    2114           0 :                 struct lsa_DeleteTrustedDomain *r2 = (struct lsa_DeleteTrustedDomain *)r;
    2115           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2116           0 :                         DEBUG(5,("function lsa_DeleteTrustedDomain replied async\n"));
    2117             :                 }
    2118           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2119           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_DeleteTrustedDomain, NDR_OUT | NDR_SET_VALUES, r2);
    2120             :                 }
    2121           0 :                 if (dce_call->fault_code != 0) {
    2122           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_DeleteTrustedDomain\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2123             :                 }
    2124           0 :                 break;
    2125             :         }
    2126           0 :         case 42: { /* lsa_StorePrivateData */
    2127           0 :                 struct lsa_StorePrivateData *r2 = (struct lsa_StorePrivateData *)r;
    2128           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2129           0 :                         DEBUG(5,("function lsa_StorePrivateData replied async\n"));
    2130             :                 }
    2131           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2132           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_StorePrivateData, NDR_OUT | NDR_SET_VALUES, r2);
    2133             :                 }
    2134           0 :                 if (dce_call->fault_code != 0) {
    2135           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_StorePrivateData\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2136             :                 }
    2137           0 :                 break;
    2138             :         }
    2139           0 :         case 43: { /* lsa_RetrievePrivateData */
    2140           0 :                 struct lsa_RetrievePrivateData *r2 = (struct lsa_RetrievePrivateData *)r;
    2141           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2142           0 :                         DEBUG(5,("function lsa_RetrievePrivateData replied async\n"));
    2143             :                 }
    2144           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2145           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_RetrievePrivateData, NDR_OUT | NDR_SET_VALUES, r2);
    2146             :                 }
    2147           0 :                 if (dce_call->fault_code != 0) {
    2148           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_RetrievePrivateData\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2149             :                 }
    2150           0 :                 break;
    2151             :         }
    2152         878 :         case 44: { /* lsa_OpenPolicy2 */
    2153         878 :                 struct lsa_OpenPolicy2 *r2 = (struct lsa_OpenPolicy2 *)r;
    2154         878 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2155           0 :                         DEBUG(5,("function lsa_OpenPolicy2 replied async\n"));
    2156             :                 }
    2157         878 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2158           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenPolicy2, NDR_OUT | NDR_SET_VALUES, r2);
    2159             :                 }
    2160         878 :                 if (dce_call->fault_code != 0) {
    2161           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_OpenPolicy2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2162             :                 }
    2163         878 :                 break;
    2164             :         }
    2165         394 :         case 45: { /* lsa_GetUserName */
    2166         394 :                 struct lsa_GetUserName *r2 = (struct lsa_GetUserName *)r;
    2167         394 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2168           0 :                         DEBUG(5,("function lsa_GetUserName replied async\n"));
    2169             :                 }
    2170         394 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2171           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_GetUserName, NDR_OUT | NDR_SET_VALUES, r2);
    2172             :                 }
    2173         394 :                 if (dce_call->fault_code != 0) {
    2174           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_GetUserName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2175             :                 }
    2176         394 :                 break;
    2177             :         }
    2178           2 :         case 46: { /* lsa_QueryInfoPolicy2 */
    2179           2 :                 struct lsa_QueryInfoPolicy2 *r2 = (struct lsa_QueryInfoPolicy2 *)r;
    2180           2 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2181           0 :                         DEBUG(5,("function lsa_QueryInfoPolicy2 replied async\n"));
    2182             :                 }
    2183           2 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2184           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QueryInfoPolicy2, NDR_OUT | NDR_SET_VALUES, r2);
    2185             :                 }
    2186           2 :                 if (dce_call->fault_code != 0) {
    2187           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_QueryInfoPolicy2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2188             :                 }
    2189           2 :                 break;
    2190             :         }
    2191           0 :         case 47: { /* lsa_SetInfoPolicy2 */
    2192           0 :                 struct lsa_SetInfoPolicy2 *r2 = (struct lsa_SetInfoPolicy2 *)r;
    2193           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2194           0 :                         DEBUG(5,("function lsa_SetInfoPolicy2 replied async\n"));
    2195             :                 }
    2196           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2197           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetInfoPolicy2, NDR_OUT | NDR_SET_VALUES, r2);
    2198             :                 }
    2199           0 :                 if (dce_call->fault_code != 0) {
    2200           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_SetInfoPolicy2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2201             :                 }
    2202           0 :                 break;
    2203             :         }
    2204           0 :         case 48: { /* lsa_QueryTrustedDomainInfoByName */
    2205           0 :                 struct lsa_QueryTrustedDomainInfoByName *r2 = (struct lsa_QueryTrustedDomainInfoByName *)r;
    2206           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2207           0 :                         DEBUG(5,("function lsa_QueryTrustedDomainInfoByName replied async\n"));
    2208             :                 }
    2209           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2210           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QueryTrustedDomainInfoByName, NDR_OUT | NDR_SET_VALUES, r2);
    2211             :                 }
    2212           0 :                 if (dce_call->fault_code != 0) {
    2213           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_QueryTrustedDomainInfoByName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2214             :                 }
    2215           0 :                 break;
    2216             :         }
    2217           0 :         case 49: { /* lsa_SetTrustedDomainInfoByName */
    2218           0 :                 struct lsa_SetTrustedDomainInfoByName *r2 = (struct lsa_SetTrustedDomainInfoByName *)r;
    2219           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2220           0 :                         DEBUG(5,("function lsa_SetTrustedDomainInfoByName replied async\n"));
    2221             :                 }
    2222           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2223           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetTrustedDomainInfoByName, NDR_OUT | NDR_SET_VALUES, r2);
    2224             :                 }
    2225           0 :                 if (dce_call->fault_code != 0) {
    2226           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_SetTrustedDomainInfoByName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2227             :                 }
    2228           0 :                 break;
    2229             :         }
    2230           0 :         case 50: { /* lsa_EnumTrustedDomainsEx */
    2231           0 :                 struct lsa_EnumTrustedDomainsEx *r2 = (struct lsa_EnumTrustedDomainsEx *)r;
    2232           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2233           0 :                         DEBUG(5,("function lsa_EnumTrustedDomainsEx replied async\n"));
    2234             :                 }
    2235           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2236           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_EnumTrustedDomainsEx, NDR_OUT | NDR_SET_VALUES, r2);
    2237             :                 }
    2238           0 :                 if (dce_call->fault_code != 0) {
    2239           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_EnumTrustedDomainsEx\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2240             :                 }
    2241           0 :                 break;
    2242             :         }
    2243           0 :         case 51: { /* lsa_CreateTrustedDomainEx */
    2244           0 :                 struct lsa_CreateTrustedDomainEx *r2 = (struct lsa_CreateTrustedDomainEx *)r;
    2245           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2246           0 :                         DEBUG(5,("function lsa_CreateTrustedDomainEx replied async\n"));
    2247             :                 }
    2248           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2249           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomainEx, NDR_OUT | NDR_SET_VALUES, r2);
    2250             :                 }
    2251           0 :                 if (dce_call->fault_code != 0) {
    2252           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CreateTrustedDomainEx\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2253             :                 }
    2254           0 :                 break;
    2255             :         }
    2256           0 :         case 52: { /* lsa_CloseTrustedDomainEx */
    2257           0 :                 struct lsa_CloseTrustedDomainEx *r2 = (struct lsa_CloseTrustedDomainEx *)r;
    2258           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2259           0 :                         DEBUG(5,("function lsa_CloseTrustedDomainEx replied async\n"));
    2260             :                 }
    2261           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2262           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CloseTrustedDomainEx, NDR_OUT | NDR_SET_VALUES, r2);
    2263             :                 }
    2264           0 :                 if (dce_call->fault_code != 0) {
    2265           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CloseTrustedDomainEx\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2266             :                 }
    2267           0 :                 break;
    2268             :         }
    2269           0 :         case 53: { /* lsa_QueryDomainInformationPolicy */
    2270           0 :                 struct lsa_QueryDomainInformationPolicy *r2 = (struct lsa_QueryDomainInformationPolicy *)r;
    2271           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2272           0 :                         DEBUG(5,("function lsa_QueryDomainInformationPolicy replied async\n"));
    2273             :                 }
    2274           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2275           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_QueryDomainInformationPolicy, NDR_OUT | NDR_SET_VALUES, r2);
    2276             :                 }
    2277           0 :                 if (dce_call->fault_code != 0) {
    2278           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_QueryDomainInformationPolicy\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2279             :                 }
    2280           0 :                 break;
    2281             :         }
    2282           0 :         case 54: { /* lsa_SetDomainInformationPolicy */
    2283           0 :                 struct lsa_SetDomainInformationPolicy *r2 = (struct lsa_SetDomainInformationPolicy *)r;
    2284           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2285           0 :                         DEBUG(5,("function lsa_SetDomainInformationPolicy replied async\n"));
    2286             :                 }
    2287           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2288           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_SetDomainInformationPolicy, NDR_OUT | NDR_SET_VALUES, r2);
    2289             :                 }
    2290           0 :                 if (dce_call->fault_code != 0) {
    2291           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_SetDomainInformationPolicy\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2292             :                 }
    2293           0 :                 break;
    2294             :         }
    2295           0 :         case 55: { /* lsa_OpenTrustedDomainByName */
    2296           0 :                 struct lsa_OpenTrustedDomainByName *r2 = (struct lsa_OpenTrustedDomainByName *)r;
    2297           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2298           0 :                         DEBUG(5,("function lsa_OpenTrustedDomainByName replied async\n"));
    2299             :                 }
    2300           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2301           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenTrustedDomainByName, NDR_OUT | NDR_SET_VALUES, r2);
    2302             :                 }
    2303           0 :                 if (dce_call->fault_code != 0) {
    2304           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_OpenTrustedDomainByName\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2305             :                 }
    2306           0 :                 break;
    2307             :         }
    2308           0 :         case 56: { /* lsa_TestCall */
    2309           0 :                 struct lsa_TestCall *r2 = (struct lsa_TestCall *)r;
    2310           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2311           0 :                         DEBUG(5,("function lsa_TestCall replied async\n"));
    2312             :                 }
    2313           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2314           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_TestCall, NDR_OUT | NDR_SET_VALUES, r2);
    2315             :                 }
    2316           0 :                 if (dce_call->fault_code != 0) {
    2317           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_TestCall\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2318             :                 }
    2319           0 :                 break;
    2320             :         }
    2321           2 :         case 57: { /* lsa_LookupSids2 */
    2322           2 :                 struct lsa_LookupSids2 *r2 = (struct lsa_LookupSids2 *)r;
    2323           2 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2324           0 :                         DEBUG(5,("function lsa_LookupSids2 replied async\n"));
    2325             :                 }
    2326           2 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2327           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupSids2, NDR_OUT | NDR_SET_VALUES, r2);
    2328             :                 }
    2329           2 :                 if (dce_call->fault_code != 0) {
    2330           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LookupSids2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2331             :                 }
    2332           2 :                 break;
    2333             :         }
    2334           4 :         case 58: { /* lsa_LookupNames2 */
    2335           4 :                 struct lsa_LookupNames2 *r2 = (struct lsa_LookupNames2 *)r;
    2336           4 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2337           0 :                         DEBUG(5,("function lsa_LookupNames2 replied async\n"));
    2338             :                 }
    2339           4 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2340           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames2, NDR_OUT | NDR_SET_VALUES, r2);
    2341             :                 }
    2342           4 :                 if (dce_call->fault_code != 0) {
    2343           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LookupNames2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2344             :                 }
    2345           4 :                 break;
    2346             :         }
    2347           0 :         case 59: { /* lsa_CreateTrustedDomainEx2 */
    2348           0 :                 struct lsa_CreateTrustedDomainEx2 *r2 = (struct lsa_CreateTrustedDomainEx2 *)r;
    2349           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2350           0 :                         DEBUG(5,("function lsa_CreateTrustedDomainEx2 replied async\n"));
    2351             :                 }
    2352           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2353           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomainEx2, NDR_OUT | NDR_SET_VALUES, r2);
    2354             :                 }
    2355           0 :                 if (dce_call->fault_code != 0) {
    2356           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CreateTrustedDomainEx2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2357             :                 }
    2358           0 :                 break;
    2359             :         }
    2360           0 :         case 60: { /* lsa_CREDRWRITE */
    2361           0 :                 struct lsa_CREDRWRITE *r2 = (struct lsa_CREDRWRITE *)r;
    2362           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2363           0 :                         DEBUG(5,("function lsa_CREDRWRITE replied async\n"));
    2364             :                 }
    2365           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2366           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRWRITE, NDR_OUT | NDR_SET_VALUES, r2);
    2367             :                 }
    2368           0 :                 if (dce_call->fault_code != 0) {
    2369           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CREDRWRITE\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2370             :                 }
    2371           0 :                 break;
    2372             :         }
    2373           0 :         case 61: { /* lsa_CREDRREAD */
    2374           0 :                 struct lsa_CREDRREAD *r2 = (struct lsa_CREDRREAD *)r;
    2375           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2376           0 :                         DEBUG(5,("function lsa_CREDRREAD replied async\n"));
    2377             :                 }
    2378           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2379           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRREAD, NDR_OUT | NDR_SET_VALUES, r2);
    2380             :                 }
    2381           0 :                 if (dce_call->fault_code != 0) {
    2382           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CREDRREAD\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2383             :                 }
    2384           0 :                 break;
    2385             :         }
    2386           0 :         case 62: { /* lsa_CREDRENUMERATE */
    2387           0 :                 struct lsa_CREDRENUMERATE *r2 = (struct lsa_CREDRENUMERATE *)r;
    2388           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2389           0 :                         DEBUG(5,("function lsa_CREDRENUMERATE replied async\n"));
    2390             :                 }
    2391           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2392           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRENUMERATE, NDR_OUT | NDR_SET_VALUES, r2);
    2393             :                 }
    2394           0 :                 if (dce_call->fault_code != 0) {
    2395           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CREDRENUMERATE\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2396             :                 }
    2397           0 :                 break;
    2398             :         }
    2399           0 :         case 63: { /* lsa_CREDRWRITEDOMAINCREDENTIALS */
    2400           0 :                 struct lsa_CREDRWRITEDOMAINCREDENTIALS *r2 = (struct lsa_CREDRWRITEDOMAINCREDENTIALS *)r;
    2401           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2402           0 :                         DEBUG(5,("function lsa_CREDRWRITEDOMAINCREDENTIALS replied async\n"));
    2403             :                 }
    2404           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2405           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, NDR_OUT | NDR_SET_VALUES, r2);
    2406             :                 }
    2407           0 :                 if (dce_call->fault_code != 0) {
    2408           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CREDRWRITEDOMAINCREDENTIALS\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2409             :                 }
    2410           0 :                 break;
    2411             :         }
    2412           0 :         case 64: { /* lsa_CREDRREADDOMAINCREDENTIALS */
    2413           0 :                 struct lsa_CREDRREADDOMAINCREDENTIALS *r2 = (struct lsa_CREDRREADDOMAINCREDENTIALS *)r;
    2414           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2415           0 :                         DEBUG(5,("function lsa_CREDRREADDOMAINCREDENTIALS replied async\n"));
    2416             :                 }
    2417           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2418           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, NDR_OUT | NDR_SET_VALUES, r2);
    2419             :                 }
    2420           0 :                 if (dce_call->fault_code != 0) {
    2421           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CREDRREADDOMAINCREDENTIALS\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2422             :                 }
    2423           0 :                 break;
    2424             :         }
    2425           0 :         case 65: { /* lsa_CREDRDELETE */
    2426           0 :                 struct lsa_CREDRDELETE *r2 = (struct lsa_CREDRDELETE *)r;
    2427           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2428           0 :                         DEBUG(5,("function lsa_CREDRDELETE replied async\n"));
    2429             :                 }
    2430           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2431           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRDELETE, NDR_OUT | NDR_SET_VALUES, r2);
    2432             :                 }
    2433           0 :                 if (dce_call->fault_code != 0) {
    2434           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CREDRDELETE\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2435             :                 }
    2436           0 :                 break;
    2437             :         }
    2438           0 :         case 66: { /* lsa_CREDRGETTARGETINFO */
    2439           0 :                 struct lsa_CREDRGETTARGETINFO *r2 = (struct lsa_CREDRGETTARGETINFO *)r;
    2440           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2441           0 :                         DEBUG(5,("function lsa_CREDRGETTARGETINFO replied async\n"));
    2442             :                 }
    2443           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2444           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRGETTARGETINFO, NDR_OUT | NDR_SET_VALUES, r2);
    2445             :                 }
    2446           0 :                 if (dce_call->fault_code != 0) {
    2447           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CREDRGETTARGETINFO\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2448             :                 }
    2449           0 :                 break;
    2450             :         }
    2451           0 :         case 67: { /* lsa_CREDRPROFILELOADED */
    2452           0 :                 struct lsa_CREDRPROFILELOADED *r2 = (struct lsa_CREDRPROFILELOADED *)r;
    2453           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2454           0 :                         DEBUG(5,("function lsa_CREDRPROFILELOADED replied async\n"));
    2455             :                 }
    2456           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2457           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRPROFILELOADED, NDR_OUT | NDR_SET_VALUES, r2);
    2458             :                 }
    2459           0 :                 if (dce_call->fault_code != 0) {
    2460           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CREDRPROFILELOADED\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2461             :                 }
    2462           0 :                 break;
    2463             :         }
    2464           4 :         case 68: { /* lsa_LookupNames3 */
    2465           4 :                 struct lsa_LookupNames3 *r2 = (struct lsa_LookupNames3 *)r;
    2466           4 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2467           0 :                         DEBUG(5,("function lsa_LookupNames3 replied async\n"));
    2468             :                 }
    2469           4 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2470           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames3, NDR_OUT | NDR_SET_VALUES, r2);
    2471             :                 }
    2472           4 :                 if (dce_call->fault_code != 0) {
    2473           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LookupNames3\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2474             :                 }
    2475           4 :                 break;
    2476             :         }
    2477           0 :         case 69: { /* lsa_CREDRGETSESSIONTYPES */
    2478           0 :                 struct lsa_CREDRGETSESSIONTYPES *r2 = (struct lsa_CREDRGETSESSIONTYPES *)r;
    2479           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2480           0 :                         DEBUG(5,("function lsa_CREDRGETSESSIONTYPES replied async\n"));
    2481             :                 }
    2482           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2483           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRGETSESSIONTYPES, NDR_OUT | NDR_SET_VALUES, r2);
    2484             :                 }
    2485           0 :                 if (dce_call->fault_code != 0) {
    2486           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CREDRGETSESSIONTYPES\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2487             :                 }
    2488           0 :                 break;
    2489             :         }
    2490           0 :         case 70: { /* lsa_LSARREGISTERAUDITEVENT */
    2491           0 :                 struct lsa_LSARREGISTERAUDITEVENT *r2 = (struct lsa_LSARREGISTERAUDITEVENT *)r;
    2492           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2493           0 :                         DEBUG(5,("function lsa_LSARREGISTERAUDITEVENT replied async\n"));
    2494             :                 }
    2495           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2496           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSARREGISTERAUDITEVENT, NDR_OUT | NDR_SET_VALUES, r2);
    2497             :                 }
    2498           0 :                 if (dce_call->fault_code != 0) {
    2499           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LSARREGISTERAUDITEVENT\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2500             :                 }
    2501           0 :                 break;
    2502             :         }
    2503           0 :         case 71: { /* lsa_LSARGENAUDITEVENT */
    2504           0 :                 struct lsa_LSARGENAUDITEVENT *r2 = (struct lsa_LSARGENAUDITEVENT *)r;
    2505           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2506           0 :                         DEBUG(5,("function lsa_LSARGENAUDITEVENT replied async\n"));
    2507             :                 }
    2508           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2509           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSARGENAUDITEVENT, NDR_OUT | NDR_SET_VALUES, r2);
    2510             :                 }
    2511           0 :                 if (dce_call->fault_code != 0) {
    2512           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LSARGENAUDITEVENT\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2513             :                 }
    2514           0 :                 break;
    2515             :         }
    2516           0 :         case 72: { /* lsa_LSARUNREGISTERAUDITEVENT */
    2517           0 :                 struct lsa_LSARUNREGISTERAUDITEVENT *r2 = (struct lsa_LSARUNREGISTERAUDITEVENT *)r;
    2518           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2519           0 :                         DEBUG(5,("function lsa_LSARUNREGISTERAUDITEVENT replied async\n"));
    2520             :                 }
    2521           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2522           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, NDR_OUT | NDR_SET_VALUES, r2);
    2523             :                 }
    2524           0 :                 if (dce_call->fault_code != 0) {
    2525           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LSARUNREGISTERAUDITEVENT\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2526             :                 }
    2527           0 :                 break;
    2528             :         }
    2529           0 :         case 73: { /* lsa_lsaRQueryForestTrustInformation */
    2530           0 :                 struct lsa_lsaRQueryForestTrustInformation *r2 = (struct lsa_lsaRQueryForestTrustInformation *)r;
    2531           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2532           0 :                         DEBUG(5,("function lsa_lsaRQueryForestTrustInformation replied async\n"));
    2533             :                 }
    2534           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2535           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_lsaRQueryForestTrustInformation, NDR_OUT | NDR_SET_VALUES, r2);
    2536             :                 }
    2537           0 :                 if (dce_call->fault_code != 0) {
    2538           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_lsaRQueryForestTrustInformation\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2539             :                 }
    2540           0 :                 break;
    2541             :         }
    2542           0 :         case 74: { /* lsa_lsaRSetForestTrustInformation */
    2543           0 :                 struct lsa_lsaRSetForestTrustInformation *r2 = (struct lsa_lsaRSetForestTrustInformation *)r;
    2544           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2545           0 :                         DEBUG(5,("function lsa_lsaRSetForestTrustInformation replied async\n"));
    2546             :                 }
    2547           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2548           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_lsaRSetForestTrustInformation, NDR_OUT | NDR_SET_VALUES, r2);
    2549             :                 }
    2550           0 :                 if (dce_call->fault_code != 0) {
    2551           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_lsaRSetForestTrustInformation\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2552             :                 }
    2553           0 :                 break;
    2554             :         }
    2555           0 :         case 75: { /* lsa_CREDRRENAME */
    2556           0 :                 struct lsa_CREDRRENAME *r2 = (struct lsa_CREDRRENAME *)r;
    2557           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2558           0 :                         DEBUG(5,("function lsa_CREDRRENAME replied async\n"));
    2559             :                 }
    2560           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2561           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CREDRRENAME, NDR_OUT | NDR_SET_VALUES, r2);
    2562             :                 }
    2563           0 :                 if (dce_call->fault_code != 0) {
    2564           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CREDRRENAME\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2565             :                 }
    2566           0 :                 break;
    2567             :         }
    2568          24 :         case 76: { /* lsa_LookupSids3 */
    2569          24 :                 struct lsa_LookupSids3 *r2 = (struct lsa_LookupSids3 *)r;
    2570          24 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2571           0 :                         DEBUG(5,("function lsa_LookupSids3 replied async\n"));
    2572             :                 }
    2573          24 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2574           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupSids3, NDR_OUT | NDR_SET_VALUES, r2);
    2575             :                 }
    2576          24 :                 if (dce_call->fault_code != 0) {
    2577           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LookupSids3\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2578             :                 }
    2579          24 :                 break;
    2580             :         }
    2581          48 :         case 77: { /* lsa_LookupNames4 */
    2582          48 :                 struct lsa_LookupNames4 *r2 = (struct lsa_LookupNames4 *)r;
    2583          48 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2584           0 :                         DEBUG(5,("function lsa_LookupNames4 replied async\n"));
    2585             :                 }
    2586          48 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2587           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LookupNames4, NDR_OUT | NDR_SET_VALUES, r2);
    2588             :                 }
    2589          48 :                 if (dce_call->fault_code != 0) {
    2590           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LookupNames4\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2591             :                 }
    2592          48 :                 break;
    2593             :         }
    2594           0 :         case 78: { /* lsa_LSAROPENPOLICYSCE */
    2595           0 :                 struct lsa_LSAROPENPOLICYSCE *r2 = (struct lsa_LSAROPENPOLICYSCE *)r;
    2596           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2597           0 :                         DEBUG(5,("function lsa_LSAROPENPOLICYSCE replied async\n"));
    2598             :                 }
    2599           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2600           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSAROPENPOLICYSCE, NDR_OUT | NDR_SET_VALUES, r2);
    2601             :                 }
    2602           0 :                 if (dce_call->fault_code != 0) {
    2603           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LSAROPENPOLICYSCE\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2604             :                 }
    2605           0 :                 break;
    2606             :         }
    2607           0 :         case 79: { /* lsa_LSARADTREGISTERSECURITYEVENTSOURCE */
    2608           0 :                 struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r2 = (struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *)r;
    2609           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2610           0 :                         DEBUG(5,("function lsa_LSARADTREGISTERSECURITYEVENTSOURCE replied async\n"));
    2611             :                 }
    2612           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2613           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, NDR_OUT | NDR_SET_VALUES, r2);
    2614             :                 }
    2615           0 :                 if (dce_call->fault_code != 0) {
    2616           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LSARADTREGISTERSECURITYEVENTSOURCE\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2617             :                 }
    2618           0 :                 break;
    2619             :         }
    2620           0 :         case 80: { /* lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE */
    2621           0 :                 struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r2 = (struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *)r;
    2622           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2623           0 :                         DEBUG(5,("function lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE replied async\n"));
    2624             :                 }
    2625           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2626           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, NDR_OUT | NDR_SET_VALUES, r2);
    2627             :                 }
    2628           0 :                 if (dce_call->fault_code != 0) {
    2629           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2630             :                 }
    2631           0 :                 break;
    2632             :         }
    2633           0 :         case 81: { /* lsa_LSARADTREPORTSECURITYEVENT */
    2634           0 :                 struct lsa_LSARADTREPORTSECURITYEVENT *r2 = (struct lsa_LSARADTREPORTSECURITYEVENT *)r;
    2635           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2636           0 :                         DEBUG(5,("function lsa_LSARADTREPORTSECURITYEVENT replied async\n"));
    2637             :                 }
    2638           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2639           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, NDR_OUT | NDR_SET_VALUES, r2);
    2640             :                 }
    2641           0 :                 if (dce_call->fault_code != 0) {
    2642           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_LSARADTREPORTSECURITYEVENT\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2643             :                 }
    2644           0 :                 break;
    2645             :         }
    2646           0 :         case 82: { /* lsa_Opnum82NotUsedOnWire */
    2647           0 :                 struct lsa_Opnum82NotUsedOnWire *r2 = (struct lsa_Opnum82NotUsedOnWire *)r;
    2648           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2649           0 :                         DEBUG(5,("function lsa_Opnum82NotUsedOnWire replied async\n"));
    2650             :                 }
    2651           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2652           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum82NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2653             :                 }
    2654           0 :                 if (dce_call->fault_code != 0) {
    2655           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum82NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2656             :                 }
    2657           0 :                 break;
    2658             :         }
    2659           0 :         case 83: { /* lsa_Opnum83NotUsedOnWire */
    2660           0 :                 struct lsa_Opnum83NotUsedOnWire *r2 = (struct lsa_Opnum83NotUsedOnWire *)r;
    2661           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2662           0 :                         DEBUG(5,("function lsa_Opnum83NotUsedOnWire replied async\n"));
    2663             :                 }
    2664           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2665           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum83NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2666             :                 }
    2667           0 :                 if (dce_call->fault_code != 0) {
    2668           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum83NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2669             :                 }
    2670           0 :                 break;
    2671             :         }
    2672           0 :         case 84: { /* lsa_Opnum84NotUsedOnWire */
    2673           0 :                 struct lsa_Opnum84NotUsedOnWire *r2 = (struct lsa_Opnum84NotUsedOnWire *)r;
    2674           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2675           0 :                         DEBUG(5,("function lsa_Opnum84NotUsedOnWire replied async\n"));
    2676             :                 }
    2677           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2678           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum84NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2679             :                 }
    2680           0 :                 if (dce_call->fault_code != 0) {
    2681           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum84NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2682             :                 }
    2683           0 :                 break;
    2684             :         }
    2685           0 :         case 85: { /* lsa_Opnum85NotUsedOnWire */
    2686           0 :                 struct lsa_Opnum85NotUsedOnWire *r2 = (struct lsa_Opnum85NotUsedOnWire *)r;
    2687           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2688           0 :                         DEBUG(5,("function lsa_Opnum85NotUsedOnWire replied async\n"));
    2689             :                 }
    2690           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2691           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum85NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2692             :                 }
    2693           0 :                 if (dce_call->fault_code != 0) {
    2694           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum85NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2695             :                 }
    2696           0 :                 break;
    2697             :         }
    2698           0 :         case 86: { /* lsa_Opnum86NotUsedOnWire */
    2699           0 :                 struct lsa_Opnum86NotUsedOnWire *r2 = (struct lsa_Opnum86NotUsedOnWire *)r;
    2700           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2701           0 :                         DEBUG(5,("function lsa_Opnum86NotUsedOnWire replied async\n"));
    2702             :                 }
    2703           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2704           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum86NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2705             :                 }
    2706           0 :                 if (dce_call->fault_code != 0) {
    2707           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum86NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2708             :                 }
    2709           0 :                 break;
    2710             :         }
    2711           0 :         case 87: { /* lsa_Opnum87NotUsedOnWire */
    2712           0 :                 struct lsa_Opnum87NotUsedOnWire *r2 = (struct lsa_Opnum87NotUsedOnWire *)r;
    2713           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2714           0 :                         DEBUG(5,("function lsa_Opnum87NotUsedOnWire replied async\n"));
    2715             :                 }
    2716           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2717           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum87NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2718             :                 }
    2719           0 :                 if (dce_call->fault_code != 0) {
    2720           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum87NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2721             :                 }
    2722           0 :                 break;
    2723             :         }
    2724           0 :         case 88: { /* lsa_Opnum88NotUsedOnWire */
    2725           0 :                 struct lsa_Opnum88NotUsedOnWire *r2 = (struct lsa_Opnum88NotUsedOnWire *)r;
    2726           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2727           0 :                         DEBUG(5,("function lsa_Opnum88NotUsedOnWire replied async\n"));
    2728             :                 }
    2729           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2730           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum88NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2731             :                 }
    2732           0 :                 if (dce_call->fault_code != 0) {
    2733           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum88NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2734             :                 }
    2735           0 :                 break;
    2736             :         }
    2737           0 :         case 89: { /* lsa_Opnum89NotUsedOnWire */
    2738           0 :                 struct lsa_Opnum89NotUsedOnWire *r2 = (struct lsa_Opnum89NotUsedOnWire *)r;
    2739           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2740           0 :                         DEBUG(5,("function lsa_Opnum89NotUsedOnWire replied async\n"));
    2741             :                 }
    2742           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2743           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum89NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2744             :                 }
    2745           0 :                 if (dce_call->fault_code != 0) {
    2746           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum89NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2747             :                 }
    2748           0 :                 break;
    2749             :         }
    2750           0 :         case 90: { /* lsa_Opnum90NotUsedOnWire */
    2751           0 :                 struct lsa_Opnum90NotUsedOnWire *r2 = (struct lsa_Opnum90NotUsedOnWire *)r;
    2752           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2753           0 :                         DEBUG(5,("function lsa_Opnum90NotUsedOnWire replied async\n"));
    2754             :                 }
    2755           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2756           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum90NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2757             :                 }
    2758           0 :                 if (dce_call->fault_code != 0) {
    2759           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum90NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2760             :                 }
    2761           0 :                 break;
    2762             :         }
    2763           0 :         case 91: { /* lsa_Opnum91NotUsedOnWire */
    2764           0 :                 struct lsa_Opnum91NotUsedOnWire *r2 = (struct lsa_Opnum91NotUsedOnWire *)r;
    2765           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2766           0 :                         DEBUG(5,("function lsa_Opnum91NotUsedOnWire replied async\n"));
    2767             :                 }
    2768           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2769           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum91NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2770             :                 }
    2771           0 :                 if (dce_call->fault_code != 0) {
    2772           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum91NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2773             :                 }
    2774           0 :                 break;
    2775             :         }
    2776           0 :         case 92: { /* lsa_Opnum92NotUsedOnWire */
    2777           0 :                 struct lsa_Opnum92NotUsedOnWire *r2 = (struct lsa_Opnum92NotUsedOnWire *)r;
    2778           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2779           0 :                         DEBUG(5,("function lsa_Opnum92NotUsedOnWire replied async\n"));
    2780             :                 }
    2781           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2782           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum92NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2783             :                 }
    2784           0 :                 if (dce_call->fault_code != 0) {
    2785           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum92NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2786             :                 }
    2787           0 :                 break;
    2788             :         }
    2789           0 :         case 93: { /* lsa_Opnum93NotUsedOnWire */
    2790           0 :                 struct lsa_Opnum93NotUsedOnWire *r2 = (struct lsa_Opnum93NotUsedOnWire *)r;
    2791           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2792           0 :                         DEBUG(5,("function lsa_Opnum93NotUsedOnWire replied async\n"));
    2793             :                 }
    2794           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2795           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum93NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2796             :                 }
    2797           0 :                 if (dce_call->fault_code != 0) {
    2798           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum93NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2799             :                 }
    2800           0 :                 break;
    2801             :         }
    2802           0 :         case 94: { /* lsa_Opnum94NotUsedOnWire */
    2803           0 :                 struct lsa_Opnum94NotUsedOnWire *r2 = (struct lsa_Opnum94NotUsedOnWire *)r;
    2804           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2805           0 :                         DEBUG(5,("function lsa_Opnum94NotUsedOnWire replied async\n"));
    2806             :                 }
    2807           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2808           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum94NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2809             :                 }
    2810           0 :                 if (dce_call->fault_code != 0) {
    2811           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum94NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2812             :                 }
    2813           0 :                 break;
    2814             :         }
    2815           0 :         case 95: { /* lsa_Opnum95NotUsedOnWire */
    2816           0 :                 struct lsa_Opnum95NotUsedOnWire *r2 = (struct lsa_Opnum95NotUsedOnWire *)r;
    2817           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2818           0 :                         DEBUG(5,("function lsa_Opnum95NotUsedOnWire replied async\n"));
    2819             :                 }
    2820           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2821           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum95NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2822             :                 }
    2823           0 :                 if (dce_call->fault_code != 0) {
    2824           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum95NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2825             :                 }
    2826           0 :                 break;
    2827             :         }
    2828           0 :         case 96: { /* lsa_Opnum96NotUsedOnWire */
    2829           0 :                 struct lsa_Opnum96NotUsedOnWire *r2 = (struct lsa_Opnum96NotUsedOnWire *)r;
    2830           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2831           0 :                         DEBUG(5,("function lsa_Opnum96NotUsedOnWire replied async\n"));
    2832             :                 }
    2833           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2834           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum96NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2835             :                 }
    2836           0 :                 if (dce_call->fault_code != 0) {
    2837           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum96NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2838             :                 }
    2839           0 :                 break;
    2840             :         }
    2841           0 :         case 97: { /* lsa_Opnum97NotUsedOnWire */
    2842           0 :                 struct lsa_Opnum97NotUsedOnWire *r2 = (struct lsa_Opnum97NotUsedOnWire *)r;
    2843           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2844           0 :                         DEBUG(5,("function lsa_Opnum97NotUsedOnWire replied async\n"));
    2845             :                 }
    2846           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2847           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum97NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2848             :                 }
    2849           0 :                 if (dce_call->fault_code != 0) {
    2850           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum97NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2851             :                 }
    2852           0 :                 break;
    2853             :         }
    2854           0 :         case 98: { /* lsa_Opnum98NotUsedOnWire */
    2855           0 :                 struct lsa_Opnum98NotUsedOnWire *r2 = (struct lsa_Opnum98NotUsedOnWire *)r;
    2856           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2857           0 :                         DEBUG(5,("function lsa_Opnum98NotUsedOnWire replied async\n"));
    2858             :                 }
    2859           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2860           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum98NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2861             :                 }
    2862           0 :                 if (dce_call->fault_code != 0) {
    2863           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum98NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2864             :                 }
    2865           0 :                 break;
    2866             :         }
    2867           0 :         case 99: { /* lsa_Opnum99NotUsedOnWire */
    2868           0 :                 struct lsa_Opnum99NotUsedOnWire *r2 = (struct lsa_Opnum99NotUsedOnWire *)r;
    2869           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2870           0 :                         DEBUG(5,("function lsa_Opnum99NotUsedOnWire replied async\n"));
    2871             :                 }
    2872           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2873           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum99NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2874             :                 }
    2875           0 :                 if (dce_call->fault_code != 0) {
    2876           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum99NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2877             :                 }
    2878           0 :                 break;
    2879             :         }
    2880           0 :         case 100: { /* lsa_Opnum100NotUsedOnWire */
    2881           0 :                 struct lsa_Opnum100NotUsedOnWire *r2 = (struct lsa_Opnum100NotUsedOnWire *)r;
    2882           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2883           0 :                         DEBUG(5,("function lsa_Opnum100NotUsedOnWire replied async\n"));
    2884             :                 }
    2885           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2886           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum100NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2887             :                 }
    2888           0 :                 if (dce_call->fault_code != 0) {
    2889           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum100NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2890             :                 }
    2891           0 :                 break;
    2892             :         }
    2893           0 :         case 101: { /* lsa_Opnum101NotUsedOnWire */
    2894           0 :                 struct lsa_Opnum101NotUsedOnWire *r2 = (struct lsa_Opnum101NotUsedOnWire *)r;
    2895           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2896           0 :                         DEBUG(5,("function lsa_Opnum101NotUsedOnWire replied async\n"));
    2897             :                 }
    2898           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2899           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum101NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2900             :                 }
    2901           0 :                 if (dce_call->fault_code != 0) {
    2902           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum101NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2903             :                 }
    2904           0 :                 break;
    2905             :         }
    2906           0 :         case 102: { /* lsa_Opnum102NotUsedOnWire */
    2907           0 :                 struct lsa_Opnum102NotUsedOnWire *r2 = (struct lsa_Opnum102NotUsedOnWire *)r;
    2908           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2909           0 :                         DEBUG(5,("function lsa_Opnum102NotUsedOnWire replied async\n"));
    2910             :                 }
    2911           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2912           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum102NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2913             :                 }
    2914           0 :                 if (dce_call->fault_code != 0) {
    2915           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum102NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2916             :                 }
    2917           0 :                 break;
    2918             :         }
    2919           0 :         case 103: { /* lsa_Opnum103NotUsedOnWire */
    2920           0 :                 struct lsa_Opnum103NotUsedOnWire *r2 = (struct lsa_Opnum103NotUsedOnWire *)r;
    2921           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2922           0 :                         DEBUG(5,("function lsa_Opnum103NotUsedOnWire replied async\n"));
    2923             :                 }
    2924           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2925           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum103NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2926             :                 }
    2927           0 :                 if (dce_call->fault_code != 0) {
    2928           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum103NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2929             :                 }
    2930           0 :                 break;
    2931             :         }
    2932           0 :         case 104: { /* lsa_Opnum104NotUsedOnWire */
    2933           0 :                 struct lsa_Opnum104NotUsedOnWire *r2 = (struct lsa_Opnum104NotUsedOnWire *)r;
    2934           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2935           0 :                         DEBUG(5,("function lsa_Opnum104NotUsedOnWire replied async\n"));
    2936             :                 }
    2937           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2938           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum104NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2939             :                 }
    2940           0 :                 if (dce_call->fault_code != 0) {
    2941           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum104NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2942             :                 }
    2943           0 :                 break;
    2944             :         }
    2945           0 :         case 105: { /* lsa_Opnum105NotUsedOnWire */
    2946           0 :                 struct lsa_Opnum105NotUsedOnWire *r2 = (struct lsa_Opnum105NotUsedOnWire *)r;
    2947           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2948           0 :                         DEBUG(5,("function lsa_Opnum105NotUsedOnWire replied async\n"));
    2949             :                 }
    2950           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2951           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum105NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2952             :                 }
    2953           0 :                 if (dce_call->fault_code != 0) {
    2954           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum105NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2955             :                 }
    2956           0 :                 break;
    2957             :         }
    2958           0 :         case 106: { /* lsa_Opnum106NotUsedOnWire */
    2959           0 :                 struct lsa_Opnum106NotUsedOnWire *r2 = (struct lsa_Opnum106NotUsedOnWire *)r;
    2960           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2961           0 :                         DEBUG(5,("function lsa_Opnum106NotUsedOnWire replied async\n"));
    2962             :                 }
    2963           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2964           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum106NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2965             :                 }
    2966           0 :                 if (dce_call->fault_code != 0) {
    2967           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum106NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2968             :                 }
    2969           0 :                 break;
    2970             :         }
    2971           0 :         case 107: { /* lsa_Opnum107NotUsedOnWire */
    2972           0 :                 struct lsa_Opnum107NotUsedOnWire *r2 = (struct lsa_Opnum107NotUsedOnWire *)r;
    2973           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2974           0 :                         DEBUG(5,("function lsa_Opnum107NotUsedOnWire replied async\n"));
    2975             :                 }
    2976           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2977           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum107NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2978             :                 }
    2979           0 :                 if (dce_call->fault_code != 0) {
    2980           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum107NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2981             :                 }
    2982           0 :                 break;
    2983             :         }
    2984           0 :         case 108: { /* lsa_Opnum108NotUsedOnWire */
    2985           0 :                 struct lsa_Opnum108NotUsedOnWire *r2 = (struct lsa_Opnum108NotUsedOnWire *)r;
    2986           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    2987           0 :                         DEBUG(5,("function lsa_Opnum108NotUsedOnWire replied async\n"));
    2988             :                 }
    2989           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    2990           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum108NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    2991             :                 }
    2992           0 :                 if (dce_call->fault_code != 0) {
    2993           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum108NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    2994             :                 }
    2995           0 :                 break;
    2996             :         }
    2997           0 :         case 109: { /* lsa_Opnum109NotUsedOnWire */
    2998           0 :                 struct lsa_Opnum109NotUsedOnWire *r2 = (struct lsa_Opnum109NotUsedOnWire *)r;
    2999           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3000           0 :                         DEBUG(5,("function lsa_Opnum109NotUsedOnWire replied async\n"));
    3001             :                 }
    3002           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3003           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum109NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3004             :                 }
    3005           0 :                 if (dce_call->fault_code != 0) {
    3006           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum109NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3007             :                 }
    3008           0 :                 break;
    3009             :         }
    3010           0 :         case 110: { /* lsa_Opnum110NotUsedOnWire */
    3011           0 :                 struct lsa_Opnum110NotUsedOnWire *r2 = (struct lsa_Opnum110NotUsedOnWire *)r;
    3012           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3013           0 :                         DEBUG(5,("function lsa_Opnum110NotUsedOnWire replied async\n"));
    3014             :                 }
    3015           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3016           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum110NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3017             :                 }
    3018           0 :                 if (dce_call->fault_code != 0) {
    3019           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum110NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3020             :                 }
    3021           0 :                 break;
    3022             :         }
    3023           0 :         case 111: { /* lsa_Opnum111NotUsedOnWire */
    3024           0 :                 struct lsa_Opnum111NotUsedOnWire *r2 = (struct lsa_Opnum111NotUsedOnWire *)r;
    3025           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3026           0 :                         DEBUG(5,("function lsa_Opnum111NotUsedOnWire replied async\n"));
    3027             :                 }
    3028           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3029           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum111NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3030             :                 }
    3031           0 :                 if (dce_call->fault_code != 0) {
    3032           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum111NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3033             :                 }
    3034           0 :                 break;
    3035             :         }
    3036           0 :         case 112: { /* lsa_Opnum112NotUsedOnWire */
    3037           0 :                 struct lsa_Opnum112NotUsedOnWire *r2 = (struct lsa_Opnum112NotUsedOnWire *)r;
    3038           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3039           0 :                         DEBUG(5,("function lsa_Opnum112NotUsedOnWire replied async\n"));
    3040             :                 }
    3041           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3042           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum112NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3043             :                 }
    3044           0 :                 if (dce_call->fault_code != 0) {
    3045           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum112NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3046             :                 }
    3047           0 :                 break;
    3048             :         }
    3049           0 :         case 113: { /* lsa_Opnum113NotUsedOnWire */
    3050           0 :                 struct lsa_Opnum113NotUsedOnWire *r2 = (struct lsa_Opnum113NotUsedOnWire *)r;
    3051           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3052           0 :                         DEBUG(5,("function lsa_Opnum113NotUsedOnWire replied async\n"));
    3053             :                 }
    3054           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3055           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum113NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3056             :                 }
    3057           0 :                 if (dce_call->fault_code != 0) {
    3058           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum113NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3059             :                 }
    3060           0 :                 break;
    3061             :         }
    3062           0 :         case 114: { /* lsa_Opnum114NotUsedOnWire */
    3063           0 :                 struct lsa_Opnum114NotUsedOnWire *r2 = (struct lsa_Opnum114NotUsedOnWire *)r;
    3064           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3065           0 :                         DEBUG(5,("function lsa_Opnum114NotUsedOnWire replied async\n"));
    3066             :                 }
    3067           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3068           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum114NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3069             :                 }
    3070           0 :                 if (dce_call->fault_code != 0) {
    3071           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum114NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3072             :                 }
    3073           0 :                 break;
    3074             :         }
    3075           0 :         case 115: { /* lsa_Opnum115NotUsedOnWire */
    3076           0 :                 struct lsa_Opnum115NotUsedOnWire *r2 = (struct lsa_Opnum115NotUsedOnWire *)r;
    3077           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3078           0 :                         DEBUG(5,("function lsa_Opnum115NotUsedOnWire replied async\n"));
    3079             :                 }
    3080           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3081           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum115NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3082             :                 }
    3083           0 :                 if (dce_call->fault_code != 0) {
    3084           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum115NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3085             :                 }
    3086           0 :                 break;
    3087             :         }
    3088           0 :         case 116: { /* lsa_Opnum116NotUsedOnWire */
    3089           0 :                 struct lsa_Opnum116NotUsedOnWire *r2 = (struct lsa_Opnum116NotUsedOnWire *)r;
    3090           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3091           0 :                         DEBUG(5,("function lsa_Opnum116NotUsedOnWire replied async\n"));
    3092             :                 }
    3093           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3094           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum116NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3095             :                 }
    3096           0 :                 if (dce_call->fault_code != 0) {
    3097           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum116NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3098             :                 }
    3099           0 :                 break;
    3100             :         }
    3101           0 :         case 117: { /* lsa_Opnum117NotUsedOnWire */
    3102           0 :                 struct lsa_Opnum117NotUsedOnWire *r2 = (struct lsa_Opnum117NotUsedOnWire *)r;
    3103           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3104           0 :                         DEBUG(5,("function lsa_Opnum117NotUsedOnWire replied async\n"));
    3105             :                 }
    3106           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3107           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum117NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3108             :                 }
    3109           0 :                 if (dce_call->fault_code != 0) {
    3110           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum117NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3111             :                 }
    3112           0 :                 break;
    3113             :         }
    3114           0 :         case 118: { /* lsa_Opnum118NotUsedOnWire */
    3115           0 :                 struct lsa_Opnum118NotUsedOnWire *r2 = (struct lsa_Opnum118NotUsedOnWire *)r;
    3116           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3117           0 :                         DEBUG(5,("function lsa_Opnum118NotUsedOnWire replied async\n"));
    3118             :                 }
    3119           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3120           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum118NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3121             :                 }
    3122           0 :                 if (dce_call->fault_code != 0) {
    3123           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum118NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3124             :                 }
    3125           0 :                 break;
    3126             :         }
    3127           0 :         case 119: { /* lsa_Opnum119NotUsedOnWire */
    3128           0 :                 struct lsa_Opnum119NotUsedOnWire *r2 = (struct lsa_Opnum119NotUsedOnWire *)r;
    3129           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3130           0 :                         DEBUG(5,("function lsa_Opnum119NotUsedOnWire replied async\n"));
    3131             :                 }
    3132           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3133           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum119NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3134             :                 }
    3135           0 :                 if (dce_call->fault_code != 0) {
    3136           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum119NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3137             :                 }
    3138           0 :                 break;
    3139             :         }
    3140           0 :         case 120: { /* lsa_Opnum120NotUsedOnWire */
    3141           0 :                 struct lsa_Opnum120NotUsedOnWire *r2 = (struct lsa_Opnum120NotUsedOnWire *)r;
    3142           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3143           0 :                         DEBUG(5,("function lsa_Opnum120NotUsedOnWire replied async\n"));
    3144             :                 }
    3145           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3146           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum120NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3147             :                 }
    3148           0 :                 if (dce_call->fault_code != 0) {
    3149           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum120NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3150             :                 }
    3151           0 :                 break;
    3152             :         }
    3153           0 :         case 121: { /* lsa_Opnum121NotUsedOnWire */
    3154           0 :                 struct lsa_Opnum121NotUsedOnWire *r2 = (struct lsa_Opnum121NotUsedOnWire *)r;
    3155           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3156           0 :                         DEBUG(5,("function lsa_Opnum121NotUsedOnWire replied async\n"));
    3157             :                 }
    3158           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3159           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum121NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3160             :                 }
    3161           0 :                 if (dce_call->fault_code != 0) {
    3162           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum121NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3163             :                 }
    3164           0 :                 break;
    3165             :         }
    3166           0 :         case 122: { /* lsa_Opnum122NotUsedOnWire */
    3167           0 :                 struct lsa_Opnum122NotUsedOnWire *r2 = (struct lsa_Opnum122NotUsedOnWire *)r;
    3168           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3169           0 :                         DEBUG(5,("function lsa_Opnum122NotUsedOnWire replied async\n"));
    3170             :                 }
    3171           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3172           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum122NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3173             :                 }
    3174           0 :                 if (dce_call->fault_code != 0) {
    3175           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum122NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3176             :                 }
    3177           0 :                 break;
    3178             :         }
    3179           0 :         case 123: { /* lsa_Opnum123NotUsedOnWire */
    3180           0 :                 struct lsa_Opnum123NotUsedOnWire *r2 = (struct lsa_Opnum123NotUsedOnWire *)r;
    3181           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3182           0 :                         DEBUG(5,("function lsa_Opnum123NotUsedOnWire replied async\n"));
    3183             :                 }
    3184           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3185           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum123NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3186             :                 }
    3187           0 :                 if (dce_call->fault_code != 0) {
    3188           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum123NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3189             :                 }
    3190           0 :                 break;
    3191             :         }
    3192           0 :         case 124: { /* lsa_Opnum124NotUsedOnWire */
    3193           0 :                 struct lsa_Opnum124NotUsedOnWire *r2 = (struct lsa_Opnum124NotUsedOnWire *)r;
    3194           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3195           0 :                         DEBUG(5,("function lsa_Opnum124NotUsedOnWire replied async\n"));
    3196             :                 }
    3197           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3198           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum124NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3199             :                 }
    3200           0 :                 if (dce_call->fault_code != 0) {
    3201           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum124NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3202             :                 }
    3203           0 :                 break;
    3204             :         }
    3205           0 :         case 125: { /* lsa_Opnum125NotUsedOnWire */
    3206           0 :                 struct lsa_Opnum125NotUsedOnWire *r2 = (struct lsa_Opnum125NotUsedOnWire *)r;
    3207           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3208           0 :                         DEBUG(5,("function lsa_Opnum125NotUsedOnWire replied async\n"));
    3209             :                 }
    3210           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3211           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum125NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3212             :                 }
    3213           0 :                 if (dce_call->fault_code != 0) {
    3214           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum125NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3215             :                 }
    3216           0 :                 break;
    3217             :         }
    3218           0 :         case 126: { /* lsa_Opnum126NotUsedOnWire */
    3219           0 :                 struct lsa_Opnum126NotUsedOnWire *r2 = (struct lsa_Opnum126NotUsedOnWire *)r;
    3220           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3221           0 :                         DEBUG(5,("function lsa_Opnum126NotUsedOnWire replied async\n"));
    3222             :                 }
    3223           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3224           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum126NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3225             :                 }
    3226           0 :                 if (dce_call->fault_code != 0) {
    3227           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum126NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3228             :                 }
    3229           0 :                 break;
    3230             :         }
    3231           0 :         case 127: { /* lsa_Opnum127NotUsedOnWire */
    3232           0 :                 struct lsa_Opnum127NotUsedOnWire *r2 = (struct lsa_Opnum127NotUsedOnWire *)r;
    3233           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3234           0 :                         DEBUG(5,("function lsa_Opnum127NotUsedOnWire replied async\n"));
    3235             :                 }
    3236           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3237           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum127NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3238             :                 }
    3239           0 :                 if (dce_call->fault_code != 0) {
    3240           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum127NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3241             :                 }
    3242           0 :                 break;
    3243             :         }
    3244           0 :         case 128: { /* lsa_Opnum128NotUsedOnWire */
    3245           0 :                 struct lsa_Opnum128NotUsedOnWire *r2 = (struct lsa_Opnum128NotUsedOnWire *)r;
    3246           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3247           0 :                         DEBUG(5,("function lsa_Opnum128NotUsedOnWire replied async\n"));
    3248             :                 }
    3249           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3250           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum128NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3251             :                 }
    3252           0 :                 if (dce_call->fault_code != 0) {
    3253           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum128NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3254             :                 }
    3255           0 :                 break;
    3256             :         }
    3257           0 :         case 129: { /* lsa_CreateTrustedDomainEx3 */
    3258           0 :                 struct lsa_CreateTrustedDomainEx3 *r2 = (struct lsa_CreateTrustedDomainEx3 *)r;
    3259           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3260           0 :                         DEBUG(5,("function lsa_CreateTrustedDomainEx3 replied async\n"));
    3261             :                 }
    3262           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3263           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_CreateTrustedDomainEx3, NDR_OUT | NDR_SET_VALUES, r2);
    3264             :                 }
    3265           0 :                 if (dce_call->fault_code != 0) {
    3266           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_CreateTrustedDomainEx3\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3267             :                 }
    3268           0 :                 break;
    3269             :         }
    3270          66 :         case 130: { /* lsa_OpenPolicy3 */
    3271          66 :                 struct lsa_OpenPolicy3 *r2 = (struct lsa_OpenPolicy3 *)r;
    3272          66 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3273           0 :                         DEBUG(5,("function lsa_OpenPolicy3 replied async\n"));
    3274             :                 }
    3275          66 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3276           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_OpenPolicy3, NDR_OUT | NDR_SET_VALUES, r2);
    3277             :                 }
    3278          66 :                 if (dce_call->fault_code != 0) {
    3279           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_OpenPolicy3\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3280             :                 }
    3281          66 :                 break;
    3282             :         }
    3283           0 :         case 131: { /* lsa_Opnum131NotUsedOnWire */
    3284           0 :                 struct lsa_Opnum131NotUsedOnWire *r2 = (struct lsa_Opnum131NotUsedOnWire *)r;
    3285           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3286           0 :                         DEBUG(5,("function lsa_Opnum131NotUsedOnWire replied async\n"));
    3287             :                 }
    3288           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3289           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_Opnum131NotUsedOnWire, NDR_OUT | NDR_SET_VALUES, r2);
    3290             :                 }
    3291           0 :                 if (dce_call->fault_code != 0) {
    3292           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_Opnum131NotUsedOnWire\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3293             :                 }
    3294           0 :                 break;
    3295             :         }
    3296           0 :         case 132: { /* lsa_lsaRQueryForestTrustInformation2 */
    3297           0 :                 struct lsa_lsaRQueryForestTrustInformation2 *r2 = (struct lsa_lsaRQueryForestTrustInformation2 *)r;
    3298           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3299           0 :                         DEBUG(5,("function lsa_lsaRQueryForestTrustInformation2 replied async\n"));
    3300             :                 }
    3301           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3302           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_lsaRQueryForestTrustInformation2, NDR_OUT | NDR_SET_VALUES, r2);
    3303             :                 }
    3304           0 :                 if (dce_call->fault_code != 0) {
    3305           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_lsaRQueryForestTrustInformation2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3306             :                 }
    3307           0 :                 break;
    3308             :         }
    3309           0 :         case 133: { /* lsa_lsaRSetForestTrustInformation2 */
    3310           0 :                 struct lsa_lsaRSetForestTrustInformation2 *r2 = (struct lsa_lsaRSetForestTrustInformation2 *)r;
    3311           0 :                 if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {
    3312           0 :                         DEBUG(5,("function lsa_lsaRSetForestTrustInformation2 replied async\n"));
    3313             :                 }
    3314           0 :                 if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {
    3315           0 :                         NDR_PRINT_FUNCTION_DEBUG(lsa_lsaRSetForestTrustInformation2, NDR_OUT | NDR_SET_VALUES, r2);
    3316             :                 }
    3317           0 :                 if (dce_call->fault_code != 0) {
    3318           0 :                         DBG_WARNING("dcerpc_fault %s in lsa_lsaRSetForestTrustInformation2\n", dcerpc_errstr(mem_ctx, dce_call->fault_code));
    3319             :                 }
    3320           0 :                 break;
    3321             :         }
    3322           0 :         default:
    3323           0 :                 dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR;
    3324           0 :                 break;
    3325             :         }
    3326             : 
    3327       11114 :         if (dce_call->fault_code != 0) {
    3328           0 :                 return NT_STATUS_NET_WRITE_FAULT;
    3329             :         }
    3330             : 
    3331       11114 :         return NT_STATUS_OK;
    3332             : }
    3333             : 
    3334       11114 : NTSTATUS lsarpc__op_ndr_push(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_push *push, const void *r)
    3335             : {
    3336           0 :         enum ndr_err_code ndr_err;
    3337       11114 :         uint16_t opnum = dce_call->pkt.u.request.opnum;
    3338             : 
    3339       11114 :         ndr_err = ndr_table_lsarpc.calls[opnum].ndr_push(push, NDR_OUT, r);
    3340       11114 :         if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
    3341           0 :                 dce_call->fault_code = DCERPC_FAULT_NDR;
    3342           0 :                 return NT_STATUS_NET_WRITE_FAULT;
    3343             :         }
    3344             : 
    3345       11114 :         return NT_STATUS_OK;
    3346             : }
    3347             : 
    3348           0 : NTSTATUS lsarpc__op_local(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)
    3349             : {
    3350           0 :         return lsarpc__op_dispatch_internal(dce_call, mem_ctx, r, S3COMPAT_RPC_DISPATCH_INTERNAL);
    3351             : }
    3352             : 
    3353             : static const struct dcesrv_interface dcesrv_lsarpc_interface = {
    3354             :         .name      = "lsarpc",
    3355             :         .syntax_id = {{0x12345778,0x1234,0xabcd,{0xef,0x00},{0x01,0x23,0x45,0x67,0x89,0xab}},0.0},
    3356             :         .bind      = lsarpc__op_bind,
    3357             :         .unbind    = lsarpc__op_unbind,
    3358             :         .ndr_pull  = lsarpc__op_ndr_pull,
    3359             :         .dispatch  = lsarpc__op_dispatch,
    3360             :         .reply     = lsarpc__op_reply,
    3361             :         .ndr_push  = lsarpc__op_ndr_push,
    3362             :         .local     = lsarpc__op_local,
    3363             : #ifdef DCESRV_INTERFACE_LSARPC_FLAGS
    3364             :         .flags     = DCESRV_INTERFACE_LSARPC_FLAGS
    3365             : #else
    3366             :         .flags     = 0
    3367             : #endif
    3368             : };
    3369             : 
    3370         215 : static NTSTATUS lsarpc__op_init_server(struct dcesrv_context *dce_ctx, const struct dcesrv_endpoint_server *ep_server)
    3371             : {
    3372           0 :         uint32_t i;
    3373           0 :         NTSTATUS ret;
    3374             : 
    3375             : #ifdef DCESRV_INTERFACE_LSARPC_NCACN_NP_SECONDARY_ENDPOINT
    3376         215 :         const char *ncacn_np_secondary_endpoint = DCESRV_INTERFACE_LSARPC_NCACN_NP_SECONDARY_ENDPOINT;
    3377             : #else
    3378             :         const char *ncacn_np_secondary_endpoint = NULL;
    3379             : #endif
    3380             : 
    3381        1075 :         for (i=0;i<ndr_table_lsarpc.endpoints->count;i++) {
    3382         860 :                 const char *name = ndr_table_lsarpc.endpoints->names[i];
    3383             : 
    3384         860 :                 ret = dcesrv_interface_register(dce_ctx, name, ncacn_np_secondary_endpoint, &dcesrv_lsarpc_interface, NULL);
    3385         860 :                 if (!NT_STATUS_IS_OK(ret)) {
    3386           0 :                         DBG_ERR("Failed to register endpoint '%s'\n",name);
    3387           0 :                         return ret;
    3388             :                 }
    3389             :         }
    3390             : 
    3391         215 :         return NT_STATUS_OK;
    3392             : }
    3393             : 
    3394         215 : static NTSTATUS lsarpc__op_shutdown_server(struct dcesrv_context *dce_ctx, const struct dcesrv_endpoint_server *ep_server)
    3395             : {
    3396         215 :         return NT_STATUS_OK;
    3397             : }
    3398             : 
    3399           0 : static bool lsarpc__op_interface_by_uuid(struct dcesrv_interface *iface, const struct GUID *uuid, uint32_t if_version)
    3400             : {
    3401           0 :         if (dcesrv_lsarpc_interface.syntax_id.if_version == if_version && GUID_equal(&dcesrv_lsarpc_interface.syntax_id.uuid, uuid)) {
    3402           0 :                 memcpy(iface,&dcesrv_lsarpc_interface, sizeof(*iface));
    3403           0 :                 return true;
    3404             :         }
    3405             : 
    3406           0 :         return false;
    3407             : }
    3408             : 
    3409           0 : static bool lsarpc__op_interface_by_name(struct dcesrv_interface *iface, const char *name)
    3410             : {
    3411           0 :         if (strcmp(dcesrv_lsarpc_interface.name, name)==0) {
    3412           0 :                 memcpy(iface, &dcesrv_lsarpc_interface, sizeof(*iface));
    3413           0 :                 return true;
    3414             :         }
    3415             : 
    3416           0 :         return false;
    3417             : }
    3418             : 
    3419             : static const struct dcesrv_endpoint_server lsarpc_ep_server = {
    3420             :         /* fill in our name */
    3421             :         .name = "lsarpc",
    3422             : 
    3423             :         /* Initialization flag */
    3424             :         .initialized = false,
    3425             : 
    3426             :         /* fill in all the operations */
    3427             : #ifdef DCESRV_INTERFACE_LSARPC_INIT_SERVER
    3428             :         .init_server = DCESRV_INTERFACE_LSARPC_INIT_SERVER,
    3429             : #else
    3430             :         .init_server = lsarpc__op_init_server,
    3431             : #endif
    3432             : #ifdef DCESRV_INTERFACE_LSARPC_SHUTDOWN_SERVER
    3433             :         .shutdown_server = DCESRV_INTERFACE_LSARPC_SHUTDOWN_SERVER,
    3434             : #else
    3435             :         .shutdown_server = lsarpc__op_shutdown_server,
    3436             : #endif
    3437             :         .interface_by_uuid = lsarpc__op_interface_by_uuid,
    3438             :         .interface_by_name = lsarpc__op_interface_by_name
    3439             : };
    3440             : 
    3441         215 : const struct dcesrv_endpoint_server *lsarpc_get_ep_server(void)
    3442             : {
    3443         215 :         return &lsarpc_ep_server;
    3444             : }

Generated by: LCOV version 1.14