Lines Matching refs:param
164 struct mslsa_OpenPolicy2 *param = arg; in lsarpc_s_OpenDomainHandle() local
168 bcopy(id, ¶m->domain_handle, sizeof (mslsa_handle_t)); in lsarpc_s_OpenDomainHandle()
169 param->status = NT_STATUS_SUCCESS; in lsarpc_s_OpenDomainHandle()
171 bzero(¶m->domain_handle, sizeof (mslsa_handle_t)); in lsarpc_s_OpenDomainHandle()
172 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_OpenDomainHandle()
189 struct mslsa_CloseHandle *param = arg; in lsarpc_s_CloseHandle() local
190 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle; in lsarpc_s_CloseHandle()
194 bzero(¶m->result_handle, sizeof (param->result_handle)); in lsarpc_s_CloseHandle()
195 param->status = NT_STATUS_SUCCESS; in lsarpc_s_CloseHandle()
206 struct mslsa_QuerySecurityObject *param = arg; in lsarpc_s_QuerySecurityObject() local
208 bzero(param, sizeof (struct mslsa_QuerySecurityObject)); in lsarpc_s_QuerySecurityObject()
209 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in lsarpc_s_QuerySecurityObject()
232 struct mslsa_EnumerateAccounts *param = arg; in lsarpc_s_EnumAccounts() local
235 bzero(param, sizeof (struct mslsa_EnumerateAccounts)); in lsarpc_s_EnumAccounts()
239 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_EnumAccounts()
244 param->enum_buf = enum_buf; in lsarpc_s_EnumAccounts()
245 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in lsarpc_s_EnumAccounts()
268 struct mslsa_EnumTrustedDomain *param = arg; in lsarpc_s_EnumTrustedDomain() local
271 bzero(param, sizeof (struct mslsa_EnumTrustedDomain)); in lsarpc_s_EnumTrustedDomain()
275 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_EnumTrustedDomain()
280 param->enum_buf = enum_buf; in lsarpc_s_EnumTrustedDomain()
281 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in lsarpc_s_EnumTrustedDomain()
303 struct mslsa_EnumTrustedDomainEx *param = arg; in lsarpc_s_EnumTrustedDomainsEx() local
306 bzero(param, sizeof (struct mslsa_EnumTrustedDomainEx)); in lsarpc_s_EnumTrustedDomainsEx()
310 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_EnumTrustedDomainsEx()
315 param->enum_buf = enum_buf; in lsarpc_s_EnumTrustedDomainsEx()
316 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in lsarpc_s_EnumTrustedDomainsEx()
328 struct mslsa_OpenAccount *param = arg; in lsarpc_s_OpenAccount() local
329 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle; in lsarpc_s_OpenAccount()
334 bzero(param, sizeof (struct mslsa_OpenAccount)); in lsarpc_s_OpenAccount()
335 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in lsarpc_s_OpenAccount()
340 bcopy(id, ¶m->account_handle, sizeof (mslsa_handle_t)); in lsarpc_s_OpenAccount()
341 param->status = NT_STATUS_SUCCESS; in lsarpc_s_OpenAccount()
343 bzero(¶m->account_handle, sizeof (mslsa_handle_t)); in lsarpc_s_OpenAccount()
344 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_OpenAccount()
364 struct mslsa_EnumPrivsAccount *param = arg; in lsarpc_s_EnumPrivsAccount() local
366 bzero(param, sizeof (struct mslsa_EnumPrivsAccount)); in lsarpc_s_EnumPrivsAccount()
367 param->status = NT_SC_ERROR(NT_STATUS_NOT_SUPPORTED); in lsarpc_s_EnumPrivsAccount()
381 struct mslsa_LookupPrivValue *param = arg; in lsarpc_s_LookupPrivValue() local
384 if ((pi = smb_priv_getbyname((char *)param->name.str)) == NULL) { in lsarpc_s_LookupPrivValue()
385 bzero(param, sizeof (struct mslsa_LookupPrivValue)); in lsarpc_s_LookupPrivValue()
386 param->status = NT_SC_ERROR(NT_STATUS_NO_SUCH_PRIVILEGE); in lsarpc_s_LookupPrivValue()
390 param->luid.low_part = pi->id; in lsarpc_s_LookupPrivValue()
391 param->luid.high_part = 0; in lsarpc_s_LookupPrivValue()
392 param->status = NT_STATUS_SUCCESS; in lsarpc_s_LookupPrivValue()
405 struct mslsa_LookupPrivName *param = arg; in lsarpc_s_LookupPrivName() local
409 if ((pi = smb_priv_getbyvalue(param->luid.low_part)) == NULL) { in lsarpc_s_LookupPrivName()
410 bzero(param, sizeof (struct mslsa_LookupPrivName)); in lsarpc_s_LookupPrivName()
411 param->status = NT_SC_ERROR(NT_STATUS_NO_SUCH_PRIVILEGE); in lsarpc_s_LookupPrivName()
415 param->name = NDR_NEW(mxa, mslsa_string_t); in lsarpc_s_LookupPrivName()
416 if (param->name == NULL) { in lsarpc_s_LookupPrivName()
417 bzero(param, sizeof (struct mslsa_LookupPrivName)); in lsarpc_s_LookupPrivName()
418 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_LookupPrivName()
422 rc = NDR_MSTRING(mxa, pi->name, (ndr_mstring_t *)param->name); in lsarpc_s_LookupPrivName()
424 bzero(param, sizeof (struct mslsa_LookupPrivName)); in lsarpc_s_LookupPrivName()
425 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_LookupPrivName()
429 param->status = NT_STATUS_SUCCESS; in lsarpc_s_LookupPrivName()
443 struct mslsa_LookupPrivDisplayName *param = arg; in lsarpc_s_LookupPrivDisplayName() local
447 if ((pi = smb_priv_getbyname((char *)param->name.str)) == NULL) { in lsarpc_s_LookupPrivDisplayName()
448 bzero(param, sizeof (struct mslsa_LookupPrivDisplayName)); in lsarpc_s_LookupPrivDisplayName()
449 param->status = NT_SC_ERROR(NT_STATUS_NO_SUCH_PRIVILEGE); in lsarpc_s_LookupPrivDisplayName()
453 param->display_name = NDR_NEW(mxa, mslsa_string_t); in lsarpc_s_LookupPrivDisplayName()
454 if (param->display_name == NULL) { in lsarpc_s_LookupPrivDisplayName()
455 bzero(param, sizeof (struct mslsa_LookupPrivDisplayName)); in lsarpc_s_LookupPrivDisplayName()
456 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_LookupPrivDisplayName()
461 (ndr_mstring_t *)param->display_name); in lsarpc_s_LookupPrivDisplayName()
463 bzero(param, sizeof (struct mslsa_LookupPrivDisplayName)); in lsarpc_s_LookupPrivDisplayName()
464 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_LookupPrivDisplayName()
468 param->language_ret = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL); in lsarpc_s_LookupPrivDisplayName()
469 param->status = NT_STATUS_SUCCESS; in lsarpc_s_LookupPrivDisplayName()
476 struct mslsa_CreateSecret *param = arg; in lsarpc_s_CreateSecret() local
477 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle; in lsarpc_s_CreateSecret()
482 bzero(param, sizeof (struct mslsa_OpenAccount)); in lsarpc_s_CreateSecret()
483 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in lsarpc_s_CreateSecret()
487 bzero(¶m->secret_handle, sizeof (mslsa_handle_t)); in lsarpc_s_CreateSecret()
488 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in lsarpc_s_CreateSecret()
495 struct mslsa_OpenSecret *param = arg; in lsarpc_s_OpenSecret() local
496 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle; in lsarpc_s_OpenSecret()
501 bzero(param, sizeof (struct mslsa_OpenAccount)); in lsarpc_s_OpenSecret()
502 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in lsarpc_s_OpenSecret()
506 bzero(¶m->secret_handle, sizeof (mslsa_handle_t)); in lsarpc_s_OpenSecret()
507 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in lsarpc_s_OpenSecret()
522 struct mslsa_GetConnectedUser *param = arg; in lsarpc_s_GetConnectedUser() local
528 param->owner = NDR_NEW(mxa, struct mslsa_string_desc); in lsarpc_s_GetConnectedUser()
529 param->domain = NDR_NEW(mxa, struct mslsa_DomainName); in lsarpc_s_GetConnectedUser()
530 if (param->owner == NULL || param->domain == NULL) { in lsarpc_s_GetConnectedUser()
532 param->status = status; in lsarpc_s_GetConnectedUser()
536 param->domain->name = NDR_NEW(mxa, struct mslsa_string_desc); in lsarpc_s_GetConnectedUser()
537 if (param->domain->name == NULL) { in lsarpc_s_GetConnectedUser()
539 param->status = status; in lsarpc_s_GetConnectedUser()
544 (ndr_mstring_t *)param->owner); in lsarpc_s_GetConnectedUser()
546 (ndr_mstring_t *)param->domain->name); in lsarpc_s_GetConnectedUser()
551 param->status = status; in lsarpc_s_GetConnectedUser()
568 struct mslsa_QueryInfoPolicy *param = arg; in lsarpc_s_QueryInfoPolicy() local
569 union mslsa_PolicyInfoResUnion *ru = ¶m->ru; in lsarpc_s_QueryInfoPolicy()
573 param->switch_value = param->info_class; in lsarpc_s_QueryInfoPolicy()
575 switch (param->info_class) { in lsarpc_s_QueryInfoPolicy()
606 bzero(param, sizeof (struct mslsa_QueryInfoPolicy)); in lsarpc_s_QueryInfoPolicy()
607 param->status = NT_SC_ERROR(NT_STATUS_INVALID_INFO_CLASS); in lsarpc_s_QueryInfoPolicy()
612 param->status = NT_SC_ERROR(status); in lsarpc_s_QueryInfoPolicy()
614 param->status = NT_STATUS_SUCCESS; in lsarpc_s_QueryInfoPolicy()
615 param->address = (DWORD)(uintptr_t)ru; in lsarpc_s_QueryInfoPolicy()
701 struct mslsa_LookupNames *param = arg; in lsarpc_s_LookupNames() local
710 if (param->name_table->n_entry != 1) in lsarpc_s_LookupNames()
718 bzero(param, sizeof (struct mslsa_LookupNames)); in lsarpc_s_LookupNames()
719 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_LookupNames()
723 accname = (char *)param->name_table->names->str; in lsarpc_s_LookupNames()
726 bzero(param, sizeof (struct mslsa_LookupNames)); in lsarpc_s_LookupNames()
727 param->status = NT_SC_ERROR(status); in lsarpc_s_LookupNames()
737 param->translated_sids.n_entry = 1; in lsarpc_s_LookupNames()
738 param->translated_sids.rids = rids; in lsarpc_s_LookupNames()
754 bzero(param, sizeof (struct mslsa_LookupNames)); in lsarpc_s_LookupNames()
755 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_LookupNames()
759 param->domain_table = domain_table; in lsarpc_s_LookupNames()
760 param->mapped_count = 1; in lsarpc_s_LookupNames()
761 param->status = NT_STATUS_SUCCESS; in lsarpc_s_LookupNames()
788 struct mslsa_LookupSids *param = arg; in lsarpc_s_LookupSids() local
803 n_entry = param->lup_sid_table.n_entry; in lsarpc_s_LookupSids()
820 sid = (smb_sid_t *)param->lup_sid_table.entries[i].psid; in lsarpc_s_LookupSids()
850 param->domain_table = domain_table; in lsarpc_s_LookupSids()
851 param->name_table.n_entry = n_entry; in lsarpc_s_LookupSids()
852 param->name_table.entries = names; in lsarpc_s_LookupSids()
853 param->mapped_count = n_mapped; in lsarpc_s_LookupSids()
856 param->status = NT_STATUS_SUCCESS; in lsarpc_s_LookupSids()
858 param->status = NT_STATUS_NONE_MAPPED; in lsarpc_s_LookupSids()
860 param->status = NT_STATUS_SOME_NOT_MAPPED; in lsarpc_s_LookupSids()
866 bzero(param, sizeof (struct mslsa_LookupSids)); in lsarpc_s_LookupSids()
940 struct lsar_lookup_sids2 *param = arg; in lsarpc_s_LookupSids2() local
955 n_entry = param->lup_sid_table.n_entry; in lsarpc_s_LookupSids2()
972 sid = (smb_sid_t *)param->lup_sid_table.entries[i].psid; in lsarpc_s_LookupSids2()
1002 param->domain_table = domain_table; in lsarpc_s_LookupSids2()
1003 param->name_table.n_entry = n_entry; in lsarpc_s_LookupSids2()
1004 param->name_table.entries = names; in lsarpc_s_LookupSids2()
1005 param->mapped_count = n_mapped; in lsarpc_s_LookupSids2()
1008 param->status = NT_STATUS_SUCCESS; in lsarpc_s_LookupSids2()
1010 param->status = NT_STATUS_NONE_MAPPED; in lsarpc_s_LookupSids2()
1012 param->status = NT_STATUS_SOME_NOT_MAPPED; in lsarpc_s_LookupSids2()
1018 bzero(param, sizeof (struct lsar_lookup_sids2)); in lsarpc_s_LookupSids2()
1030 struct lsar_lookup_sids3 *param = arg; in lsarpc_s_LookupSids3() local
1032 bzero(param, sizeof (struct lsar_lookup_sids3)); in lsarpc_s_LookupSids3()
1033 param->status = NT_SC_ERROR(NT_STATUS_INVALID_SERVER_STATE); in lsarpc_s_LookupSids3()
1049 struct lsar_LookupNames2 *param = arg; in lsarpc_s_LookupNames2() local
1058 if (param->name_table->n_entry != 1) in lsarpc_s_LookupNames2()
1061 if ((param->lookup_options & LSA_LOOKUP_OPT_LOCAL) && in lsarpc_s_LookupNames2()
1062 param->lookup_level != LSA_LOOKUP_WKSTA) { in lsarpc_s_LookupNames2()
1063 bzero(param, sizeof (struct lsar_LookupNames2)); in lsarpc_s_LookupNames2()
1064 param->status = NT_SC_ERROR(NT_STATUS_INVALID_PARAMETER); in lsarpc_s_LookupNames2()
1073 bzero(param, sizeof (struct lsar_LookupNames2)); in lsarpc_s_LookupNames2()
1074 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_LookupNames2()
1078 accname = (char *)param->name_table->names->str; in lsarpc_s_LookupNames2()
1081 bzero(param, sizeof (struct lsar_LookupNames2)); in lsarpc_s_LookupNames2()
1082 param->status = NT_SC_ERROR(status); in lsarpc_s_LookupNames2()
1093 param->translated_sids.n_entry = 1; in lsarpc_s_LookupNames2()
1094 param->translated_sids.rids = rids; in lsarpc_s_LookupNames2()
1111 bzero(param, sizeof (struct lsar_LookupNames2)); in lsarpc_s_LookupNames2()
1112 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_LookupNames2()
1116 param->domain_table = domain_table; in lsarpc_s_LookupNames2()
1117 param->mapped_count = 1; in lsarpc_s_LookupNames2()
1118 param->status = NT_STATUS_SUCCESS; in lsarpc_s_LookupNames2()
1134 struct lsar_LookupNames3 *param = arg; in lsarpc_s_LookupNames3() local
1143 if (param->name_table->n_entry != 1) in lsarpc_s_LookupNames3()
1146 if ((param->lookup_options & LSA_LOOKUP_OPT_LOCAL) && in lsarpc_s_LookupNames3()
1147 param->lookup_level != LSA_LOOKUP_WKSTA) { in lsarpc_s_LookupNames3()
1148 bzero(param, sizeof (struct lsar_LookupNames3)); in lsarpc_s_LookupNames3()
1149 param->status = NT_SC_ERROR(NT_STATUS_INVALID_PARAMETER); in lsarpc_s_LookupNames3()
1158 bzero(param, sizeof (struct lsar_LookupNames3)); in lsarpc_s_LookupNames3()
1159 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_LookupNames3()
1163 accname = (char *)param->name_table->names->str; in lsarpc_s_LookupNames3()
1166 bzero(param, sizeof (struct lsar_LookupNames3)); in lsarpc_s_LookupNames3()
1167 param->status = NT_SC_ERROR(status); in lsarpc_s_LookupNames3()
1178 param->translated_sids.n_entry = 1; in lsarpc_s_LookupNames3()
1179 param->translated_sids.sids = sids; in lsarpc_s_LookupNames3()
1196 bzero(param, sizeof (struct lsar_LookupNames3)); in lsarpc_s_LookupNames3()
1197 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_LookupNames3()
1201 param->domain_table = domain_table; in lsarpc_s_LookupNames3()
1202 param->mapped_count = 1; in lsarpc_s_LookupNames3()
1203 param->status = NT_STATUS_SUCCESS; in lsarpc_s_LookupNames3()
1217 struct lsar_LookupNames4 *param = arg; in lsarpc_s_LookupNames4() local
1219 bzero(param, sizeof (struct lsar_LookupNames4)); in lsarpc_s_LookupNames4()
1220 param->status = NT_SC_ERROR(NT_STATUS_INVALID_SERVER_STATE); in lsarpc_s_LookupNames4()