diff --git a/ADconnection.sh b/ADconnection.sh index e03c8c3..6cbdd50 100755 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -1280,7 +1280,7 @@ if [ "$ldaptools" = dap-uti ] then clear echo "ldap tool installed.. trying to find this host" -sudo ldapsearch -x cn="$myhost'*'" +sudo ldapsearch -x cn="$myhost" echo "Please type what you are looking for" read -r own sudo ldapsearch -x | grep -i "$own"