Skip to content

Commit 26360ca

Browse files
committed
longer salt
1 parent 77f0aa6 commit 26360ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-check-user-password

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fi
5050

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

0 commit comments

Comments
 (0)