mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Fixed checks
This commit is contained in:
parent
51de874723
commit
7392675d95
@ -180,9 +180,9 @@ clear
|
|||||||
################################# Check #######################################
|
################################# Check #######################################
|
||||||
if ! sudo service sssd restart
|
if ! sudo service sssd restart
|
||||||
then
|
then
|
||||||
echo "Checking sssd config.. FAIL"
|
echo "sssd config.. ${RED_TEXT}FAIL${END}"
|
||||||
else
|
else
|
||||||
echo "Checking sssd config.. OK"
|
echo "sssd config.. ${INTRO_TEXT}OK${END}"
|
||||||
fi
|
fi
|
||||||
if ! realm discover < /dev/null > /dev/null 2>&1
|
if ! realm discover < /dev/null > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
@ -209,16 +209,16 @@ fi
|
|||||||
grouPs=$(grep -i "$myhost" /etc/sudoers.d/sudoers | cut -d '%' -f2 | awk '{print $1}' | head -1)
|
grouPs=$(grep -i "$myhost" /etc/sudoers.d/sudoers | cut -d '%' -f2 | awk '{print $1}' | head -1)
|
||||||
if [ "$grouPs" = "$myhost""sudoers" ]
|
if [ "$grouPs" = "$myhost""sudoers" ]
|
||||||
then
|
then
|
||||||
echo "Checking sudoers user groups.. ${INTRO_TEXT}OK${END}"
|
echo "Checking sudoers groups.. ${INTRO_TEXT}OK${END}"
|
||||||
else
|
else
|
||||||
echo "Checking sudoers user groups.. ${RED_TEXT}FAIL${END}"
|
echo "Checking sudoers groups.. ${RED_TEXT}FAIL${END}"
|
||||||
fi
|
fi
|
||||||
homedir=$(grep homedir /etc/pam.d/common-session | grep 0022 | cut -d '=' -f3)
|
homedir=$(grep homedir /etc/pam.d/common-session | grep 0022 | cut -d '=' -f3)
|
||||||
if [ "$homedir" = "0022" ] < /dev/null > /dev/null 2>&1
|
if [ "$homedir" = "0022" ] < /dev/null > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo "Checking PAM configuration.. ${INTRO_TEXT}OK${END}"
|
echo "Checking PAM session configuration.. ${INTRO_TEXT}OK${END}"
|
||||||
else
|
else
|
||||||
echo "Checking PAM configuration.. ${RED_TEXT}FAIL${END}"
|
echo "Checking PAM session configuration.. ${RED_TEXT}FAIL${END}"
|
||||||
fi
|
fi
|
||||||
if [ $states1 = 12 ]
|
if [ $states1 = 12 ]
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user