Lines Matching refs:mxa
232 srvsvc_s_NetConnectEnum(void *arg, ndr_xa_t *mxa)
240 if (!ndr_is_poweruser(mxa)) {
272 status = srvsvc_netconnectenum_level0(mxa, &se, param);
275 status = srvsvc_netconnectenum_level1(mxa, &se, param);
299 status = srvsvc_netconnectenum_common(mxa, ¶m->info, ns, &se);
327 srvsvc_netconnectenum_level0(ndr_xa_t *mxa, smb_svcenum_t *se,
333 if ((info0 = NDR_NEW(mxa, srvsvc_NetConnectInfo0_t)) == NULL)
344 ci0 = NDR_NEWN(mxa, srvsvc_NetConnectInfoBuf0_t, se->se_nlimit);
362 srvsvc_netconnectenum_level1(ndr_xa_t *mxa, smb_svcenum_t *se,
368 if ((info1 = NDR_NEW(mxa, srvsvc_NetConnectInfo1_t)) == NULL)
380 ci1 = NDR_NEWN(mxa, srvsvc_NetConnectInfoBuf1_t, se->se_nlimit);
398 srvsvc_netconnectenum_common(ndr_xa_t *mxa, srvsvc_NetConnectInfo_t *info,
434 NDR_STRDUP(mxa, tree->ci_username);
436 NDR_STRDUP(mxa, tree->ci_share);
572 srvsvc_s_NetFileEnum(void *arg, ndr_xa_t *mxa)
578 if (!ndr_is_admin(mxa)) {
610 status = srvsvc_NetFileEnum2(mxa, param, &se);
614 status = srvsvc_NetFileEnum3(mxa, param, &se);
654 srvsvc_NetFileEnum2(ndr_xa_t *mxa, struct mslm_NetFileEnum *param,
663 param->info.ru.info2 = NDR_NEW(mxa, struct mslm_NetFileInfo2);
672 fi2 = NDR_NEWN(mxa, struct mslm_NetFileInfoBuf2, se->se_nlimit);
716 srvsvc_NetFileEnum3(ndr_xa_t *mxa, struct mslm_NetFileEnum *param,
725 param->info.ru.info3 = NDR_NEW(mxa, struct mslm_NetFileInfo3);
735 fi3 = NDR_NEWN(mxa, struct mslm_NetFileInfoBuf3, se->se_nlimit);
760 NDR_STRDUP(mxa, ofile->fi_path);
762 NDR_STRDUP(mxa, ofile->fi_username);
797 srvsvc_s_NetFileClose(void *arg, ndr_xa_t *mxa)
815 if (!ndr_is_admin(mxa)) {
839 srvsvc_s_NetShareGetInfo(void *arg, ndr_xa_t *mxa)
867 netname = (uint8_t *)NDR_STRDUP(mxa, si.shr_name);
868 comment = (uint8_t *)NDR_STRDUP(mxa, si.shr_cmnt);
869 path = (uint8_t *)NDR_STRDUP(mxa, si.shr_winpath);
870 info = NDR_NEW(mxa, srvsvc_netshare_getinfo_t);
899 if (!ndr_is_poweruser(mxa)) {
927 if (!ndr_is_poweruser(mxa)) {
941 status = srvsvc_share_getsd(mxa, &si, &sd);
955 if (!ndr_is_poweruser(mxa)) {
970 status = srvsvc_share_getsd(mxa, &si, &sd);
1001 status = srvsvc_share_getsd(mxa, &si, &sd);
1026 srvsvc_share_getsd(ndr_xa_t *mxa, smb_share_t *si, srvsvc_sd_t *sd)
1040 if ((sd->sd_buf = NDR_MALLOC(mxa, sd->sd_size)) == NULL)
1064 srvsvc_s_NetShareSetInfo(void *arg, ndr_xa_t *mxa)
1082 native_os = ndr_native_os(mxa);
1086 if (!ndr_is_poweruser(mxa)) {
1394 srvsvc_s_NetSessionEnum(void *arg, ndr_xa_t *mxa)
1402 if (!ndr_is_admin(mxa)) {
1407 if ((info = NDR_NEW(mxa, srvsvc_infonres_t)) == NULL) {
1437 info->entries = NDR_NEWN(mxa, struct mslm_SESSION_INFO_0,
1441 info->entries = NDR_NEWN(mxa, struct mslm_SESSION_INFO_1,
1445 info->entries = NDR_NEWN(mxa, struct mslm_SESSION_INFO_2,
1449 info->entries = NDR_NEWN(mxa, struct mslm_SESSION_INFO_10,
1453 info->entries = NDR_NEWN(mxa, struct mslm_SESSION_INFO_502,
1472 status = srvsvc_NetSessionEnumCommon(mxa, info, ns, &se);
1497 srvsvc_NetSessionEnumCommon(ndr_xa_t *mxa, srvsvc_infonres_t *info,
1536 info0->sesi0_cname = NDR_STRDUP(mxa, workstation);
1543 info1->sesi1_cname = NDR_STRDUP(mxa, workstation);
1544 info1->sesi1_uname = NDR_STRDUP(mxa, account);
1558 info2->sesi2_cname = NDR_STRDUP(mxa, workstation);
1559 info2->sesi2_uname = NDR_STRDUP(mxa, account);
1574 info10->sesi10_cname = NDR_STRDUP(mxa, workstation);
1575 info10->sesi10_uname = NDR_STRDUP(mxa, account);
1587 info502->sesi502_cname = NDR_STRDUP(mxa, workstation);
1588 info502->sesi502_uname = NDR_STRDUP(mxa, account);
1640 srvsvc_s_NetSessionDel(void *arg, ndr_xa_t *mxa)
1658 if (!ndr_is_admin(mxa)) {
1678 srvsvc_s_NetServerGetInfo(void *arg, ndr_xa_t *mxa)
1705 info100 = NDR_NEW(mxa, struct mslm_SERVER_INFO_100);
1711 info100->sv100_name = (uint8_t *)NDR_STRDUP(mxa, hostname);
1719 info101 = NDR_NEW(mxa, struct mslm_SERVER_INFO_101);
1728 info101->sv101_name = (uint8_t *)NDR_STRDUP(mxa, hostname);
1730 = (uint8_t *)NDR_STRDUP(mxa, sys_comment);
1740 info102 = NDR_NEW(mxa, struct mslm_SERVER_INFO_102);
1749 info102->sv102_name = (uint8_t *)NDR_STRDUP(mxa, hostname);
1751 = (uint8_t *)NDR_STRDUP(mxa, sys_comment);
1773 info502 = NDR_NEW(mxa, struct mslm_SERVER_INFO_502);
1788 info503 = NDR_NEW(mxa, struct mslm_SERVER_INFO_503);
1846 srvsvc_s_NetRemoteTOD(void *arg, ndr_xa_t *mxa)
1858 tod = NDR_NEW(mxa, struct mslm_TIME_OF_DAY_INFO);
1896 srvsvc_s_NetNameValidate(void *arg, ndr_xa_t *mxa)
1966 srvsvc_s_NetShareAdd(void *arg, ndr_xa_t *mxa)
1979 native_os = ndr_native_os(mxa);
1981 if (!ndr_is_poweruser(mxa)) {
2126 srvsvc_s_NetShareEnum(void *arg, ndr_xa_t *mxa)
2128 return (srvsvc_share_enum(arg, mxa, B_FALSE));
2147 srvsvc_s_NetShareEnumSticky(void *arg, ndr_xa_t *mxa)
2149 return (srvsvc_share_enum(arg, mxa, B_TRUE));
2153 srvsvc_share_enum(void *arg, ndr_xa_t *mxa, boolean_t sticky)
2157 smb_netuserinfo_t *user = &mxa->pipe->np_user;
2167 if (!ndr_is_poweruser(mxa))
2174 else if (!ndr_is_poweruser(mxa))
2190 infonres = NDR_NEW(mxa, srvsvc_infonres_t);
2231 info = NDR_NEWN(mxa, struct mslm_NetShareInfo_0, se.se_nlimit);
2237 info = NDR_NEWN(mxa, struct mslm_NetShareInfo_1, se.se_nlimit);
2243 info = NDR_NEWN(mxa, struct mslm_NetShareInfo_2, se.se_nlimit);
2249 info = NDR_NEWN(mxa, struct mslm_NetShareInfo_501,
2256 info = NDR_NEWN(mxa, struct mslm_NetShareInfo_502,
2295 status = mlsvc_NetShareEnumCommon(mxa, &se,
2338 mlsvc_NetShareEnumCommon(ndr_xa_t *mxa, smb_svcenum_t *se,
2354 netname = (uint8_t *)NDR_STRDUP(mxa, si->shr_name);
2355 path = (uint8_t *)NDR_STRDUP(mxa, si->shr_winpath);
2358 comment = (uint8_t *)NDR_STRDUP(mxa, si->shr_cmnt);
2407 if (srvsvc_share_getsd(mxa, si, &sd) == ERROR_SUCCESS) {
2445 srvsvc_s_NetShareCheck(void *arg, ndr_xa_t *mxa)
2481 srvsvc_s_NetShareDel(void *arg, ndr_xa_t *mxa)
2486 if (!ndr_is_poweruser(mxa) ||
2515 srvsvc_s_NetGetFileSecurity(void *arg, ndr_xa_t *mxa)
2534 srvsvc_s_NetSetFileSecurity(void *arg, ndr_xa_t *mxa)