tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rossbach>
Subject Re: another problem with JAAS
Date Thu, 22 Apr 2004 13:52:53 GMT

strange error!

I have looked inside the JAASRealm code and can't find a error.
Subject result:
    You must have as your subject one Principal ( 
for real user
    Than you can have one or more Group Principals with Name ="Roles" 
from class
    for the real user roles!
         All member names from this groups are added to the tomcat role 
    An option is you generate your own GenericPrincipal!


Beloglazov Maksim schrieb:

> Hello,
> I've written a JAAS LoginModule and my web application successfully 
> authorizes with it. But! While the authorization is successful, Tomcat 
> does not recognize user Principals and roles which I assign in login 
> module and returns that I have logged as a *null* user with no roles 
> assigned to it.
> server.xml:
> ....
>   <Realm className="org.apache.catalina.realm.JAASRealm"
>           appName="merx"
>           userClassNames=""
>           roleClassNames=""
>           debug="99"/>
> ....
> and 
> are implementations of interface. How can I 
> force Tomcat recognize these Principals in a proper way? Can be the 
> problem with moving of earlier JDKs to 
> in modern ones?
> Any help is greatly appreciated.
> Beloglazov Maksim.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message