/usr/bin/ldapcompare
ldapcompare is a shell-accessible interface to the ldap_compare_ext library call. ldapcompare opens a connection to an LDAP server, binds, and performs a compare using specified parameters.