Hi,
I set up some unit tests (using jwebunit) :
1) change password,
2) try to bind directly with ldap with the old password (fail
expected)
3) try to re-log in pwm with the old password. (fail expected).
As expected direct bind to ldap fails in step 2 but pwm is stil
accepting the old password in step 3:).
See below for a trace of step 3 where the successfull bind took only
0ms (average is around 5ms for other ldap operations).
I don't think the problem is openldap related , according to the trace
I think that some caching is going on through the JNDIProviderImpl
that chai uses.
J.-M.
============================ Trace for the second attempts
========================================
011-01-26 22:02:00, TRACE, pwm.AuthenticationFilter, {3b} permitting
unauthenticated request of login page [
127.0.0.1/localhost]
2011-01-26 22:02:00, TRACE, pwm.UserStatusHelper, {3b} username
appears to be a DN; skipping username search [
127.0.0.1/localhost]
2011-01-26 22:02:00, TRACE, pwm.AuthenticationFilter, {3b} attempting
authentication using ldap BIND [
127.0.0.1/localhost]
2011-01-26 22:02:00, TRACE, pwm.SessionManager, {3b} opened new ldap
connection for null (0ms) [
127.0.0.1/localhost]
2011-01-26 22:02:00, TRACE, pwm.Helper, creating new chai provider
using config of ChaiConfiguration: locked=false settings:
{chai.bind.URLs=ldap://XXXXXXXXX:389,, chai.bind.dn=uid=XXXXXXX,
chai.bind.password=**stripped**, chai.cache.enable=false,
chai.cache.maximumSize=128, chai.cache.maximumAge=1000,
chai.statistics.enable=true, chai.watchdog.enable=true,
chai.watchdog.operationTimeout=60000, chai.watchdog.idleTimeout=60302,
chai.connection.watchdog.frequency=60000,
chai.connection.promiscuousSSL=false, chai.wireDebug.enable=false,
chai.failover.enable=true, chai.failover.failBackTime=90000,
chai.failover.connectRetries=4, chai.ldap.dereferenceAliases=never,
chai.ldap.ldapTimeout=5000,
chai.provider.implementation=com.novell.ldapchai.provider.JNDIProviderImpl,
chai.edirectory.enableNMAS=true,
chai.provider.extendedOperation.failureCache=true,
chai.provider.readonly=false,
chai.default.identityAttributes=cn,uid,givenName,initials,sn,mail,telephoneNumber,workforceID,
chai.vendor.default=}
2011-01-26 22:02:00, TRACE, provider.JNDIProviderImpl, bind successful
as uid=XXXXXXX (0ms)
On 26 jan, 02:08, Jason Rivard <
jriv...@gmail.com> wrote:
> Hi,
>
> This is not the intended behavior. I haven't seen this behavior before, but
> I haven't done much testing with openLDAP personally.
>
> Any authentication to PWM should result in an ldap bind to the directory,
> pwm shouldn't be caching the old password after a successful password change
> for any reason.
>
> Can you set the log level to TRACE and see if it provides any clues? Post
> the log here if your not sure what is happening.
>
> -jason
>
> >
pwm-general...@googlegroups.com<
pwm-general%2Bunsu...@googlegroups.com>
> > .