Lines Matching refs:param

248 	struct samr_Connect *param = arg;  in samr_s_Connect()  local
253 bcopy(id, &param->handle, sizeof (samr_handle_t)); in samr_s_Connect()
254 param->status = 0; in samr_s_Connect()
256 bzero(&param->handle, sizeof (samr_handle_t)); in samr_s_Connect()
257 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_Connect()
272 struct samr_CloseHandle *param = arg; in samr_s_CloseHandle() local
273 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in samr_s_CloseHandle()
277 bzero(&param->result_handle, sizeof (samr_handle_t)); in samr_s_CloseHandle()
278 param->status = 0; in samr_s_CloseHandle()
288 struct samr_QuerySecObject *param = arg; in samr_s_QuerySecObject() local
293 id = (ndr_hdid_t *)&param->obj_handle; in samr_s_QuerySecObject()
299 param->sd = NDR_MALLOC(mxa, sizeof (samr_sd_t)); in samr_s_QuerySecObject()
300 if (param->sd == NULL) { in samr_s_QuerySecObject()
304 param->sd->length = sizeof (struct samr_sec_desc); in samr_s_QuerySecObject()
306 sd = NDR_MALLOC(mxa, param->sd->length); in samr_s_QuerySecObject()
311 bzero(sd, param->sd->length); in samr_s_QuerySecObject()
315 param->sd->data = (void *)sd; in samr_s_QuerySecObject()
316 param->status = NT_STATUS_SUCCESS; in samr_s_QuerySecObject()
320 bzero(param, sizeof (struct samr_QuerySecObject)); in samr_s_QuerySecObject()
321 param->status = NT_SC_ERROR(status); in samr_s_QuerySecObject()
336 struct samr_LookupDomain *param = arg; in samr_s_LookupDomain() local
340 if ((domain_name = (char *)param->domain_name.str) == NULL) { in samr_s_LookupDomain()
341 bzero(param, sizeof (struct samr_LookupDomain)); in samr_s_LookupDomain()
342 param->status = NT_SC_ERROR(NT_STATUS_INVALID_PARAMETER); in samr_s_LookupDomain()
347 bzero(param, sizeof (struct samr_LookupDomain)); in samr_s_LookupDomain()
348 param->status = NT_SC_ERROR(NT_STATUS_NO_SUCH_DOMAIN); in samr_s_LookupDomain()
352 param->sid = (struct samr_sid *)NDR_SIDDUP(mxa, di.di_binsid); in samr_s_LookupDomain()
353 if (param->sid == NULL) { in samr_s_LookupDomain()
354 bzero(param, sizeof (struct samr_LookupDomain)); in samr_s_LookupDomain()
355 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_LookupDomain()
359 param->status = NT_STATUS_SUCCESS; in samr_s_LookupDomain()
373 struct samr_EnumLocalDomain *param = arg; in samr_s_EnumLocalDomains() local
374 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in samr_s_EnumLocalDomains()
380 status = samr_s_enum_local_domains(param, mxa); in samr_s_EnumLocalDomains()
383 param->enum_context = param->info->entries_read; in samr_s_EnumLocalDomains()
384 param->total_entries = param->info->entries_read; in samr_s_EnumLocalDomains()
385 param->status = NT_STATUS_SUCCESS; in samr_s_EnumLocalDomains()
387 bzero(param, sizeof (struct samr_EnumLocalDomain)); in samr_s_EnumLocalDomains()
388 param->status = NT_SC_ERROR(status); in samr_s_EnumLocalDomains()
407 samr_s_enum_local_domains(struct samr_EnumLocalDomain *param, in samr_s_enum_local_domains() argument
435 param->info = info; in samr_s_enum_local_domains()
449 struct samr_OpenDomain *param = arg; in samr_s_OpenDomain() local
450 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in samr_s_OpenDomain()
454 bzero(&param->domain_handle, sizeof (samr_handle_t)); in samr_s_OpenDomain()
455 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in samr_s_OpenDomain()
459 if (!smb_domain_lookup_sid((smb_sid_t *)param->sid, &domain)) { in samr_s_OpenDomain()
460 bzero(&param->domain_handle, sizeof (samr_handle_t)); in samr_s_OpenDomain()
461 param->status = NT_SC_ERROR(NT_STATUS_CANT_ACCESS_DOMAIN_INFO); in samr_s_OpenDomain()
467 bzero(&param->domain_handle, sizeof (samr_handle_t)); in samr_s_OpenDomain()
468 param->status = NT_SC_ERROR(NT_STATUS_CANT_ACCESS_DOMAIN_INFO); in samr_s_OpenDomain()
474 bcopy(id, &param->domain_handle, sizeof (samr_handle_t)); in samr_s_OpenDomain()
475 param->status = 0; in samr_s_OpenDomain()
477 bzero(&param->domain_handle, sizeof (samr_handle_t)); in samr_s_OpenDomain()
478 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_OpenDomain()
497 struct samr_QueryDomainInfo *param = arg; in samr_s_QueryDomainInfo() local
499 ndr_hdid_t *id = (ndr_hdid_t *)&param->domain_handle; in samr_s_QueryDomainInfo()
508 bzero(param, sizeof (struct samr_QueryDomainInfo)); in samr_s_QueryDomainInfo()
509 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in samr_s_QueryDomainInfo()
515 bzero(param, sizeof (struct samr_QueryDomainInfo)); in samr_s_QueryDomainInfo()
516 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_QueryDomainInfo()
519 info->switch_value = param->info_level; in samr_s_QueryDomainInfo()
520 param->info = info; in samr_s_QueryDomainInfo()
541 bzero(param, sizeof (struct samr_QueryDomainInfo)); in samr_s_QueryDomainInfo()
542 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in samr_s_QueryDomainInfo()
547 bzero(param, sizeof (struct samr_QueryDomainInfo)); in samr_s_QueryDomainInfo()
548 param->status = NT_SC_ERROR(NT_STATUS_INTERNAL_ERROR); in samr_s_QueryDomainInfo()
552 switch (param->info_level) { in samr_s_QueryDomainInfo()
559 param->status = NT_STATUS_SUCCESS; in samr_s_QueryDomainInfo()
564 param->status = NT_STATUS_SUCCESS; in samr_s_QueryDomainInfo()
586 param->status = NT_STATUS_SUCCESS; in samr_s_QueryDomainInfo()
590 bzero(param, sizeof (struct samr_QueryDomainInfo)); in samr_s_QueryDomainInfo()
616 struct samr_LookupNames *param = arg; in samr_s_LookupNames() local
617 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in samr_s_LookupNames()
627 if (param->n_entry != 1) in samr_s_LookupNames()
630 if (param->name.str == NULL) { in samr_s_LookupNames()
639 bzero(param, sizeof (struct samr_LookupNames)); in samr_s_LookupNames()
640 param->status = NT_SC_ERROR(status); in samr_s_LookupNames()
644 param->rids.rid = NDR_NEW(mxa, DWORD); in samr_s_LookupNames()
645 param->rid_types.rid_type = NDR_NEW(mxa, DWORD); in samr_s_LookupNames()
651 wka = smb_wka_lookup_builtin((char *)param->name.str); in samr_s_LookupNames()
653 param->rids.n_entry = 1; in samr_s_LookupNames()
655 &param->rids.rid[0]); in samr_s_LookupNames()
656 param->rid_types.n_entry = 1; in samr_s_LookupNames()
657 param->rid_types.rid_type[0] = wka->wka_type; in samr_s_LookupNames()
658 param->status = NT_STATUS_SUCCESS; in samr_s_LookupNames()
664 status = smb_sam_lookup_name(NULL, (char *)param->name.str, in samr_s_LookupNames()
667 param->rids.n_entry = 1; in samr_s_LookupNames()
668 param->rids.rid[0] = account.a_rid; in samr_s_LookupNames()
669 param->rid_types.n_entry = 1; in samr_s_LookupNames()
670 param->rid_types.rid_type[0] = account.a_type; in samr_s_LookupNames()
671 param->status = NT_STATUS_SUCCESS; in samr_s_LookupNames()
678 bzero(param, sizeof (struct samr_LookupNames)); in samr_s_LookupNames()
679 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in samr_s_LookupNames()
683 param->rids.n_entry = 0; in samr_s_LookupNames()
684 param->rid_types.n_entry = 0; in samr_s_LookupNames()
685 param->status = NT_SC_ERROR(NT_STATUS_NONE_MAPPED); in samr_s_LookupNames()
700 struct samr_OpenUser *param = arg; in samr_s_OpenUser() local
701 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in samr_s_OpenUser()
706 bzero(&param->user_handle, sizeof (samr_handle_t)); in samr_s_OpenUser()
707 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in samr_s_OpenUser()
713 id = samr_hdalloc(mxa, SAMR_KEY_USER, data->kd_type, param->rid); in samr_s_OpenUser()
715 bzero(&param->user_handle, sizeof (samr_handle_t)); in samr_s_OpenUser()
716 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_OpenUser()
718 bcopy(id, &param->user_handle, sizeof (samr_handle_t)); in samr_s_OpenUser()
719 param->status = NT_STATUS_SUCCESS; in samr_s_OpenUser()
735 struct samr_DeleteUser *param = arg; in samr_s_DeleteUser() local
737 bzero(param, sizeof (struct samr_DeleteUser)); in samr_s_DeleteUser()
738 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in samr_s_DeleteUser()
754 struct samr_QueryUserInfo *param = arg; in samr_s_QueryUserInfo() local
764 id = (ndr_hdid_t *)&param->user_handle; in samr_s_QueryUserInfo()
772 if (param->switch_value != SAMR_QUERY_USER_ALL_INFO) { in samr_s_QueryUserInfo()
792 all_info = &param->ru.info21; in samr_s_QueryUserInfo()
812 param->address = 1; in samr_s_QueryUserInfo()
813 param->switch_index = SAMR_QUERY_USER_ALL_INFO; in samr_s_QueryUserInfo()
814 param->status = NT_STATUS_SUCCESS; in samr_s_QueryUserInfo()
821 bzero(param, sizeof (struct samr_QueryUserInfo)); in samr_s_QueryUserInfo()
822 param->status = NT_SC_ERROR(status); in samr_s_QueryUserInfo()
836 struct samr_QueryUserGroups *param = arg; in samr_s_QueryUserGroups() local
839 ndr_hdid_t *id = (ndr_hdid_t *)&param->user_handle; in samr_s_QueryUserGroups()
910 param->info = info; in samr_s_QueryUserGroups()
911 param->status = NT_STATUS_SUCCESS; in samr_s_QueryUserGroups()
916 bzero(param, sizeof (struct samr_QueryUserGroups)); in samr_s_QueryUserGroups()
917 param->status = NT_SC_ERROR(status); in samr_s_QueryUserGroups()
935 struct samr_OpenGroup *param = arg; in samr_s_OpenGroup() local
936 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in samr_s_OpenGroup()
941 bzero(&param->group_handle, sizeof (samr_handle_t)); in samr_s_OpenGroup()
942 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in samr_s_OpenGroup()
947 id = samr_hdalloc(mxa, SAMR_KEY_GROUP, data->kd_type, param->rid); in samr_s_OpenGroup()
950 bcopy(id, &param->group_handle, sizeof (samr_handle_t)); in samr_s_OpenGroup()
951 param->status = 0; in samr_s_OpenGroup()
953 bzero(&param->group_handle, sizeof (samr_handle_t)); in samr_s_OpenGroup()
954 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_OpenGroup()
970 struct samr_AddAliasMember *param = arg; in samr_s_AddAliasMember() local
971 ndr_hdid_t *id = (ndr_hdid_t *)&param->alias_handle; in samr_s_AddAliasMember()
978 if (param->sid == NULL) { in samr_s_AddAliasMember()
979 bzero(param, sizeof (struct samr_AddAliasMember)); in samr_s_AddAliasMember()
980 param->status = NT_SC_ERROR(NT_STATUS_INVALID_PARAMETER); in samr_s_AddAliasMember()
985 bzero(param, sizeof (struct samr_AddAliasMember)); in samr_s_AddAliasMember()
986 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in samr_s_AddAliasMember()
992 bzero(param, sizeof (struct samr_AddAliasMember)); in samr_s_AddAliasMember()
993 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in samr_s_AddAliasMember()
1000 bzero(param, sizeof (struct samr_AddAliasMember)); in samr_s_AddAliasMember()
1002 param->status = NT_SC_ERROR(status); in samr_s_AddAliasMember()
1007 (smb_sid_t *)param->sid, SidTypeUser); in samr_s_AddAliasMember()
1009 bzero(param, sizeof (struct samr_AddAliasMember)); in samr_s_AddAliasMember()
1011 param->status = NT_SC_ERROR(status); in samr_s_AddAliasMember()
1015 param->status = status; in samr_s_AddAliasMember()
1029 struct samr_DeleteAliasMember *param = arg; in samr_s_DeleteAliasMember() local
1030 ndr_hdid_t *id = (ndr_hdid_t *)&param->alias_handle; in samr_s_DeleteAliasMember()
1037 if (param->sid == NULL) { in samr_s_DeleteAliasMember()
1038 bzero(param, sizeof (struct samr_DeleteAliasMember)); in samr_s_DeleteAliasMember()
1039 param->status = NT_SC_ERROR(NT_STATUS_INVALID_PARAMETER); in samr_s_DeleteAliasMember()
1044 bzero(param, sizeof (struct samr_DeleteAliasMember)); in samr_s_DeleteAliasMember()
1045 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in samr_s_DeleteAliasMember()
1050 bzero(param, sizeof (struct samr_DeleteAliasMember)); in samr_s_DeleteAliasMember()
1051 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in samr_s_DeleteAliasMember()
1058 bzero(param, sizeof (struct samr_DeleteAliasMember)); in samr_s_DeleteAliasMember()
1060 param->status = NT_SC_ERROR(status); in samr_s_DeleteAliasMember()
1065 (smb_sid_t *)param->sid, SidTypeUser); in samr_s_DeleteAliasMember()
1067 bzero(param, sizeof (struct samr_DeleteAliasMember)); in samr_s_DeleteAliasMember()
1069 param->status = NT_SC_ERROR(status); in samr_s_DeleteAliasMember()
1073 param->status = status; in samr_s_DeleteAliasMember()
1087 struct samr_ListAliasMembers *param = arg; in samr_s_ListAliasMembers() local
1088 ndr_hdid_t *id = (ndr_hdid_t *)&param->alias_handle; in samr_s_ListAliasMembers()
1101 bzero(param, sizeof (struct samr_ListAliasMembers)); in samr_s_ListAliasMembers()
1102 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in samr_s_ListAliasMembers()
1110 bzero(param, sizeof (struct samr_ListAliasMembers)); in samr_s_ListAliasMembers()
1112 param->status = NT_SC_ERROR(status); in samr_s_ListAliasMembers()
1121 bzero(param, sizeof (struct samr_ListAliasMembers)); in samr_s_ListAliasMembers()
1122 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_ListAliasMembers()
1133 bzero(param, sizeof (struct samr_ListAliasMembers)); in samr_s_ListAliasMembers()
1134 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_ListAliasMembers()
1142 param->info = info; in samr_s_ListAliasMembers()
1143 param->status = status; in samr_s_ListAliasMembers()
1160 struct samr_Connect2 *param = arg; in samr_s_Connect2() local
1165 bcopy(id, &param->handle, sizeof (samr_handle_t)); in samr_s_Connect2()
1166 param->status = 0; in samr_s_Connect2()
1168 bzero(&param->handle, sizeof (samr_handle_t)); in samr_s_Connect2()
1169 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_Connect2()
1185 struct samr_GetUserPwInfo *param = arg; in samr_s_GetUserPwInfo() local
1187 param->pwinfo = &pwinfo; in samr_s_GetUserPwInfo()
1188 param->status = NT_STATUS_SUCCESS; in samr_s_GetUserPwInfo()
1199 struct samr_CreateUser *param = arg; in samr_s_CreateUser() local
1201 bzero(&param->user_handle, sizeof (samr_handle_t)); in samr_s_CreateUser()
1202 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in samr_s_CreateUser()
1213 struct samr_ChangePasswordUser2 *param = arg; in samr_s_ChangePasswordUser2() local
1215 bzero(param, sizeof (*param)); in samr_s_ChangePasswordUser2()
1216 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in samr_s_ChangePasswordUser2()
1230 struct samr_GetDomainPwInfo *param = arg; in samr_s_GetDomainPwInfo() local
1232 param->pwinfo = &pwinfo; in samr_s_GetDomainPwInfo()
1233 param->status = NT_STATUS_SUCCESS; in samr_s_GetDomainPwInfo()
1244 struct samr_SetUserInfo *param = arg; in samr_s_SetUserInfo() local
1246 bzero(param, sizeof (struct samr_SetUserInfo)); in samr_s_SetUserInfo()
1247 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in samr_s_SetUserInfo()
1264 struct samr_QueryDispInfo *param = arg; in samr_s_QueryDispInfo() local
1265 ndr_hdid_t *id = (ndr_hdid_t *)&param->domain_handle; in samr_s_QueryDispInfo()
1282 if (!SAMR_VALID_DISPLEVEL(param->level)) { in samr_s_QueryDispInfo()
1287 if (!SAMR_SUPPORTED_DISPLEVEL(param->level)) { in samr_s_QueryDispInfo()
1300 start_idx = param->start_idx; in samr_s_QueryDispInfo()
1305 if (max_retcnt > param->max_entries) in samr_s_QueryDispInfo()
1306 max_retcnt = param->max_entries; in samr_s_QueryDispInfo()
1307 param->users.acct = NDR_MALLOC(mxa, in samr_s_QueryDispInfo()
1309 user = param->users.acct; in samr_s_QueryDispInfo()
1350 param->status = status; in samr_s_QueryDispInfo()
1352 param->status = NT_STATUS_MORE_ENTRIES; in samr_s_QueryDispInfo()
1355 param->users.total_size = num_users; in samr_s_QueryDispInfo()
1356 param->users.returned_size = retcnt; in samr_s_QueryDispInfo()
1357 param->users.switch_value = param->level; in samr_s_QueryDispInfo()
1358 param->users.count = retcnt; in samr_s_QueryDispInfo()
1370 param->users.total_size = 0; in samr_s_QueryDispInfo()
1371 param->users.returned_size = 0; in samr_s_QueryDispInfo()
1372 param->users.switch_value = param->level; in samr_s_QueryDispInfo()
1373 param->users.count = 0; in samr_s_QueryDispInfo()
1374 param->users.acct = NULL; in samr_s_QueryDispInfo()
1375 param->status = status; in samr_s_QueryDispInfo()
1379 bzero(param, sizeof (struct samr_QueryDispInfo)); in samr_s_QueryDispInfo()
1380 param->status = NT_SC_ERROR(status); in samr_s_QueryDispInfo()
1398 struct samr_EnumDomainGroups *param = arg; in samr_s_EnumDomainGroups() local
1399 ndr_hdid_t *id = (ndr_hdid_t *)&param->domain_handle; in samr_s_EnumDomainGroups()
1405 param->total_size = 0; in samr_s_EnumDomainGroups()
1406 param->returned_size = 0; in samr_s_EnumDomainGroups()
1407 param->switch_value = 3; in samr_s_EnumDomainGroups()
1408 param->count = 0; in samr_s_EnumDomainGroups()
1409 param->groups = 0; in samr_s_EnumDomainGroups()
1410 param->status = status; in samr_s_EnumDomainGroups()
1414 if ((desc->discrim != SAMR_LOCAL_DOMAIN) || (param->start_idx != 0)) { in samr_s_EnumDomainGroups()
1415 param->total_size = 0; in samr_s_EnumDomainGroups()
1416 param->returned_size = 0; in samr_s_EnumDomainGroups()
1417 param->switch_value = 3; in samr_s_EnumDomainGroups()
1418 param->count = 0; in samr_s_EnumDomainGroups()
1419 param->groups = 0; in samr_s_EnumDomainGroups()
1421 param->total_size = 64; in samr_s_EnumDomainGroups()
1422 param->returned_size = 64; in samr_s_EnumDomainGroups()
1423 param->switch_value = 3; in samr_s_EnumDomainGroups()
1424 param->count = 1; in samr_s_EnumDomainGroups()
1425 param->groups = (struct group_disp_info *)NDR_MALLOC( in samr_s_EnumDomainGroups()
1428 param->groups->count = 1; in samr_s_EnumDomainGroups()
1429 param->groups->acct[0].index = 1; in samr_s_EnumDomainGroups()
1430 param->groups->acct[0].rid = 513; in samr_s_EnumDomainGroups()
1431 param->groups->acct[0].ctrl = 0x7; in samr_s_EnumDomainGroups()
1433 (ndr_mstring_t *)&param->groups->acct[0].name); in samr_s_EnumDomainGroups()
1436 (ndr_mstring_t *)&param->groups->acct[0].desc); in samr_s_EnumDomainGroups()
1439 param->status = NT_STATUS_SUCCESS; in samr_s_EnumDomainGroups()
1454 struct samr_OpenAlias *param = arg; in samr_s_OpenAlias() local
1455 ndr_hdid_t *id = (ndr_hdid_t *)&param->domain_handle; in samr_s_OpenAlias()
1471 if ((param->access_mask & SAMR_ALIAS_ACCESS_ALL_ACCESS) == 0) { in samr_s_OpenAlias()
1478 rid = param->rid; in samr_s_OpenAlias()
1511 id = samr_hdalloc(mxa, SAMR_KEY_ALIAS, data->kd_type, param->rid); in samr_s_OpenAlias()
1513 bcopy(id, &param->alias_handle, sizeof (samr_handle_t)); in samr_s_OpenAlias()
1514 param->status = NT_STATUS_SUCCESS; in samr_s_OpenAlias()
1521 bzero(&param->alias_handle, sizeof (samr_handle_t)); in samr_s_OpenAlias()
1522 param->status = NT_SC_ERROR(status); in samr_s_OpenAlias()
1538 struct samr_CreateDomainAlias *param = arg; in samr_s_CreateDomainAlias() local
1539 ndr_hdid_t *id = (ndr_hdid_t *)&param->alias_handle; in samr_s_CreateDomainAlias()
1546 bzero(param, sizeof (struct samr_CreateDomainAlias)); in samr_s_CreateDomainAlias()
1547 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in samr_s_CreateDomainAlias()
1551 gname = (char *)param->alias_name.str; in samr_s_CreateDomainAlias()
1553 bzero(&param->alias_handle, sizeof (samr_handle_t)); in samr_s_CreateDomainAlias()
1554 param->status = NT_SC_ERROR(NT_STATUS_INVALID_PARAMETER); in samr_s_CreateDomainAlias()
1559 ((param->access_mask & SAMR_ALIAS_ACCESS_WRITE_ACCOUNT) == 0)) { in samr_s_CreateDomainAlias()
1560 bzero(&param->alias_handle, sizeof (samr_handle_t)); in samr_s_CreateDomainAlias()
1561 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in samr_s_CreateDomainAlias()
1567 bzero(&param->alias_handle, sizeof (samr_handle_t)); in samr_s_CreateDomainAlias()
1569 param->status = NT_SC_ERROR(status); in samr_s_CreateDomainAlias()
1575 bzero(&param->alias_handle, sizeof (samr_handle_t)); in samr_s_CreateDomainAlias()
1577 param->status = NT_SC_ERROR(status); in samr_s_CreateDomainAlias()
1584 bcopy(id, &param->alias_handle, sizeof (samr_handle_t)); in samr_s_CreateDomainAlias()
1585 param->status = status; in samr_s_CreateDomainAlias()
1587 bzero(&param->alias_handle, sizeof (samr_handle_t)); in samr_s_CreateDomainAlias()
1588 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_CreateDomainAlias()
1602 struct samr_SetAliasInfo *param = arg; in samr_s_SetAliasInfo() local
1603 ndr_hdid_t *id = (ndr_hdid_t *)&param->alias_handle; in samr_s_SetAliasInfo()
1609 param->status = status; in samr_s_SetAliasInfo()
1622 struct samr_QueryAliasInfo *param = arg; in samr_s_QueryAliasInfo() local
1623 ndr_hdid_t *id = (ndr_hdid_t *)&param->alias_handle; in samr_s_QueryAliasInfo()
1682 switch (param->level) { in samr_s_QueryAliasInfo()
1684 param->ru.info1.level = param->level; in samr_s_QueryAliasInfo()
1686 (ndr_mstring_t *)&param->ru.info1.name); in samr_s_QueryAliasInfo()
1688 (ndr_mstring_t *)&param->ru.info1.desc); in samr_s_QueryAliasInfo()
1689 param->ru.info1.member_count = 1; in samr_s_QueryAliasInfo()
1693 param->ru.info2.level = param->level; in samr_s_QueryAliasInfo()
1695 (ndr_mstring_t *)&param->ru.info2.name); in samr_s_QueryAliasInfo()
1699 param->ru.info3.level = param->level; in samr_s_QueryAliasInfo()
1701 (ndr_mstring_t *)&param->ru.info3.desc); in samr_s_QueryAliasInfo()
1713 param->address = (DWORD)(uintptr_t)&param->ru; in samr_s_QueryAliasInfo()
1714 param->status = 0; in samr_s_QueryAliasInfo()
1718 param->status = NT_SC_ERROR(status); in samr_s_QueryAliasInfo()
1734 struct samr_DeleteDomainAlias *param = arg; in samr_s_DeleteDomainAlias() local
1735 ndr_hdid_t *id = (ndr_hdid_t *)&param->alias_handle; in samr_s_DeleteDomainAlias()
1745 bzero(param, sizeof (struct samr_DeleteDomainAlias)); in samr_s_DeleteDomainAlias()
1746 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in samr_s_DeleteDomainAlias()
1751 bzero(param, sizeof (struct samr_DeleteDomainAlias)); in samr_s_DeleteDomainAlias()
1752 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in samr_s_DeleteDomainAlias()
1762 bzero(param, sizeof (struct samr_DeleteDomainAlias)); in samr_s_DeleteDomainAlias()
1769 bzero(param, sizeof (struct samr_DeleteDomainAlias)); in samr_s_DeleteDomainAlias()
1777 bzero(param, sizeof (struct samr_DeleteDomainAlias)); in samr_s_DeleteDomainAlias()
1785 bzero(param, sizeof (struct samr_DeleteDomainAlias)); in samr_s_DeleteDomainAlias()
1789 param->status = status; in samr_s_DeleteDomainAlias()
1801 struct samr_EnumDomainAliases *param = arg; in samr_s_EnumDomainAliases() local
1802 ndr_hdid_t *id = (ndr_hdid_t *)&param->domain_handle; in samr_s_EnumDomainAliases()
1811 bzero(param, sizeof (struct samr_EnumDomainAliases)); in samr_s_EnumDomainAliases()
1812 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in samr_s_EnumDomainAliases()
1819 if (cnt <= param->resume_handle) { in samr_s_EnumDomainAliases()
1820 param->aliases = (struct aliases_info *)NDR_MALLOC(mxa, in samr_s_EnumDomainAliases()
1823 if (param->aliases == NULL) { in samr_s_EnumDomainAliases()
1824 bzero(param, sizeof (struct samr_EnumDomainAliases)); in samr_s_EnumDomainAliases()
1825 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_EnumDomainAliases()
1829 bzero(param->aliases, sizeof (struct aliases_info)); in samr_s_EnumDomainAliases()
1830 param->out_resume = 0; in samr_s_EnumDomainAliases()
1831 param->entries = 0; in samr_s_EnumDomainAliases()
1832 param->status = NT_STATUS_SUCCESS; in samr_s_EnumDomainAliases()
1836 cnt -= param->resume_handle; in samr_s_EnumDomainAliases()
1837 param->aliases = (struct aliases_info *)NDR_MALLOC(mxa, in samr_s_EnumDomainAliases()
1840 if (param->aliases == NULL) { in samr_s_EnumDomainAliases()
1841 bzero(param, sizeof (struct samr_EnumDomainAliases)); in samr_s_EnumDomainAliases()
1842 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_EnumDomainAliases()
1847 bzero(param, sizeof (struct samr_EnumDomainAliases)); in samr_s_EnumDomainAliases()
1848 param->status = NT_SC_ERROR(NT_STATUS_INTERNAL_ERROR); in samr_s_EnumDomainAliases()
1853 info = param->aliases->info; in samr_s_EnumDomainAliases()
1855 if ((skip++ >= param->resume_handle) && in samr_s_EnumDomainAliases()
1867 param->aliases->count = i; in samr_s_EnumDomainAliases()
1868 param->aliases->address = i; in samr_s_EnumDomainAliases()
1870 param->out_resume = i; in samr_s_EnumDomainAliases()
1871 param->entries = i; in samr_s_EnumDomainAliases()
1872 param->status = 0; in samr_s_EnumDomainAliases()
1882 struct samr_Connect4 *param = arg; in samr_s_Connect4() local
1887 bcopy(id, &param->handle, sizeof (samr_handle_t)); in samr_s_Connect4()
1888 param->status = 0; in samr_s_Connect4()
1890 bzero(&param->handle, sizeof (samr_handle_t)); in samr_s_Connect4()
1891 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_Connect4()
1907 struct samr_Connect5 *param = arg; in samr_s_Connect5() local
1909 bzero(param, sizeof (struct samr_Connect5)); in samr_s_Connect5()