From 5b55bf4c47a24a672145d1662245d9a78a7e2aed Mon Sep 17 00:00:00 2001 From: PierreGode Date: Fri, 7 Sep 2018 09:30:18 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADconnection.sh b/ADconnection.sh index 68d6f6d..26b00e1 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -1332,7 +1332,7 @@ 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 ) +SSSD=$( sudo cat /etc/sssd/sssd.conf | grep domain | awk '{print $3}' | head -1 ) < /dev/null > /dev/null 2>&1 DOMAINlower=$( echo $DOMAIN | tr '[:upper:]' '[:lower:]' ) if [ "$DOMAINlower" = "$SSSD" ] then