Lines Matching refs:mxa
105 static int samr_call_stub(ndr_xa_t *mxa);
143 samr_call_stub(ndr_xa_t *mxa)
145 NDS_SETF(&mxa->send_nds, NDS_F_NOTERM);
146 NDS_SETF(&mxa->recv_nds, NDS_F_NOTERM);
148 return (ndr_generic_call_stub(mxa));
155 samr_hdalloc(ndr_xa_t *mxa, samr_key_t key, smb_domain_type_t domain_type,
169 if ((id = ndr_hdalloc(mxa, data)) == NULL) {
174 if ((hd = ndr_hdlookup(mxa, id)) != NULL)
184 samr_hdfree(ndr_xa_t *mxa, ndr_hdid_t *id)
188 if ((hd = ndr_hdlookup(mxa, id)) != NULL) {
191 ndr_hdfree(mxa, id);
199 samr_hdlookup(ndr_xa_t *mxa, ndr_hdid_t *id, samr_key_t key)
204 if ((hd = ndr_hdlookup(mxa, id)) == NULL)
227 samr_s_Connect(void *arg, ndr_xa_t *mxa)
232 id = samr_hdalloc(mxa, SAMR_KEY_CONNECT, SMB_DOMAIN_NULL, 0);
251 samr_s_CloseHandle(void *arg, ndr_xa_t *mxa)
256 samr_hdfree(mxa, id);
272 samr_s_LookupDomain(void *arg, ndr_xa_t *mxa)
290 param->sid = (struct samr_sid *)NDR_SIDDUP(mxa, di.di_binsid);
309 samr_s_EnumLocalDomains(void *arg, ndr_xa_t *mxa)
315 if (samr_hdlookup(mxa, id, SAMR_KEY_CONNECT) == NULL)
318 status = samr_s_enum_local_domains(param, mxa);
346 ndr_xa_t *mxa)
352 hostname = NDR_MALLOC(mxa, NETBIOS_NAME_SZ);
359 entry = NDR_NEWN(mxa, struct samr_LocalDomainEntry, 2);
364 (void) NDR_MSTRING(mxa, hostname, (ndr_mstring_t *)&entry[0].name);
365 (void) NDR_MSTRING(mxa, "Builtin", (ndr_mstring_t *)&entry[1].name);
367 info = NDR_NEW(mxa, struct samr_LocalDomainInfo);
385 samr_s_OpenDomain(void *arg, ndr_xa_t *mxa)
391 if (samr_hdlookup(mxa, id, SAMR_KEY_CONNECT) == NULL) {
410 id = samr_hdalloc(mxa, SAMR_KEY_DOMAIN, domain.di_type, 0);
433 samr_s_QueryDomainInfo(void *arg, ndr_xa_t *mxa)
445 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL) {
451 info = NDR_NEW(mxa, struct samr_QueryDomainInfoRes);
509 (void) NDR_MSTRING(mxa, "",
511 (void) NDR_MSTRING(mxa, domain,
513 (void) NDR_MSTRING(mxa, "",
539 samr_s_QueryInfoDomain2(void *arg, ndr_xa_t *mxa)
541 return (samr_s_QueryDomainInfo(arg, mxa));
552 samr_s_LookupNames(void *arg, ndr_xa_t *mxa)
562 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL)
582 param->rids.rid = NDR_NEW(mxa, DWORD);
583 param->rid_types.rid_type = NDR_NEW(mxa, DWORD);
636 samr_s_OpenUser(void *arg, ndr_xa_t *mxa)
643 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL) {
651 id = samr_hdalloc(mxa, SAMR_KEY_USER, data->kd_type, param->rid);
671 samr_s_DeleteUser(void *arg, ndr_xa_t *mxa)
690 samr_s_QueryUserInfo(void *arg, ndr_xa_t *mxa)
705 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_USER)) == NULL) {
737 (void) NDR_MSTRING(mxa, account.a_name,
772 samr_s_QueryUserGroups(void *arg, ndr_xa_t *mxa)
788 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_USER)) == NULL) {
813 info = NDR_NEW(mxa, struct samr_UserGroupInfo);
821 info->groups = NDR_MALLOC(mxa, size);
871 samr_s_OpenGroup(void *arg, ndr_xa_t *mxa)
878 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL) {
885 id = samr_hdalloc(mxa, SAMR_KEY_GROUP, data->kd_type, param->rid);
906 samr_s_AddAliasMember(void *arg, ndr_xa_t *mxa)
922 if (!ndr_is_admin(mxa)) {
929 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_ALIAS)) == NULL) {
965 samr_s_DeleteAliasMember(void *arg, ndr_xa_t *mxa)
981 if (!ndr_is_admin(mxa)) {
987 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_ALIAS)) == NULL) {
1023 samr_s_ListAliasMembers(void *arg, ndr_xa_t *mxa)
1038 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_ALIAS)) == NULL) {
1057 info.sidlist = NDR_MALLOC(mxa, size);
1068 user->sid = (struct samr_sid *)NDR_SIDDUP(mxa,
1096 samr_s_Connect2(void *arg, ndr_xa_t *mxa)
1101 id = samr_hdalloc(mxa, SAMR_KEY_CONNECT, SMB_DOMAIN_NULL, 0);
1120 samr_s_GetUserPwInfo(void *arg, ndr_xa_t *mxa)
1135 samr_s_CreateUser(void *arg, ndr_xa_t *mxa)
1149 samr_s_ChangePasswordUser2(void *arg, ndr_xa_t *mxa)
1165 samr_s_GetDomainPwInfo(void *arg, ndr_xa_t *mxa)
1180 samr_s_SetUserInfo(void *arg, ndr_xa_t *mxa)
1200 samr_s_QueryDispInfo(void *arg, ndr_xa_t *mxa)
1215 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL) {
1245 param->users.acct = NDR_MALLOC(mxa,
1272 if (NDR_MSTRING(mxa, uinfo->su_name,
1278 (void) NDR_MSTRING(mxa, uinfo->su_fullname,
1280 (void) NDR_MSTRING(mxa, uinfo->su_desc,
1334 samr_s_EnumDomainGroups(void *arg, ndr_xa_t *mxa)
1340 if (samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN) == NULL)
1364 mxa, sizeof (struct group_disp_info));
1370 (void) NDR_MSTRING(mxa, "None",
1373 (void) NDR_MSTRING(mxa, "Ordinary users",
1390 samr_s_OpenAlias(void *arg, ndr_xa_t *mxa)
1404 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL) {
1449 id = samr_hdalloc(mxa, SAMR_KEY_ALIAS, data->kd_type, param->rid);
1474 samr_s_CreateDomainAlias(void *arg, ndr_xa_t *mxa)
1483 if (samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN) != NULL) {
1496 if ((!ndr_is_admin(mxa)) ||
1519 id = samr_hdalloc(mxa, SAMR_KEY_ALIAS, SMB_DOMAIN_LOCAL, grp.sg_rid);
1538 samr_s_SetAliasInfo(void *arg, ndr_xa_t *mxa)
1544 if (samr_hdlookup(mxa, id, SAMR_KEY_ALIAS) == NULL)
1558 samr_s_QueryAliasInfo(void *arg, ndr_xa_t *mxa)
1575 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_ALIAS)) == NULL) {
1623 (void) NDR_MSTRING(mxa, name,
1625 (void) NDR_MSTRING(mxa, desc,
1632 (void) NDR_MSTRING(mxa, name,
1638 (void) NDR_MSTRING(mxa, desc,
1670 samr_s_DeleteDomainAlias(void *arg, ndr_xa_t *mxa)
1682 if (!ndr_is_admin(mxa)) {
1688 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_ALIAS)) == NULL) {
1737 samr_s_EnumDomainAliases(void *arg, ndr_xa_t *mxa)
1748 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL) {
1758 param->aliases = (struct aliases_info *)NDR_MALLOC(mxa,
1775 param->aliases = (struct aliases_info *)NDR_MALLOC(mxa,
1796 (void) NDR_MSTRING(mxa, grp.sg_name,
1818 samr_s_Connect4(void *arg, ndr_xa_t *mxa)
1823 id = samr_hdalloc(mxa, SAMR_KEY_CONNECT, SMB_DOMAIN_NULL, 0);
1843 samr_s_Connect5(void *arg, ndr_xa_t *mxa)