Solved
LDAP: Callback implementation on 6.1
As of CRX2.3 there is support for LDAP callback as given here: https://docs.adobe.com/docs/en/cq/5-6-1/core/administering/ldap_authentication.html#Callbacks
Is there similar callback available in CRX3 or Apache Jackrabbit Oak?