ldapsearch command check