tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39358] New: - tomcat can not support the JAASRealm definition with character "$" in the class name.
Date Wed, 19 Apr 2006 16:49:06 GMT
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: jjliu@huawei.com


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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message