Update ADconnection.sh

This commit is contained in:
PierreGode 2020-07-13 08:14:44 +02:00 committed by GitHub
parent 774238f094
commit de07bfa609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -855,7 +855,7 @@ read -r -p "Do you wish to use it (y/n)?" yn
esac
fi
else
REALM=$( realm discover )
REALM=$( realm discover | grep domain | awk '{print $2}' )
echo "Using Domain: $REALM"
DOMAIN=$(echo "$REALM")
fi