Lines Matching refs:mxa
55 static int lsarpc_call_stub(ndr_xa_t *mxa);
147 lsarpc_call_stub(ndr_xa_t *mxa)
149 NDS_SETF(&mxa->send_nds, NDS_F_NOTERM);
150 NDS_SETF(&mxa->recv_nds, NDS_F_NOTERM);
152 return (ndr_generic_call_stub(mxa));
162 lsarpc_s_OpenDomainHandle(void *arg, ndr_xa_t *mxa)
167 if ((id = ndr_hdalloc(mxa, &lsarpc_key_domain)) != NULL) {
187 lsarpc_s_CloseHandle(void *arg, ndr_xa_t *mxa)
192 ndr_hdfree(mxa, id);
204 lsarpc_s_QuerySecurityObject(void *arg, ndr_xa_t *mxa)
230 lsarpc_s_EnumAccounts(void *arg, ndr_xa_t *mxa)
237 enum_buf = NDR_NEW(mxa, struct mslsa_EnumAccountBuf);
266 lsarpc_s_EnumTrustedDomain(void *arg, ndr_xa_t *mxa)
273 enum_buf = NDR_NEW(mxa, struct mslsa_EnumTrustedDomainBuf);
301 lsarpc_s_EnumTrustedDomainsEx(void *arg, ndr_xa_t *mxa)
308 enum_buf = NDR_NEW(mxa, struct mslsa_EnumTrustedDomainBufEx);
326 lsarpc_s_OpenAccount(void *arg, ndr_xa_t *mxa)
332 hd = ndr_hdlookup(mxa, id);
339 if ((id = ndr_hdalloc(mxa, &lsarpc_key_account)) != NULL) {
362 lsarpc_s_EnumPrivsAccount(void *arg, ndr_xa_t *mxa)
379 lsarpc_s_LookupPrivValue(void *arg, ndr_xa_t *mxa)
403 lsarpc_s_LookupPrivName(void *arg, ndr_xa_t *mxa)
415 param->name = NDR_NEW(mxa, mslsa_string_t);
422 rc = NDR_MSTRING(mxa, pi->name, (ndr_mstring_t *)param->name);
441 lsarpc_s_LookupPrivDisplayName(void *arg, ndr_xa_t *mxa)
453 param->display_name = NDR_NEW(mxa, mslsa_string_t);
460 rc = NDR_MSTRING(mxa, pi->display_name,
474 lsarpc_s_CreateSecret(void *arg, ndr_xa_t *mxa)
480 hd = ndr_hdlookup(mxa, id);
493 lsarpc_s_OpenSecret(void *arg, ndr_xa_t *mxa)
499 hd = ndr_hdlookup(mxa, id);
520 lsarpc_s_GetConnectedUser(void *arg, ndr_xa_t *mxa)
523 smb_netuserinfo_t *user = mxa->pipe->np_user;
528 param->owner = NDR_NEW(mxa, struct mslsa_string_desc);
529 param->domain = NDR_NEW(mxa, struct mslsa_DomainName);
536 param->domain->name = NDR_NEW(mxa, struct mslsa_string_desc);
543 rc1 = NDR_MSTRING(mxa, user->ui_account,
545 rc2 = NDR_MSTRING(mxa, user->ui_domain,
566 lsarpc_s_QueryInfoPolicy(void *arg, ndr_xa_t *mxa)
580 = NDR_MALLOC(mxa, sizeof (DWORD));
586 status = lsarpc_s_PrimaryDomainInfo(&ru->pd_info, mxa);
590 status = lsarpc_s_AccountDomainInfo(&ru->ad_info, mxa);
633 ndr_xa_t *mxa)
649 rc = NDR_MSTRING(mxa, di.di_nbname, (ndr_mstring_t *)&info->name);
650 info->sid = (struct mslsa_sid *)NDR_SIDDUP(mxa, di.di_binsid);
671 ndr_xa_t *mxa)
681 rc = NDR_MSTRING(mxa, di.di_nbname, (ndr_mstring_t *)&info->name);
682 info->sid = (struct mslsa_sid *)NDR_SIDDUP(mxa, di.di_binsid);
699 lsarpc_s_LookupNames(void *arg, ndr_xa_t *mxa)
713 rids = NDR_NEW(mxa, struct mslsa_rid_entry);
714 domain_table = NDR_NEW(mxa, struct mslsa_domain_table);
715 domain_entry = NDR_NEW(mxa, struct mslsa_domain_entry);
747 rc = NDR_MSTRING(mxa, account.a_domain,
750 (struct mslsa_sid *)NDR_SIDDUP(mxa, account.a_domsid);
786 lsarpc_s_LookupSids(void *arg, ndr_xa_t *mxa)
805 names = NDR_NEWN(mxa, struct mslsa_name_entry, n_entry);
806 domain_table = NDR_NEW(mxa, struct mslsa_domain_table);
807 domain_entry = NDR_NEWN(mxa, struct mslsa_domain_entry,
828 if (NDR_MSTRING(mxa, sidstr,
833 if (NDR_MSTRING(mxa, account.a_name,
842 result = lsarpc_s_UpdateDomainTable(mxa, &account,
880 lsarpc_s_UpdateDomainTable(ndr_xa_t *mxa,
916 rc = NDR_MSTRING(mxa, account->a_domain,
919 (struct mslsa_sid *)NDR_SIDDUP(mxa, account->a_domsid);
938 lsarpc_s_LookupSids2(void *arg, ndr_xa_t *mxa)
957 names = NDR_NEWN(mxa, struct lsar_name_entry2, n_entry);
958 domain_table = NDR_NEW(mxa, struct mslsa_domain_table);
959 domain_entry = NDR_NEWN(mxa, struct mslsa_domain_entry,
980 if (NDR_MSTRING(mxa, sidstr,
985 if (NDR_MSTRING(mxa, account.a_name,
994 result = lsarpc_s_UpdateDomainTable(mxa, &account,
1028 lsarpc_s_LookupSids3(void *arg, ndr_xa_t *mxa)
1047 lsarpc_s_LookupNames2(void *arg, ndr_xa_t *mxa)
1068 rids = NDR_NEW(mxa, struct lsar_rid_entry2);
1069 domain_table = NDR_NEW(mxa, struct mslsa_domain_table);
1070 domain_entry = NDR_NEW(mxa, struct mslsa_domain_entry);
1103 rc = NDR_MSTRING(mxa, account.a_domain,
1107 (struct mslsa_sid *)NDR_SIDDUP(mxa, account.a_domsid);
1132 lsarpc_s_LookupNames3(void *arg, ndr_xa_t *mxa)
1153 sids = NDR_NEW(mxa, struct lsar_translated_sid_ex2);
1154 domain_table = NDR_NEW(mxa, struct mslsa_domain_table);
1155 domain_entry = NDR_NEW(mxa, struct mslsa_domain_entry);
1176 sids[0].sid = (struct mslsa_sid *)NDR_SIDDUP(mxa, account.a_sid);
1188 rc = NDR_MSTRING(mxa, account.a_domain,
1192 (struct mslsa_sid *)NDR_SIDDUP(mxa, account.a_domsid);
1215 lsarpc_s_LookupNames4(void *arg, ndr_xa_t *mxa)