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
dc8925a691
commit
fd1ae92966
@ -33,10 +33,10 @@ clear
|
|||||||
DOMAIN=$(realm discover | grep -i domain.name | cut -d ':' -f2)
|
DOMAIN=$(realm discover | grep -i domain.name | cut -d ':' -f2)
|
||||||
read -p "I seached for an available domain and found $DOMAIN : do you wish to use it (y/n)?" yn
|
read -p "I seached for an available domain and found $DOMAIN : do you wish to use it (y/n)?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* ) echo 'yes!';;
|
[Yy]* ) echo "Please log in with domain admin to $DOMAIN to connect";;
|
||||||
|
|
||||||
[Nn]* ) echo "Please enter the domain you wish to join: "
|
[Nn]* ) echo "Please enter the domain you wish to join:"
|
||||||
read DOMAIN;;
|
read DOMAIN;;
|
||||||
* ) echo 'Please answer yes or no.';;
|
* ) echo 'Please answer yes or no.';;
|
||||||
esac
|
esac
|
||||||
NetBios=$(echo $DOMAIN | cut -d '.' -f1)
|
NetBios=$(echo $DOMAIN | cut -d '.' -f1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user