I am integrating LDAP with CQ5 using OOTB configuration http://docs.adobe.com/docs/en/crx/current/administering/ldap_authentication.html .
Once integrated i want to query LDAP inside CQ5 e.g. to check if a user exists in LDAP? Are there any API available for these types of call? Or do i need to use plain JAVA API for same?