Would anybody have a code snippet for querying an LDAP server from within a server side JSP program ? We use an external LDAP server for Zimbra authentication and looking to write a Fax Zimlet that can query that same source to retrieve a clients fax number; if not using an external LDAP then the Zimlet can be configured to store the details directly within the Zimbra LDAP.

Hopefully somebody will be able to help as we would love to contribute our work back to the community.