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
164991bd23
commit
2f82d98be1
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user