Lines Matching defs:status

90  * Returns 0 or NT status (Raw, not LSA-ized)
96 DWORD status;
104 status = lsar_open_policy2(server, domain, username, domain_handle);
106 return (status);
118 * Returns 0 or NT status (Raw, not LSA-ized)
125 DWORD status;
129 status = ndr_rpc_bind(lsa_handle, server, domain, user, "LSARPC");
130 if (status != 0)
131 return (status);
139 status = NT_STATUS_NO_MEMORY;
148 status = RPC_NT_CALL_FAILED;
151 status = arg.status;
152 if (status == NT_STATUS_SUCCESS) {
157 status = NT_STATUS_INVALID_PARAMETER;
163 if (status != NT_STATUS_SUCCESS)
165 return (status);
206 if (arg.status != 0) {
305 DWORD status;
319 status = NT_STATUS_INVALID_PARAMETER;
320 } else if (arg.status != 0) {
321 ndr_rpc_status(lsa_handle, opnum, arg.status);
322 status = NT_SC_VALUE(arg.status);
334 status = NT_STATUS_SUCCESS;
345 status = NT_STATUS_SUCCESS;
360 status = NT_STATUS_SUCCESS;
364 status = NT_STATUS_INVALID_INFO_CLASS;
370 return (status);
390 uint32_t status = NT_STATUS_INVALID_PARAMETER;
424 status = (*ops[i])(lsa_handle, &names, info);
426 if (status != NT_STATUS_INVALID_PARAMETER)
431 status = lsar_lookup_names1(lsa_handle, &names, info);
434 if (status == NT_STATUS_SUCCESS) {
439 status = NT_STATUS_NO_MEMORY;
445 return (status);
483 * If the lookup fails, the status will typically be NT_STATUS_NONE_MAPPED.
492 uint32_t status = NT_STATUS_SUCCESS;
506 if (arg.status != NT_STATUS_SUCCESS) {
507 ndr_rpc_status(lsa_handle, opnum, arg.status);
509 return (NT_SC_VALUE(arg.status));
533 return (status);
546 uint32_t status = NT_STATUS_SUCCESS;
561 if (arg.status != NT_STATUS_SUCCESS) {
562 ndr_rpc_status(lsa_handle, opnum, arg.status);
564 return (NT_SC_VALUE(arg.status));
588 return (status);
601 uint32_t status = NT_STATUS_SUCCESS;
616 if (arg.status != NT_STATUS_SUCCESS) {
617 ndr_rpc_status(lsa_handle, opnum, arg.status);
619 return (NT_SC_VALUE(arg.status));
643 return (status);
663 uint32_t status = NT_STATUS_SUCCESS;
677 if (arg.status != NT_STATUS_SUCCESS) {
678 ndr_rpc_status(lsa_handle, opnum, arg.status);
680 if (arg.status == RPC_NT_PROTSEQ_NOT_SUPPORTED ||
681 arg.status == NT_STATUS_INVALID_SERVER_STATE)
683 return (NT_SC_VALUE(arg.status));
707 return (status);
719 uint32_t status;
730 status = lsar_lookup_sids2(lsa_handle, (lsa_sid_t *)sid,
733 status = lsar_lookup_sids1(lsa_handle, (lsa_sid_t *)sid,
736 if (status == NT_STATUS_SUCCESS) {
739 status = NT_STATUS_NO_MEMORY;
745 return (status);
759 uint32_t status = NT_STATUS_SUCCESS;
776 if (arg.status != NT_STATUS_SUCCESS) {
777 ndr_rpc_status(lsa_handle, opnum, arg.status);
779 return (NT_SC_VALUE(arg.status));
805 return (status);
819 uint32_t status = NT_STATUS_SUCCESS;
837 if (arg.status != NT_STATUS_SUCCESS) {
838 ndr_rpc_status(lsa_handle, opnum, arg.status);
840 return (NT_SC_VALUE(arg.status));
866 return (status);
887 uint32_t status = NT_STATUS_SUCCESS;
904 if (arg.status != NT_STATUS_SUCCESS) {
905 ndr_rpc_status(lsa_handle, opnum, arg.status);
907 if (arg.status == RPC_NT_PROTSEQ_NOT_SUPPORTED ||
908 arg.status == NT_STATUS_INVALID_SERVER_STATE)
910 return (NT_SC_VALUE(arg.status));
936 return (status);
947 * more accounts. A warning status of 0x1A indicates that no more data
960 DWORD status;
980 status = arg.status;
981 if (arg.status != 0) {
982 if (arg.status == NT_STATUS_NO_MORE_ENTRIES) {
985 ndr_rpc_status(lsa_handle, opnum, arg.status);
1005 status = NT_STATUS_INVALID_PARAMETER;
1009 return (status);
1033 DWORD status;
1047 status = NT_STATUS_INVALID_PARAMETER;
1048 } else if (arg.status != 0) {
1050 status = NT_SC_VALUE(arg.status);
1054 * status but does not indicate an error.
1056 if (status != NT_STATUS_NO_MORE_ENTRIES)
1057 ndr_rpc_status(lsa_handle, opnum, arg.status);
1060 status = 0;
1064 status = 0;
1068 return (status);
1077 DWORD status;
1091 status = NT_STATUS_INVALID_PARAMETER;
1092 } else if (arg.status != 0) {
1094 status = NT_SC_VALUE(arg.status);
1098 * status but does not indicate an error.
1100 if (status != NT_STATUS_NO_MORE_ENTRIES)
1101 ndr_rpc_status(lsa_handle, opnum, arg.status);
1104 status = 0;
1108 status = 0;
1112 return (status);
1135 if ((rc == 0) && (arg.status != 0)) {
1136 ndr_rpc_status(account_handle, opnum, arg.status);
1179 if (arg.status != 0)
1216 if (arg.status != 0)
1234 * There's something peculiar about the return status from NT servers,
1235 * it's not always present. So for now, I'm ignoring the status in the
1238 * Returns NT status codes.
1247 DWORD status;
1266 status = NT_STATUS_INVALID_PARAMETER;
1268 else if (arg.status != 0)
1269 status = NT_SC_VALUE(arg.status);
1274 status = NT_STATUS_SUCCESS;
1278 return (status);