diff --git a/ADconnection.sh b/ADconnection.sh index 81a7c3a..c4c3b0b 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -30,7 +30,7 @@ sudo apt-get install realmd adcli sssd -y sudo apt-get install ntp -y clear -DOMAIN=$(realm discover | grep -i domain.name | cut -d ':' -f2) +DOMAIN=$(realm discover | grep -i realm.name | cut -d ':' -f2) echo "${NUMBER}I seached for an available domain and found $DOMAIN ${END}" read -p "Do you wish to use it (y/n)?" yn