mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Update ADconnection.sh
This commit is contained in:
parent
184895a72e
commit
b5824af960
@ -1289,12 +1289,11 @@ 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/system-auth | grep onerr | grep allow | cut -d '=' -f4 | cut -d 'f' -f1)
|
if [ -f /etc/ssh/login.group.allowed ]
|
||||||
if [ "$cauth" = "allow" ] < /dev/null > /dev/null 2>&1
|
|
||||||
then
|
then
|
||||||
echo "Checking PAM auth configuration.. OK"
|
echo "Checking login.group.allowed configuration.. OK"
|
||||||
else
|
else
|
||||||
echo "Checking PAM auth configuration.. SSH security not configured"
|
echo "Checking login.group.allowed.. SSH security not configured"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user