From 774238f094c1c4f13bbefabaa9672ff52bc3b332 Mon Sep 17 00:00:00 2001 From: PierreGode <8579922+PierreGode@users.noreply.github.com> Date: Mon, 13 Jul 2020 08:11:48 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index ad7927b..29ef3ba 100755 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -131,7 +131,7 @@ then sudo echo "%DOMAIN\ admins ALL=(ALL:ALL) ALL" | sudo tee -a /etc/sudoers.d/domain_admins #sudo realm permit --groups "$myhost""sudoers" else - echo "error in readfile config" + echo "error in readfile config, setting to default" sudo echo "administrator ALL=(ALL:ALL) ALL" | sudo tee -a /etc/sudoers.d/sudoers fi fi @@ -242,7 +242,8 @@ sudo echo "#entry_cache_user_timeout = 5400 entry_cache_timeout = 600 entry_cache_nowait_percentage = 75 " | sudo tee -a /etc/sssd/sssd.alternatives ####################################################################################### - +if [ -z readfile ] +then sudo service sssd restart sleep 1 clear @@ -309,6 +310,9 @@ fi;; esac fi fi +else +echo "Skipped ldaps" +fi ################################# Check ####################################### if ! sudo service sssd restart then