DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39358>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39358

           Summary: tomcat can not support the JAASRealm definition with
                    character "$" in the class name.
           Product: Tomcat 5
           Version: 5.0.30
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


If define a Realm like this in context.xml in META-INF folder, it will read 
the class as "test.SecurityComponentImpl\InternalUserPrincipal" not the 
one "test.SecurityComponentImpl$InternalUserPrincipal". so 
JAASRealm.createPrincipal() method will always return null; then the user will 
never login into the system.

<Realm className="org.apache.catalina.realm.JAASRealm" 
                        appName="Test" 
                
        userClassNames="test.SecurityComponentImpl$InternalUserPrincipal" 
                
        roleClassNames="test.SecurityComponentImpl$InternalRolePrincipal" 
                        useContextClassLoader="false" 
                        debug="0" />

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to