I'm looking for a way to check if a password contains any characters that are not allowed in a Microsoft Active Directory. So I need to test if a password is possible without concern for the password complexity.
I think the best way is using a Regex.
According this site; https://technet.microsoft.com/en-us/library/hh994562%28v=ws.10%29.aspx the possible password characters for a Microsoft Active Directory Account are:
Uppercase letters of European languages (A through Z, with diacritic marks, Greek and Cyrillic characters)
Lowercase letters of European languages (a through z, sharp-s, with diacritic marks, Greek and Cyrillic characters)
Base 10 digits (0 through 9)
Non-alphanumeric characters (special characters) (for example, !, $, #, %)
Any Unicode character that is categorized as an alphabetic character but is not uppercase or lowercase. This includes Unicode characters from Asian languages.
So what would be the regex to check the password only contains valid AD characters.
!!! I'm not looking for a way to test the password complexity, only to check if the characters are valid for a AD password.
Thanks a lot...