I’ve been trying to wrap my head around JAAS authentication lately. I need the container to retrieve information from LDAP in a non-standard way, especially groups.
This library supports many ways of authenticating, including Windows domains. At first glanc I can’t see if it supports LDAP, but it might be a good example to understand JAAS.