Hello,

I would like to use a custom principal within Tomcat security. I use tomcat 
embedded in JBoss. Tomcat (in this situation) by default uses a JAASRealm to do 
authentication and authorization. I use a configured LoginConfig, that creates 
and authenticates the custom principal and subject correctly.

The problem begins when the constructed custm principal is returned to the 
JAASRealm: The JAASRealm iterates over all returned principal to check for a 
principal with the correct class name (as specified in UserClassNames 
property). This property is not set.

How can I configure this property of the JAASRealm? I can find this object as 
an MBean in the JMX-console (jboss.web:type=Realm), but when I try to change 
the property there, I get an "NoSuchMethodException: 
org.apache.catalina.realm.JAASRealm.setModelerType(java.lang.String)", which 
happens to be a field on the same form. Browsing through the JBoss/Tomcat 
config files (jboss-service.xml/server.xml) I do not see a JAASRealm object or 
MBean configures anywhere.

Is it oke to add a config element to the server.xml, possibly overriding the  
default realm settings?

Any help is appreciated!

-Maarten Winkels

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3897413#3897413

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3897413


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to