Update ADconnection.sh

This commit is contained in:
PierreGode 2020-04-03 11:10:35 +02:00 committed by GitHub
parent f0991aeb9c
commit 59e43e93e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1080,7 +1080,7 @@ else
echo "Checking PAM configuration.. ${RED_TEXT}FAIL${END}" echo "Checking PAM configuration.. ${RED_TEXT}FAIL${END}"
fi fi
cauth=$( grep required /etc/pam.d/common-auth | grep onerr | grep allow | cut -d '=' -f4 | cut -d 'f' -f1 | head -1 ) cauth=$( grep required /etc/pam.d/common-auth | grep onerr | grep allow | cut -d '=' -f4 | cut -d 'f' -f1 | head -1 )
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..${INTRO_TEXT}OK${END}" echo "Checking PAM auth configuration..${INTRO_TEXT}OK${END}"
else else