From 70a50b74e276aad94396f0b65d0c5d01229c6caa Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Thu, 22 Jun 2017 12:04:55 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ADconnection.sh b/ADconnection.sh index 08fc706..55666ab 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -714,13 +714,17 @@ sleep 3 if [ "$ldaptools" = dap-uti ] then echo "ldap tool installed.. verifying setup" +read own sudo ldapsearch | grep -i $myhost +sudo ldapsearch | grep -i $own +exit else sudo apt-get install ldap-utils -y echo "${NUMBER}please edit in ldap.conf the lines BASE and URI ${END}" sleep 3 sudo nano /etc/ldap/ldap.conf sudo ldapsearch | grep -i $myhost +exit fi }