By default the ldapsearch utility is installed on the Domino server in the “bin” directory where all the other utilities are. You need a local domain admin to bind a domino query on the local server, and you need its credentials. Here is an example:
su - dominouser
/opt/ibm/lotus/bin/ldapsearch -h domino.server.address.com -D "cn=adminuser,o=org" -w adminpassword uid="adminusershortname"