diff --git a/ADconnection.sh b/ADconnection.sh index e809a75..968a9d9 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -172,8 +172,7 @@ sudo echo "$NetBios"'\'"$myhost""sudoers" >> /etc/ssh/login.group.allowed sudo echo "%domain^admins ALL=(ALL:ALL) ALL" >> /etc/sudoers.d/admins sudo echo "%$myhost""sudoers ALL=(ALL:ALL) ALL" >> /etc/sudoers.d/admins sudo echo "%DOMAIN\ admins@$DOMAIN ALL=(ALL) ALL" >> /etc/sudoers.d/domain_admins -sudo rm -R pbis-open-8.0.1.2029.linux.x86_64* -therealm=$(realm discover | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//') +therealm=$(realm discover $DOMAIN | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//') if [ $therealm = no ] then echo Realm configured?.. "${RED_TEXT}"FAIL"${END}"