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
c8ca166971
commit
ecce0e2b3e
@ -127,7 +127,7 @@ else
|
|||||||
* ) echo 'Please answer yes or no.';;
|
* ) echo 'Please answer yes or no.';;
|
||||||
esac
|
esac
|
||||||
MyOU=$(echo $OU | cut -d '=' -f1)
|
MyOU=$(echo $OU | cut -d '=' -f1)
|
||||||
if [ "$MyOU" = CN ]
|
if [ "$MyOU" = OU ]
|
||||||
then
|
then
|
||||||
echo "Setting OU = $OU"
|
echo "Setting OU = $OU"
|
||||||
sudo realm join computer-ou = $OU --verbose --user=$ADMIN $DOMAIN
|
sudo realm join computer-ou = $OU --verbose --user=$ADMIN $DOMAIN
|
||||||
@ -151,7 +151,7 @@ fi
|
|||||||
* ) echo 'Please answer yes or no.';;
|
* ) echo 'Please answer yes or no.';;
|
||||||
esac
|
esac
|
||||||
MyOU=$(echo $OU | cut -d '=' -f1)
|
MyOU=$(echo $OU | cut -d '=' -f1)
|
||||||
if [ "$MyOU" = CN ]
|
if [ "$MyOU" = OU ]
|
||||||
then
|
then
|
||||||
echo "Setting OU = $OU"
|
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=/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user