From: <glassfish_at_javadesktop.org>
Date: Mon, 04 Jun 2007 16:09:43 PDT
Glassfish injects a meta (catalina) realm called the RealmAdapter which implements the jsr 115 and 196 contracts. For realm style authentication, the RealmAdapter selects the com.sun.enterprise.security.auth.realm bound to the application, and makes calls through to it. Realms are typically bound to an application via deployment descriptor constructs.
Glassfish includes an LDAP realm which can be configured for any application. You should be able to use the glassfish realm to configure your Glassfish containers to interact with your LDAP repository.