On Thu, 10 Jan 2002 [EMAIL PROTECTED] wrote:
> Date: Thu, 10 Jan 2002 15:09:33 -0600
> From: [EMAIL PROTECTED]
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: Question about login backdoor
>
>
> Good idea!
>
> But I want to have role set as well. Is there a equivalent set method
> for role?
>
No. The isUserInRole() question is ultimately answered by the Realm
associated with a webapp (see the isUserInRole() method in
org.apache.catalina.connector.HttpRequestBase), so you would have to
customize a Realm implementation as well to make this work.
Given that you need to do this anyway, it might just be easier to teach
your Realm how to figure out whether the username and password are valid
in whatever manner you do that for your intranet apps.
> Thanks for the response!
>
> -Jerry
>
Craig
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>