Displaying 1 result from an estimated 1 matches for "ascii_pwd".
2017 Nov 27
1
AD: password change bug?
...y
password
(read: thunderbird and other mobile apps)
If a user on win7/win10 changes password and uses non-ascii characters
the mail obviously does not work, but the rest of the domain is ok.
so we thought to use the "check password script".
something like:
#/bin/bash
read -t 2 PWD
ASCII_PWD=$(echo "$PWD"|iconv -f utf-8 -t ascii//TRANSLIT)
if [ "${PWD}" != "${ASCII_PWD}" ]; then
exit 1
fi
exit 0
Simple, and it **seems** to work.
During testing and debugging I had the script output the input and all
possible conversions from all iconv-supported cha...