Update ADconnection.sh

This commit is contained in:
PierreGode 2021-10-22 10:31:23 +02:00 committed by GitHub
parent b931de716d
commit 1f597fe770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1719,6 +1719,7 @@ fi
clear
sudo echo "${INTRO_TEXT}Realm= $DOMAIN${END}"
sudo echo "${NORMAL}${NORMAL}"
sudo echo "" | sudo tee /etc/sssd/sssd.conf
if ! sudo realm join --verbose --user="$ADMIN" "$DOMAIN" --install=/
then
echo "${RED_TEXT}AD join failed.please check your errors with journalctl -xe${END}"