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
a7bfb7f63a
commit
89fc570a93
@ -40,7 +40,7 @@ echo "Please enter a domain admin login to use: "
|
|||||||
read ADMIN
|
read ADMIN
|
||||||
discovery=$(realm discover $DOMAIN | grep domain-name)
|
discovery=$(realm discover $DOMAIN | grep domain-name)
|
||||||
clear
|
clear
|
||||||
echo "${INTRO_TEXT}"Realm= $discovery"${INTRO_TEXT}"
|
sudo echo "${INTRO_TEXT}"Realm= $discovery"${INTRO_TEXT}"
|
||||||
sleep 1
|
sleep 1
|
||||||
sudo realm join --verbose --user=$ADMIN $DOMAIN
|
sudo realm join --verbose --user=$ADMIN $DOMAIN
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user