diff --git a/ADconnection.sh b/ADconnection.sh index 6eee260..00fe956 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -124,7 +124,7 @@ sudo systemctl start sssd states=$( echo null ) states1=$( echo null ) grouPs=$( echo null ) -homedir=$( echo null ) +homedir=$( echo 0 ) therealm=$( echo null ) cauth=$( echo null ) clear @@ -182,7 +182,7 @@ fi;; states=$( echo 12 );; * ) echo 'Please answer yes or no.';; esac -homedir=$(cat /etc/pam.d/common-session | grep homedir | grep 0022 | cut -d '=' -f3) +homedir=$( cat /etc/pam.d/common-session | grep homedir | grep 0022 | cut -d '=' -f3 ) if [ $homedir = 0022 ] then echo ""