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
bc2d648f70
commit
e139829860
@ -29,7 +29,7 @@ echo "please enter Your domain’s NetBios name"
|
|||||||
read NetBios
|
read NetBios
|
||||||
echo "Please enter a domain admin login to use: "
|
echo "Please enter a domain admin login to use: "
|
||||||
read ADMIN
|
read ADMIN
|
||||||
sudo realm join --user=$ADMIN $DOMAIN
|
sudo realm join --verbose --user=$ADMIN $DOMAIN
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "AD join failed. Please run 'journalctl -xn' to determine why."
|
echo "AD join failed. Please run 'journalctl -xn' to determine why."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user