diff --git a/ADconnection.sh b/ADconnection.sh index cd153b0..6d391b2 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -891,16 +891,6 @@ read -p "Do you really want to leave the domain: $DOMAIN (y/n)?" yn if [ "$LEFT" = "no" ] then echo "" - whoelse=$(who | head -1 | awk '{print $1}') -homes=$( ls /home/tobii.intra/ ) -#if [ "$homes" = "$whoelse" ] -#then -#echo "" -#echo "you are logged in as an AD user.. canceling request" -3echo "only administrator has permissions" -#echo "" -#exit -3else sudo echo "" | sudo tee /etc/sssd/sssd.conf echo "$DOMAIN has been left" linuxclient