On Friday 23 January 2004 20:59, Remy Maucherat wrote:
> - 26236 about the JAAS realm: it would be a very useful fix, and
> shouldn't be too complex

Well... I've tried to reproduce the bug... I've created my own LoginModule, 
and two classes wich implements de java.security.Principal interface (one for 
the user principal and other to the roles principals) just like the bug 
description said, and it worked fine! 

I also couldn't figure out how the method hasRole() in the RealmBase class can 
be related to this problem because the method createPrincipal() (which is 
called by the authenticate() method in the JAASRealm class) creates a 
GenericPrincipal, as expected by the hasRole() method. 

I think the problem can be related to the LoginModule of the user application, 
maybe it's not returning any RolePrincipal or something like that.

As a new guy to the tomcat source-code, I can be just missunderstanding 
something... any ideas?

Thanks in advance!

-- 
Carlos H. ([EMAIL PROTECTED])
Núcleo de Informática UNERJ
UNERJ - Centro Universitário de Jaraguá do Sul


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

Reply via email to