java - Glassfish caching LDAP passwords -


I have some Java code that allows users to reset stored passwords on their LDAP server. This code runs as part of a web application running on glassfish.

I see that after changing the password password operation, the user can later use the password to access the application.

I have a unit test that runs directly against the LDAP server and I can verify that the password is actually changing and the user can not access access using the old password. The problem is not on the LDAP server.

What I have noticed is that if I restart Glassfish after the password change operation, then only the new password is valid (expected). I think the glassfish is cashing anywhere credentials.

/ Li>

Thank you in advance ....

UPDATE Still facing this problem I also thought that the browser Can store information, but it does not seem like that. I exit my browser session and both passwords still work in the new session - even with different types of browsers. BTW - I do not know whether or not it matters, but this is HTTP Basic Authentication.

UPDATE We are using a single mark on the functionality included with the glassfish, it seems that the session is connected to a cookie on the browser and that Will the user be valid until the cookie expires? It seems that the cookie is connected to a session. It is taking a closer look.

"post-text" itemprop = "text">

Try adding this property to additional properties of your ldap realm:

  com.sun.jndi.ldap.connect.pool = false  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -