Update ADconnection.sh

This commit is contained in:
PierreGode 2019-02-13 08:46:03 +01:00 committed by GitHub
parent 164991bd23
commit 2f82d98be1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -654,17 +654,17 @@ echo "${NUMBER}I searched for an available domain and found nothing, please type
echo "Please enter the domain you wish to join:" echo "Please enter the domain you wish to join:"
read -r DOMAIN read -r DOMAIN
fi fi
echo "${NUMBER}Please type groupname in AD for admins${END}"
read -r Mysrvgroup
sudo echo "${INTRO_TEXT}"Realm= $DOMAIN"${INTRO_TEXT}" sudo echo "${INTRO_TEXT}"Realm= $DOMAIN"${INTRO_TEXT}"
sudo echo "${NORMAL}${NORMAL}" sudo echo "${NORMAL}${NORMAL}"
echo "${INTRO_TEXT}"Please type Admin user:"${END}" echo "${INTRO_TEXT}"Please type DomainAdmin user:"${END}"
read -r ADMIN read -r DomainADMIN
sudo realm join -v -U $ADMIN $DOMAIN --install=/ sudo realm join -v -U $DomainADMIN $DOMAIN --install=/
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "${RED_TEXT}"AD join failed.please check that computer object is already created and test again "${END}" echo "${RED_TEXT}"AD join failed.please check that computer object is already created and test again "${END}"
exit 1 exit 1
fi fi
echo "${NUMBER}Please type groupname in AD for admins${END}"
read -r Mysrvgroup
sudo echo "############################" sudo echo "############################"
sudo echo "Configuratig files.." sudo echo "Configuratig files.."
sudo echo "Verifying the setup" sudo echo "Verifying the setup"