From 925351c4097c79d31e9f95ee6064f43bf14d7cbf Mon Sep 17 00:00:00 2001 From: PierreGode Date: Fri, 24 Aug 2018 09:35:39 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index 33cc117..3a41744 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -1323,7 +1323,7 @@ if [ "$homes" = "$whoelse" ] then echo "" echo "you are logged in as an AD user.. canceling request" -echo "only administrator has +echo "only administrator has permissions" echo "" exit else @@ -1347,7 +1347,7 @@ read -p "Do you really want to leave the domain: $DOMAIN (y/n)?" yn case $yn in [Yy]* ) echo "Listing domain" sudo realm discover $DOMAIN - sudo realm leave $DOMAIN +# sudo realm leave $DOMAIN LEFT=$(sudo realm discover | grep configured | awk '{print $2}') if [ "$LEFT" = "no" ] then @@ -1358,7 +1358,7 @@ read -p "Do you really want to leave the domain: $DOMAIN (y/n)?" yn else echo "something went wrong, try to leave manually" read -r DOMAIN - sudo realm leave $DOMAIN +# sudo realm leave $DOMAIN left=$(sudo realm discover | grep configured | awk '{print $2}') if [ "$left" = "no" ] then