I believe you will have to change the default admin-realm of glassfish, because the AdminGUI App has reference to "admin-realm" in its web.xml <realm> config.
In Admin GUI, goto :
Configuration> Security> Realms> admin-realm
1. Change the classname to your class,
2. Modify the Jaas Context property to indicate your LDAP LoginModule
3. Edit domains/domain1/config/login.conf and specify your LoginModule with the same name as the value of Jaas Context property specified in step 2.
4. restart GF.
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]
http://forums.java.net/jive/thread.jspa?messageID=282206