[CentOS] can't find ldapseaerch

Sat Nov 13 23:09:56 UTC 2010
bluethundr <bluethundr at gmail.com>

hello list

I'm having a very strange problem with my centos 5.5 system. For some
strange reason, this machine cannot find ldapsearch:

[root at VIRTCENT13 ~]# ldapsearch
ldapsearch: Command not found.

[root at VIRTCENT13 ~]# whereis ldapsearch
ldapsearch: /usr/bin/ldapsearch /usr/share/man/man1/ldapsearch.1.gz

ldapsearch currently lives at /usr/bin along with a lot of other
really very useful tools.

/usr/bin is also _clearly_ on my root path:i

[root at VIRTCENT13 ~]# echo $PATH

And here are the permissions and modes for this tool:

[root at VIRTCENT13 bin]# ls -l ldapsearch
-rwxr-xr-x 1 root wheel 65336 Aug 11 09:20 ldapsearch

And other things in this directory (like yum for example) work just fine:

[root at VIRTCENT13 bin]# yum repolist
Loaded plugins: fastestmirror, priorities
Existing lock /var/run/yum.pid: another copy is running as pid 11750.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum-updatesd-he
    Memory :  65 M RSS (107 MB VSZ)
    Started: Sat Nov 13 18:04:22 2010 - 00:57 ago
    State  : Running, pid: 11750

If you feed the command line the full path to ldapsearch it works as
intended. I was wondering if anyone had any idea why ldapsearch isn't
being found?

Here's my RSA Public key:
gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9

Share and enjoy!!