Lines Matching refs:mxa

109 static int samr_call_stub(ndr_xa_t *mxa);
147 samr_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));
159 samr_hdalloc(ndr_xa_t *mxa, samr_key_t key, smb_domain_type_t domain_type,
174 if ((id = ndr_hdalloc(mxa, data)) == NULL) {
179 if ((hd = ndr_hdlookup(mxa, id)) != NULL)
189 samr_hdfree(ndr_xa_t *mxa, ndr_hdid_t *id)
193 if ((hd = ndr_hdlookup(mxa, id)) != NULL) {
196 ndr_hdfree(mxa, id);
204 samr_hdlookup(ndr_xa_t *mxa, ndr_hdid_t *id, samr_key_t key)
209 if ((hd = ndr_hdlookup(mxa, id)) == NULL)
232 samr_s_Connect(void *arg, ndr_xa_t *mxa)
237 id = samr_hdalloc(mxa, SAMR_KEY_CONNECT, SMB_DOMAIN_NULL, 0,
257 samr_s_CloseHandle(void *arg, ndr_xa_t *mxa)
262 samr_hdfree(mxa, id);
278 samr_s_LookupDomain(void *arg, ndr_xa_t *mxa)
296 param->sid = (struct samr_sid *)NDR_SIDDUP(mxa, di.di_binsid);
315 samr_s_EnumLocalDomains(void *arg, ndr_xa_t *mxa)
321 if (samr_hdlookup(mxa, id, SAMR_KEY_CONNECT) == NULL)
324 status = samr_s_enum_local_domains(param, mxa);
352 ndr_xa_t *mxa)
358 hostname = NDR_MALLOC(mxa, NETBIOS_NAME_SZ);
365 entry = NDR_NEWN(mxa, struct samr_LocalDomainEntry, 2);
370 (void) NDR_MSTRING(mxa, hostname, (ndr_mstring_t *)&entry[0].name);
371 (void) NDR_MSTRING(mxa, "Builtin", (ndr_mstring_t *)&entry[1].name);
373 info = NDR_NEW(mxa, struct samr_LocalDomainInfo);
391 samr_s_OpenDomain(void *arg, ndr_xa_t *mxa)
397 if (samr_hdlookup(mxa, id, SAMR_KEY_CONNECT) == NULL) {
416 id = samr_hdalloc(mxa, SAMR_KEY_DOMAIN, domain.di_type, 0,
440 samr_s_QueryDomainInfo(void *arg, ndr_xa_t *mxa)
452 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL) {
458 info = NDR_NEW(mxa, struct samr_QueryDomainInfoRes);
516 (void) NDR_MSTRING(mxa, "",
518 (void) NDR_MSTRING(mxa, domain,
520 (void) NDR_MSTRING(mxa, "",
546 samr_s_QueryInfoDomain2(void *arg, ndr_xa_t *mxa)
548 return (samr_s_QueryDomainInfo(arg, mxa));
559 samr_s_LookupNames(void *arg, ndr_xa_t *mxa)
569 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL)
589 param->rids.rid = NDR_NEW(mxa, DWORD);
590 param->rid_types.rid_type = NDR_NEW(mxa, DWORD);
643 samr_s_OpenUser(void *arg, ndr_xa_t *mxa)
650 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL) {
658 id = samr_hdalloc(mxa, SAMR_KEY_USER, data->kd_type, param->rid,
679 samr_s_DeleteUser(void *arg, ndr_xa_t *mxa)
716 samr_s_QueryUserInfo(void *arg, ndr_xa_t *mxa)
730 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_USER)) == NULL) {
777 (void) NDR_MSTRING(mxa, account.a_name,
806 samr_s_QueryUserGroups(void *arg, ndr_xa_t *mxa)
822 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_USER)) == NULL) {
847 info = NDR_NEW(mxa, struct samr_UserGroupInfo);
855 info->groups = NDR_MALLOC(mxa, size);
905 samr_s_OpenGroup(void *arg, ndr_xa_t *mxa)
912 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL) {
919 id = samr_hdalloc(mxa, SAMR_KEY_GROUP, data->kd_type, param->rid,
941 samr_s_AddAliasMember(void *arg, ndr_xa_t *mxa)
957 if (!ndr_is_admin(mxa)) {
964 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_ALIAS)) == NULL) {
1000 samr_s_DeleteAliasMember(void *arg, ndr_xa_t *mxa)
1016 if (!ndr_is_admin(mxa)) {
1022 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_ALIAS)) == NULL) {
1058 samr_s_ListAliasMembers(void *arg, ndr_xa_t *mxa)
1073 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_ALIAS)) == NULL) {
1092 info.sidlist = NDR_MALLOC(mxa, size);
1103 user->sid = (struct samr_sid *)NDR_SIDDUP(mxa,
1131 samr_s_Connect2(void *arg, ndr_xa_t *mxa)
1136 id = samr_hdalloc(mxa, SAMR_KEY_CONNECT, SMB_DOMAIN_NULL, 0,
1156 samr_s_GetUserPwInfo(void *arg, ndr_xa_t *mxa)
1171 samr_s_CreateUser(void *arg, ndr_xa_t *mxa)
1185 samr_s_ChangeUserPasswd(void *arg, ndr_xa_t *mxa)
1201 samr_s_GetDomainPwInfo(void *arg, ndr_xa_t *mxa)
1216 samr_s_SetUserInfo(void *arg, ndr_xa_t *mxa)
1236 samr_s_QueryDispInfo(void *arg, ndr_xa_t *mxa)
1251 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL) {
1281 param->users.acct = NDR_MALLOC(mxa,
1308 if (NDR_MSTRING(mxa, uinfo->su_name,
1314 (void) NDR_MSTRING(mxa, uinfo->su_fullname,
1316 (void) NDR_MSTRING(mxa, uinfo->su_desc,
1370 samr_s_EnumDomainGroups(void *arg, ndr_xa_t *mxa)
1376 if (samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN) == NULL)
1400 mxa, sizeof (struct group_disp_info));
1406 (void) NDR_MSTRING(mxa, "None",
1409 (void) NDR_MSTRING(mxa, "Ordinary users",
1426 samr_s_OpenAlias(void *arg, ndr_xa_t *mxa)
1440 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL) {
1485 id = samr_hdalloc(mxa, SAMR_KEY_ALIAS, data->kd_type, param->rid,
1511 samr_s_CreateDomainAlias(void *arg, ndr_xa_t *mxa)
1520 if (samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN) != NULL) {
1533 if ((!ndr_is_admin(mxa)) ||
1556 id = samr_hdalloc(mxa, SAMR_KEY_ALIAS, SMB_DOMAIN_LOCAL, grp.sg_rid,
1576 samr_s_SetAliasInfo(void *arg, ndr_xa_t *mxa)
1582 if (samr_hdlookup(mxa, id, SAMR_KEY_ALIAS) == NULL)
1596 samr_s_QueryAliasInfo(void *arg, ndr_xa_t *mxa)
1613 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_ALIAS)) == NULL) {
1661 (void) NDR_MSTRING(mxa, name,
1664 (void) NDR_MSTRING(mxa, desc,
1672 (void) NDR_MSTRING(mxa, desc,
1704 samr_s_DeleteDomainAlias(void *arg, ndr_xa_t *mxa)
1716 if (!ndr_is_admin(mxa)) {
1722 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_ALIAS)) == NULL) {
1771 samr_s_EnumDomainAliases(void *arg, ndr_xa_t *mxa)
1782 if ((hd = samr_hdlookup(mxa, id, SAMR_KEY_DOMAIN)) == NULL) {
1792 param->aliases = (struct aliases_info *)NDR_MALLOC(mxa,
1809 param->aliases = (struct aliases_info *)NDR_MALLOC(mxa,
1830 (void) NDR_MSTRING(mxa, grp.sg_name,
1852 samr_s_Connect4(void *arg, ndr_xa_t *mxa)
1857 id = samr_hdalloc(mxa, SAMR_KEY_CONNECT, SMB_DOMAIN_NULL, 0,
1878 samr_s_Connect5(void *arg, ndr_xa_t *mxa)
1925 samr_s_QuerySecObject(void *arg, ndr_xa_t *mxa)
1943 sd_buf = NDR_MALLOC(mxa, sd_len);
1944 param->sd = NDR_MALLOC(mxa, sizeof (samr_sd_t));