mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Update ADconnection.sh
This commit is contained in:
parent
b235ba037e
commit
5b55bf4c47
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user