@Bhushan kumar What do you mean by ldapsearch not working on Knox? I am assuming that you are trying to do ldapsearch from host where knox is installed and getting "ldapsearch: command not found" which means ldap client utilities are not installed.
Installing openldap-clients should fix the issue.
Below is example from Centos7:
[root@pk-test4 ~]# yum provides ldapsearch
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sjc02.svwh.net
* extras: mirror.keystealth.org
* updates: centos.mia.host-engine.com
openldap-clients-2.4.40-13.el7.x86_64 : LDAP client utilities
Repo : base
Matched from:
Filename : /usr/bin/ldapsearch
openldap-clients-2.4.40-13.el7.x86_64 : LDAP client utilities
Repo : @base
Matched from:
Filename : /bin/ldapsearch
openldap-clients-2.4.40-13.el7.x86_64 : LDAP client utilities
Repo : @base
Matched from:
Filename : /usr/bin/ldapsearch