I searched high and low and could not find the answer, so I tested what password characters are allowed when modding users from the Reseller screen.
I found all special characters from ASCII 33 (!) to ASCII 126 (~) are ok except:
/ forwardslash
\ backslash
` backtick
Is it system dependent? I'm on CentOS 5, DirectAdmin 1.45.2.1.
I plan to mod the javascript random password generator on HTM_ACCOUNT_USER_CREATE. Should I expect any problems?
By the way the error message is unhelpful:
"Invalid characters in password"
There it is if anyone else searches on it. Not much in Google.
The option "Difficult Password Enforcement" in CMD_ADMIN_SETTINGS enables this script:
/usr/local/directadmin/scripts/difficult_password.php
If has some commented out code for what it calls "shift characters", in enforce_shift_chars(). I realize it is used in other situations than the one I am looking at, creating users under Reseller.
The enforce_shift_chars(), uncommented, looks for at least one character from a list. The list differs from my list above as follows:
add: / forwardslash
del: " doubelquote
del: ' singlequote
del: [ leftbracket
del: ] right bracket
Seems reasonable. I'm not arguing for every character, just trying to document what works.
I found all special characters from ASCII 33 (!) to ASCII 126 (~) are ok except:
/ forwardslash
\ backslash
` backtick
Is it system dependent? I'm on CentOS 5, DirectAdmin 1.45.2.1.
I plan to mod the javascript random password generator on HTM_ACCOUNT_USER_CREATE. Should I expect any problems?
By the way the error message is unhelpful:
"Invalid characters in password"
There it is if anyone else searches on it. Not much in Google.
The option "Difficult Password Enforcement" in CMD_ADMIN_SETTINGS enables this script:
/usr/local/directadmin/scripts/difficult_password.php
If has some commented out code for what it calls "shift characters", in enforce_shift_chars(). I realize it is used in other situations than the one I am looking at, creating users under Reseller.
The enforce_shift_chars(), uncommented, looks for at least one character from a list. The list differs from my list above as follows:
add: / forwardslash
del: " doubelquote
del: ' singlequote
del: [ leftbracket
del: ] right bracket
Seems reasonable. I'm not arguing for every character, just trying to document what works.