Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-02-15 10:30:03 +01:00 committed by GitHub
parent f15de6e832
commit 44fa74c4d7

View File

@ -117,6 +117,7 @@ sudo echo "administrator ALL=(ALL:ALL) ALL" >> /etc/sudoers.d/sudoers
sudo echo "%domain^admins ALL=(ALL:ALL) ALL" >> /etc/sudoers.d/sudoers
sudo echo "%$myhost""sudoers ALL=(ALL:ALL) ALL" >> /etc/sudoers.d/sudoers
sudo echo "%DOMAIN\ admins@$DOMAIN ALL=(ALL) ALL" >> /etc/sudoers.d/domain_admins
sudo realm permit --realm=%DOMAIN --groups '"%$myhost""sudoers"'
therealm=$(realm discover $DOMAIN | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//')
if [ $therealm = no ]
then