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
ecce0e2b3e
commit
62ee03fbcf
@ -130,7 +130,7 @@ MyOU=$(echo $OU | cut -d '=' -f1)
|
||||
if [ "$MyOU" = OU ]
|
||||
then
|
||||
echo "Setting OU = $OU"
|
||||
sudo realm join computer-ou = $OU --verbose --user=$ADMIN $DOMAIN
|
||||
sudo realm join --computer-ou = $OU --verbose --user=$ADMIN $DOMAIN
|
||||
else
|
||||
echo "Something went wrong. please use this format ( CN=Computers,DC=domain,DC=com )"
|
||||
exit
|
||||
@ -154,7 +154,7 @@ MyOU=$(echo $OU | cut -d '=' -f1)
|
||||
if [ "$MyOU" = OU ]
|
||||
then
|
||||
echo "Setting OU = $OU"
|
||||
sudo realm join computer-ou = $OU --verbose --user=$ADMIN $DOMAIN --install=/
|
||||
sudo realm join --computer-ou = $OU --verbose --user=$ADMIN $DOMAIN --install=/
|
||||
else
|
||||
echo "Something went wrong. please use this format ( CN=Computers,DC=domain,DC=com )"
|
||||
exit
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user