From 0962c6e7f9ec0d46419c72b045dad70d098b7e78 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Fri, 7 Sep 2018 09:33:29 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index 26b00e1..4330775 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -1332,9 +1332,9 @@ fi leave(){ LEFT=$(sudo realm discover | grep configured | awk '{print $2}') DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}') -SSSD=$( sudo cat /etc/sssd/sssd.conf | grep domain | awk '{print $3}' | head -1 ) < /dev/null > /dev/null 2>&1 +SSSD=$( sudo cat /etc/sssd/sssd.conf | grep domain | awk '{print $3}' | head -1 ) DOMAINlower=$( echo $DOMAIN | tr '[:upper:]' '[:lower:]' ) -if [ "$DOMAINlower" = "$SSSD" ] +if [ "$DOMAINlower" = "$SSSD" ] < /dev/null > /dev/null 2>&1 then echo "Detecting realm $SSSD" else