From 44fa74c4d70b0686597232d4978996695f5ecf3e Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Wed, 15 Feb 2017 10:30:03 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ADconnection.sh b/ADconnection.sh index 498cbb4..8051a01 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -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