mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Update ADconnection.sh
This commit is contained in:
parent
e6373d597b
commit
96e73931d6
@ -595,7 +595,7 @@ read ADMIN
|
|||||||
clear
|
clear
|
||||||
sudo echo "${INTRO_TEXT}"Realm= $discovery"${INTRO_TEXT}"
|
sudo echo "${INTRO_TEXT}"Realm= $discovery"${INTRO_TEXT}"
|
||||||
sudo echo "${NORMAL}${NORMAL}"
|
sudo echo "${NORMAL}${NORMAL}"
|
||||||
sudo realm join --verbose --user=$ADMIN $DOMAIN
|
sudo realm join --verbose --user=$ADMIN $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
|
exit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user