mirror of https://github.com/FreeRDP/FreeRDP
Add exit codes for logon failure and account locked out
This commit is contained in:
parent
9c259f09ec
commit
a2cf4f591e
|
@ -1512,6 +1512,12 @@ static DWORD WINAPI xf_client_thread(LPVOID param)
|
|||
else if (freerdp_get_last_error(instance->context) ==
|
||||
FREERDP_ERROR_SECURITY_NEGO_CONNECT_FAILED)
|
||||
exit_code = XF_EXIT_NEGO_FAILURE;
|
||||
else if (freerdp_get_last_error(instance->context) ==
|
||||
FREERDP_ERROR_CONNECT_LOGON_FAILURE)
|
||||
exit_code = XF_EXIT_LOGON_FAILURE;
|
||||
else if (freerdp_get_last_error(instance->context) ==
|
||||
FREERDP_ERROR_CONNECT_ACCOUNT_LOCKED_OUT)
|
||||
exit_code = XF_EXIT_ACCOUNT_LOCKED_OUT;
|
||||
else
|
||||
exit_code = XF_EXIT_CONN_FAILED;
|
||||
}
|
||||
|
@ -1676,7 +1682,7 @@ end:
|
|||
|
||||
DWORD xf_exit_code_from_disconnect_reason(DWORD reason)
|
||||
{
|
||||
if (reason == 0 || (reason >= XF_EXIT_PARSE_ARGUMENTS && reason <= XF_EXIT_NEGO_FAILURE))
|
||||
if (reason == 0 || (reason >= XF_EXIT_PARSE_ARGUMENTS && reason <= XF_EXIT_ACCOUNT_LOCKED_OUT))
|
||||
return reason;
|
||||
/* License error set */
|
||||
else if (reason >= 0x100 && reason <= 0x10A)
|
||||
|
|
|
@ -318,6 +318,8 @@ enum XF_EXIT_CODE
|
|||
XF_EXIT_CONN_FAILED = 131,
|
||||
XF_EXIT_AUTH_FAILURE = 132,
|
||||
XF_EXIT_NEGO_FAILURE = 133,
|
||||
XF_EXIT_LOGON_FAILURE = 134,
|
||||
XF_EXIT_ACCOUNT_LOCKED_OUT = 135,
|
||||
|
||||
XF_EXIT_UNKNOWN = 255,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue