Issue Details (XML | Word | Printable)

Key: DIRSERVER-782
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Alex Karasulu
Reporter: Ate Douma
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Restart required after changing password

Created: 17/Nov/06 02:40 PM   Updated: 27/Mar/08 04:18 PM
Return to search
Component/s: core
Affects Version/s: 1.0
Fix Version/s: 1.5.2

Time Tracking:
Not Specified

Environment: Ubuntu 6.06, Java 1.5, Jetspeed-2.1-dev

Resolution Date: 27/Mar/08 04:18 PM


 Description  « Hide
AuthenticationService.invalidateAuthenticationCaches( LdapDN principalDn ) calls:
  authenticator.invalidateCache( getPrincipal().getJndiName() );

instead of (what I think it should do):
   authenticator.invalidateCache( principalDn );

This results in original credentials remaining in the Authenticator cache, blocking a user to login again after changing the credentials.

I'm trying to upgrade our Jetspeed-2 codebase to use the new ApacheDS 1.0.0 but this is a blocker right now.
(NB: another one is that we still build with maven-1..., I can't find any docs how to embed ApacheDS using maven-1, or -2 for that matter)

When I modified the AuthenticationService the way I think it should, the problem is solved.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Emmanuel Lecharny added a comment - 17/Nov/06 02:45 PM
I guess you *must* use the ADS jars, because of maven 1/maven 2 incompatibility ...

We will try to get a 1.0.1 out soon, and we also check to see if your modification can be applied right away.

Ate Douma added a comment - 17/Nov/06 03:20 PM
Right...
Well, we probably will drop the ApacheDS "embedded" feature from Jetspeed-2 and have the users run it themselves.
Ok, that would be great, thanks.

BTW: are you going to provide "normal" src and binary distributions too, besides now only binary setup dists?
I also thought that to be a requirement for ASF releases...

For development, I honestly don't need nor like to be forced to *install* ADS.

Regards,

Ate



Ate Douma added a comment - 17/Nov/06 03:31 PM
The weirdest thing:
I just replied *by mail* to the comment from Emmanuel, with 2 inline comments.
But somehow my mail was scanned and my comments extracted as new comment for this issue..., without context of course.
I certainly won't do that again :(

Anyway, because my previous comment is somewhat incomprehensible now, I'm providing it again below, not *with* context:

> I guess you *must* use the ADS jars, because of maven 1/maven 2 incompatibility ...
Right...
Well, we probably will drop the ApacheDS "embedded" feature from Jetspeed-2 and have the users run it themselves.

>
> We will try to get a 1.0.1 out soon, and we also check to see if your modification can be applied right away.
Ok, that would be great, thanks.
 
BTW: are you going to provide "normal" src and binary distributions too, besides now only binary setup dists?
I also thought that to be a requirement for ASF releases...
 
For development, I honestly don't need nor like to be forced to *install* ADS.

 

Alex Karasulu added a comment - 03/Dec/06 03:36 PM
Ate,

Having normal tar/zip balls is not an Apache release requirement. However it's a good thing to have. How about helping out over here to rig that into our build.

Thanks.

Emmanuel Lecharny added a comment - 25/Jan/07 04:08 PM
We need to investigate the implication of such a fix in the server.

Let's mark it as to be fixed for 1.0.1 and 1.5.0

Emmanuel Lecharny made changes - 25/Jan/07 04:08 PM
Field Original Value New Value
Fix Version/s 1.0.1 [ 12312091 ]
Fix Version/s 1.5.0 [ 12310790 ]
Alex Karasulu made changes - 13/Feb/07 03:26 AM
Assignee Alex Karasulu [ akarasulu ]
Alex Karasulu added a comment - 13/Feb/07 04:18 AM
The following tests confirm that updates are correctly handled to invalidate the credential cache:

  o test11InvalidateCredentialCache
  o testDIRSERVER782

I just added the last test but both test cases test to make sure the cache is properly invalidated. Please confirm this bug no longer exists and if so I will open this JIRA issue again.

Thanks!

Alex Karasulu made changes - 13/Feb/07 04:18 AM
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]
Repository Revision Date User Message
ASF #506851 Tue Feb 13 04:19:11 UTC 2007 akarasulu adding what seems to be a redundant test for trying to reproduce the bug in DIRSERVER-782
Files Changed
MODIFY /directory/apacheds/branches/1.0/core-unit/src/test/java/org/apache/directory/server/core/authn/SimpleAuthenticationITest.java

Alberto Troisi added a comment - 05/Dec/07 11:54 AM
The described problem seems still present in the ApacheDS 1.0.2 (used with Jetspeed 2.1.2).

Changing the AuthenticationService.invalidateAuthenticationCaches( LdapDN principalDn ) call from

  authenticator.invalidateCache( getPrincipal().getJndiName() );

to

   authenticator.invalidateCache( principalDn );

solve the problem.

Alberto Troisi made changes - 05/Dec/07 11:54 AM
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Alex Karasulu added a comment - 27/Mar/08 04:18 PM
Recent changes in BigBang have fixed this issue.

Alex Karasulu made changes - 27/Mar/08 04:18 PM
Resolution Fixed [ 1 ]
Fix Version/s 1.0.1 [ 12312091 ]
Fix Version/s 1.5.0 [ 12310790 ]
Status Reopened [ 4 ] Closed [ 6 ]
Fix Version/s 1.5.2 [ 12310793 ]