Bug 22948 - jndi realm w/o connectionname, connectionpassword
Summary: jndi realm w/o connectionname, connectionpassword
Status: RESOLVED DUPLICATE of bug 19444
Alias: None
Product: Tomcat 4
Classification: Unclassified
Component: Catalina:Modules (show other bugs)
Version: 4.1.24
Hardware: All other
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-05 19:16 UTC by Bernhard Huber
Modified: 2008-03-20 07:01 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Huber 2003-09-05 19:16:45 UTC
hi,
I was using JNDIRealm without specifying connectionname, and connection password.
As I understood the implementation it is impossible in this case to query the
roles, as only in bindAsUser there is an attempt to search the LDAP with the
userid/credentials.
Searching roles is always done using connectioname/connecionpassword.

I fixed this by reusing code-snippets from bindAsUsers, and it worked well.

regards
Comment 1 seth.leger 2008-03-20 07:01:25 UTC
This is a duplicate of bug 19444. Both bugs point out that the user credentials used during the bind operation are not reused when searching for roles.

*** This bug has been marked as a duplicate of bug 19444 ***