diff --git a/ADconnection.sh b/ADconnection.sh index df921b6..33a823a 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -709,7 +709,7 @@ ldaplook(){ export HOSTNAME myhost=$( hostname ) ldaptools=$( sudo dpkg -l | grep -i ldap-utils | cut -d 's' -f1 | cut -d 'l' -f2 ) -if [ $ldaptools = dap-uti ] +if [ "$ldaptools" = dap-uti ] then echo "ldap tool installed.. verifying setup" sudo ldapsearch | grep -i $myhost