Added check for ldapsearch installation

Added a check to ensure that ldapsearch is present on the machine. If
not, script will exit. Otherwise, the script will continue.