Lines Matching refs:mxa
250 srvsvc_s_NetConnectEnum(void *arg, ndr_xa_t *mxa)
259 if (!ndr_is_poweruser(mxa)) {
298 status = srvsvc_netconnectenum_level0(mxa, &se, param);
301 status = srvsvc_netconnectenum_level1(mxa, &se, param);
319 status = srvsvc_netconnectenum_common(mxa, ¶m->info, ns, &se);
347 srvsvc_netconnectenum_level0(ndr_xa_t *mxa, smb_svcenum_t *se,
353 if ((info0 = NDR_NEW(mxa, srvsvc_NetConnectInfo0_t)) == NULL)
364 ci0 = NDR_NEWN(mxa, srvsvc_NetConnectInfoBuf0_t, se->se_nlimit);
382 srvsvc_netconnectenum_level1(ndr_xa_t *mxa, smb_svcenum_t *se,
388 if ((info1 = NDR_NEW(mxa, srvsvc_NetConnectInfo1_t)) == NULL)
400 ci1 = NDR_NEWN(mxa, srvsvc_NetConnectInfoBuf1_t, se->se_nlimit);
418 srvsvc_netconnectenum_common(ndr_xa_t *mxa, srvsvc_NetConnectInfo_t *info,
454 NDR_STRDUP(mxa, tree->ci_username);
456 NDR_STRDUP(mxa, tree->ci_share);
591 srvsvc_s_NetFileEnum(void *arg, ndr_xa_t *mxa)
597 if (!ndr_is_admin(mxa)) {
629 status = srvsvc_NetFileEnum2(mxa, param, &se);
633 status = srvsvc_NetFileEnum3(mxa, param, &se);
673 srvsvc_NetFileEnum2(ndr_xa_t *mxa, struct mslm_NetFileEnum *param,
682 param->info.ru.info2 = NDR_NEW(mxa, struct mslm_NetFileInfo2);
691 fi2 = NDR_NEWN(mxa, struct mslm_NetFileInfoBuf2, se->se_nlimit);
735 srvsvc_NetFileEnum3(ndr_xa_t *mxa, struct mslm_NetFileEnum *param,
744 param->info.ru.info3 = NDR_NEW(mxa, struct mslm_NetFileInfo3);
754 fi3 = NDR_NEWN(mxa, struct mslm_NetFileInfoBuf3, se->se_nlimit);
779 NDR_STRDUP(mxa, ofile->fi_path);
781 NDR_STRDUP(mxa, ofile->fi_username);
816 srvsvc_s_NetFileClose(void *arg, ndr_xa_t *mxa)
834 if (!ndr_is_admin(mxa)) {
858 srvsvc_s_NetShareGetInfo(void *arg, ndr_xa_t *mxa)
885 netname = (uint8_t *)NDR_STRDUP(mxa, si.shr_name);
886 comment = (uint8_t *)NDR_STRDUP(mxa, si.shr_cmnt);
887 info = NDR_NEW(mxa, srvsvc_netshare_getinfo_t);
915 (uint8_t *)srvsvc_share_mkpath(mxa, si.shr_path);
938 (uint8_t *)srvsvc_share_mkpath(mxa, si.shr_path);
945 status = srvsvc_share_getsd(mxa, &si, &sd);
962 (uint8_t *)srvsvc_share_mkpath(mxa, si.shr_path);
970 status = srvsvc_share_getsd(mxa, &si, &sd);
1003 status = srvsvc_share_getsd(mxa, &si, &sd);
1030 srvsvc_share_getsd(ndr_xa_t *mxa, smb_share_t *si, srvsvc_sd_t *sd)
1044 if ((sd->sd_buf = NDR_MALLOC(mxa, sd->sd_size)) == NULL)
1068 srvsvc_s_NetShareSetInfo(void *arg, ndr_xa_t *mxa)
1087 native_os = ndr_native_os(mxa);
1089 if (!ndr_is_poweruser(mxa)) {
1387 srvsvc_s_NetSessionEnum(void *arg, ndr_xa_t *mxa)
1395 if (!ndr_is_admin(mxa)) {
1400 if ((info = NDR_NEW(mxa, srvsvc_infonres_t)) == NULL) {
1430 info->entries = NDR_NEWN(mxa, struct mslm_SESSION_INFO_0,
1434 info->entries = NDR_NEWN(mxa, struct mslm_SESSION_INFO_1,
1438 info->entries = NDR_NEWN(mxa, struct mslm_SESSION_INFO_2,
1442 info->entries = NDR_NEWN(mxa, struct mslm_SESSION_INFO_10,
1446 info->entries = NDR_NEWN(mxa, struct mslm_SESSION_INFO_502,
1465 status = srvsvc_NetSessionEnumCommon(mxa, info, ns, &se);
1490 srvsvc_NetSessionEnumCommon(ndr_xa_t *mxa, srvsvc_infonres_t *info,
1529 info0->sesi0_cname = NDR_STRDUP(mxa, workstation);
1536 info1->sesi1_cname = NDR_STRDUP(mxa, workstation);
1537 info1->sesi1_uname = NDR_STRDUP(mxa, account);
1551 info2->sesi2_cname = NDR_STRDUP(mxa, workstation);
1552 info2->sesi2_uname = NDR_STRDUP(mxa, account);
1567 info10->sesi10_cname = NDR_STRDUP(mxa, workstation);
1568 info10->sesi10_uname = NDR_STRDUP(mxa, account);
1580 info502->sesi502_cname = NDR_STRDUP(mxa, workstation);
1581 info502->sesi502_uname = NDR_STRDUP(mxa, account);
1633 srvsvc_s_NetSessionDel(void *arg, ndr_xa_t *mxa)
1651 if (!ndr_is_admin(mxa)) {
1671 srvsvc_s_NetServerGetInfo(void *arg, ndr_xa_t *mxa)
1698 info100 = NDR_NEW(mxa, struct mslm_SERVER_INFO_100);
1704 info100->sv100_name = (uint8_t *)NDR_STRDUP(mxa, hostname);
1712 info101 = NDR_NEW(mxa, struct mslm_SERVER_INFO_101);
1721 info101->sv101_name = (uint8_t *)NDR_STRDUP(mxa, hostname);
1723 = (uint8_t *)NDR_STRDUP(mxa, sys_comment);
1733 info102 = NDR_NEW(mxa, struct mslm_SERVER_INFO_102);
1742 info102->sv102_name = (uint8_t *)NDR_STRDUP(mxa, hostname);
1744 = (uint8_t *)NDR_STRDUP(mxa, sys_comment);
1766 info502 = NDR_NEW(mxa, struct mslm_SERVER_INFO_502);
1781 info503 = NDR_NEW(mxa, struct mslm_SERVER_INFO_503);
1839 srvsvc_s_NetRemoteTOD(void *arg, ndr_xa_t *mxa)
1851 tod = NDR_NEW(mxa, struct mslm_TIME_OF_DAY_INFO);
1889 srvsvc_s_NetNameValidate(void *arg, ndr_xa_t *mxa)
1959 srvsvc_s_NetShareAdd(void *arg, ndr_xa_t *mxa)
1972 native_os = ndr_native_os(mxa);
1974 if (!ndr_is_poweruser(mxa)) {
2081 srvsvc_s_NetShareEnum(void *arg, ndr_xa_t *mxa)
2088 infonres = NDR_NEW(mxa, srvsvc_infonres_t);
2120 status = mlsvc_NetShareEnumLevel0(mxa, infonres, &se, 0);
2124 status = mlsvc_NetShareEnumLevel1(mxa, infonres, &se, 0);
2128 status = mlsvc_NetShareEnumLevel2(mxa, infonres, &se, 0);
2132 status = mlsvc_NetShareEnumLevel501(mxa, infonres, &se, 0);
2136 status = mlsvc_NetShareEnumLevel502(mxa, infonres, &se, 0);
2186 srvsvc_s_NetShareEnumSticky(void *arg, ndr_xa_t *mxa)
2193 infonres = NDR_NEW(mxa, srvsvc_infonres_t);
2225 status = mlsvc_NetShareEnumLevel0(mxa, infonres, &se, 1);
2229 status = mlsvc_NetShareEnumLevel1(mxa, infonres, &se, 1);
2233 status = mlsvc_NetShareEnumLevel2(mxa, infonres, &se, 1);
2237 status = mlsvc_NetShareEnumLevel502(mxa, infonres, &se, 1);
2274 mlsvc_NetShareEnumLevel0(ndr_xa_t *mxa, srvsvc_infonres_t *infonres,
2287 info0 = NDR_NEWN(mxa, struct mslm_NetShareInfo_0, se->se_nlimit);
2313 status = mlsvc_NetShareEnumCommon(mxa, se, si, (void *)info0);
2321 if (srvsvc_add_autohome(mxa, se, (void *)info0))
2334 mlsvc_NetShareEnumLevel1(ndr_xa_t *mxa, srvsvc_infonres_t *infonres,
2347 info1 = NDR_NEWN(mxa, struct mslm_NetShareInfo_1, se->se_nlimit);
2373 status = mlsvc_NetShareEnumCommon(mxa, se, si, (void *)info1);
2381 if (srvsvc_add_autohome(mxa, se, (void *)info1))
2394 mlsvc_NetShareEnumLevel2(ndr_xa_t *mxa, srvsvc_infonres_t *infonres,
2407 info2 = NDR_NEWN(mxa, struct mslm_NetShareInfo_2, se->se_nlimit);
2433 status = mlsvc_NetShareEnumCommon(mxa, se, si, (void *)info2);
2441 if (srvsvc_add_autohome(mxa, se, (void *)info2))
2454 mlsvc_NetShareEnumLevel501(ndr_xa_t *mxa, srvsvc_infonres_t *infonres,
2467 info501 = NDR_NEWN(mxa, struct mslm_NetShareInfo_501,
2494 status = mlsvc_NetShareEnumCommon(mxa, se, si, (void *)info501);
2502 if (srvsvc_add_autohome(mxa, se, (void *)info501))
2515 mlsvc_NetShareEnumLevel502(ndr_xa_t *mxa, srvsvc_infonres_t *infonres,
2528 info502 = NDR_NEWN(mxa, struct mslm_NetShareInfo_502,
2555 status = mlsvc_NetShareEnumCommon(mxa, se, si, (void *)info502);
2563 if (srvsvc_add_autohome(mxa, se, (void *)info502))
2588 mlsvc_NetShareEnumCommon(ndr_xa_t *mxa, smb_svcenum_t *se,
2603 netname = (uint8_t *)NDR_STRDUP(mxa, si->shr_name);
2604 comment = (uint8_t *)NDR_STRDUP(mxa, si->shr_cmnt);
2605 passwd = (uint8_t *)NDR_STRDUP(mxa, empty_string);
2606 path = (uint8_t *)srvsvc_share_mkpath(mxa, si->shr_path);
2655 if (srvsvc_share_getsd(mxa, si, &sd) == ERROR_SUCCESS) {
2679 srvsvc_add_autohome(ndr_xa_t *mxa, smb_svcenum_t *se, void *infop)
2681 smb_netuserinfo_t *user = mxa->pipe->np_user;
2704 status = mlsvc_NetShareEnumCommon(mxa, se, &si, infop);
2727 srvsvc_share_mkpath(ndr_xa_t *mxa, char *path)
2734 return (NDR_STRDUP(mxa, path));
2739 return (NDR_STRDUP(mxa, tmpbuf));
2752 return (NDR_STRDUP(mxa, tmpbuf));
2756 srvsvc_s_NetShareCheck(void *arg, ndr_xa_t *mxa)
2774 path = srvsvc_share_mkpath(mxa, si->shr_path);
2799 srvsvc_s_NetShareDel(void *arg, ndr_xa_t *mxa)
2804 if (!ndr_is_poweruser(mxa) ||
2831 srvsvc_s_NetGetFileSecurity(void *arg, ndr_xa_t *mxa)
2850 srvsvc_s_NetSetFileSecurity(void *arg, ndr_xa_t *mxa)