Update ADconnection.sh

This commit is contained in:
PierreGode 2019-12-04 10:31:10 +01:00 committed by GitHub
parent f437ccdf88
commit e72b17528b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1289,7 +1289,7 @@ echo "Checking PAM configuration.. OK"
else else
echo "Checking PAM configuration.. FAIL" echo "Checking PAM configuration.. FAIL"
fi fi
cauth=$(grep required /etc/pam.d/common-auth | grep onerr | grep allow | cut -d '=' -f4 | cut -d 'f' -f1) cauth=$(grep required /etc/pam.d/system-auth | grep onerr | grep allow | cut -d '=' -f4 | cut -d 'f' -f1)
if [ "$cauth" = "allow" ] < /dev/null > /dev/null 2>&1 if [ "$cauth" = "allow" ] < /dev/null > /dev/null 2>&1
then then
echo "Checking PAM auth configuration.. OK" echo "Checking PAM auth configuration.. OK"