longer salt

This commit is contained in:
Serghey Rodin 2015-06-03 19:34:17 +03:00
commit 26360cad99

View file

@ -50,7 +50,7 @@ fi
# Parsing user's salt
salt=$(grep "^$user:" /etc/shadow |cut -f 3 -d \$)
if [[ -z "$salt" ]] || [[ "${#salt}" -gt 8 ]]; then
if [[ -z "$salt" ]] || [[ "${#salt}" -gt 12 ]]; then
echo "Error: password missmatch"
echo "$DATE $user $ip failed to login" >> $VESTA/log/auth.log
exit 9