@@ -26,15 +26,25 @@ class InvalidCredentialResult
2626 * @see https://ldapwiki.com/wiki/Common%20Active%20Directory%20Bind%20Errors
2727 */
2828 public const LDAP_NO_SUCH_OBJECT = '525 ' ;
29+
2930 public const ERROR_LOGON_FAILURE = '52e ' ;
31+
3032 public const ERROR_ACCOUNT_RESTRICTION = '52f ' ;
33+
3134 public const ERROR_INVALID_LOGON_HOURS = '530 ' ;
35+
3236 public const ERROR_INVALID_WORKSTATION = '531 ' ;
37+
3338 public const ERROR_PASSWORD_EXPIRED = '532 ' ;
39+
3440 public const ERROR_ACCOUNT_DISABLED = '533 ' ;
41+
3542 public const ERROR_TOO_MANY_CONTEXT_IDS = '568 ' ;
43+
3644 public const ERROR_ACCOUNT_EXPIRED = '701 ' ;
45+
3746 public const ERROR_PASSWORD_MUST_CHANGE = '773 ' ;
47+
3848 public const ERROR_ACCOUNT_LOCKED_OUT = '775 ' ;
3949
4050 /**
@@ -43,17 +53,23 @@ class InvalidCredentialResult
4353 * N.B. - This is an incomplete list
4454 */
4555 public const NT_STATUS_PASSWORD_EXPIRED = 'PASSWORD_EXPIRED ' ;
56+
4657 public const NT_STATUS_PASSWORD_MUST_CHANGE = 'PASSWORD_MUST_CHANGE ' ;
58+
4759 public const NT_STATUS_LOGON_FAILURE = 'LOGON_FAILURE ' ;
4860
4961 /**
5062 * List of keys for the code mapping
5163 */
5264 public const KEY_INVALID_CREDENTIAL = 'invalid_credential ' ;
65+
5366 public const KEY_PASSWORD_ERROR = 'password_error ' ;
67+
5468 public const KEY_ACCOUNT_ERROR = 'account_error ' ;
69+
5570 public const KEY_RESTRICTION = 'restriction ' ;
5671
72+
5773 /**
5874 * Map of keys to check the code against when using is* methods
5975 *
0 commit comments