I'd like to use the zimbra LDAP server to authenticate our users in our other applications, maybe using php or some other scripting language.

Looking through the Zimbra LDAP Schema, I see that the objectclass zimbraAccount has a uid and the userPassword and the userPassword is hashed with something that ends up like:

e1NTSEF9anR3T0Zqc0tsOHJhRrT0Zqc05PN0xrT0Zqc05PN0x3 eWk=

QUESTION: what kind of hash is that?

To list all the users I can run this command:
/opt/zimbra/openldap/bin/ldapsearch -D "uid=zimbra,cn=admins,cn=zimbra" -x -w "[password]" |grep "dc=[ourdomain]"

where [password] came from:
zmlocalconfig -s zimbra_ldap_password
and [ourdomain] is, well, our domain (e.g. the example part of example.com)

QUESTION: anyone have tips on how I can query the zimbra ldap server with a username and password and return whether they are a valid user or not?