users@glassfish.java.net

Re: LDAPRealm not closing connections, causing glassfish lockup

From: <glassfish_at_javadesktop.org>
Date: Thu, 21 Feb 2008 04:34:55 PST

Actually the default value for this property is true and the LDAPRealm really uses the JNDI pool to obtain the Context. It does not open the connections to ldap on its own.

             ctx = new InitialDirContext(getLdapBindProps());
            String realUserDN = userSearch(ctx, getProperty(PARAM_USERDN), userid);

So i am not sure what is happening. If you have any more debug info let us know. Are you using any custom realm definition, how does your domain.xml <auth-realm> definition for LDAP Realm look like.

Can you trace which part of the Code is opening connections so that we can fix it if there is really an issue.
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

http://forums.java.net/jive/thread.jspa?messageID=260166