From 829e56356925ce1f68631ade4a2a9af37566c17e Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Mon, 20 Feb 2017 16:23:30 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADconnection.sh b/ADconnection.sh index ec92eb5..1116ea3 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -117,7 +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 --groups "$myhost""sudoers" +#sudo realm permit --groups "$myhost""sudoers" therealm=$(realm discover $DOMAIN | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//') if [ $therealm = no ] then