You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Craig R. McClanahan" <cr...@apache.org> on 2001/06/02 07:23:48 UTC
Re: Setting a user role
On Fri, 25 May 2001, Jon.Ridgway wrote:
> Hi All,
>
> Is it possible to programmatically set a users role for use with
> request.isUserInRole (<role>). I would like to do this so I can started
> using the role based templating, without having to dig into app/web server
> specific security features.
>
> Any help much appreciated.
>
> Jon.
>
No, the values returned by isUserInRole() -- along with
getRemoteUser() and getUserPrincipal() -- are set by the servlet container
when you are using container-managed security.
Craig McClanahan
Re: Setting a user role
Posted by George Craig <g-...@mediaone.net>.
Moreover, I would add that it is dependant upon the application server in
question. For example, we are using J-Run and are in the process of using a
custom authenticator (totally app server specific) that is not portable;
although our models are as portable as one can get (i.e., using delegation
and wrapping). Anyways .. without getting off topic ..
We're using it for an LDAP central authentication db, but I am not sure if
this is possible with Tomcat. I venture to guess its also available under
WebSphere, Weblogic, et al.
----- Original Message -----
From: "Craig R. McClanahan" <cr...@apache.org>
To: <st...@jakarta.apache.org>
Sent: Saturday, June 02, 2001 12:23 AM
Subject: Re: Setting a user role
>
>
> On Fri, 25 May 2001, Jon.Ridgway wrote:
>
> > Hi All,
> >
> > Is it possible to programmatically set a users role for use with
> > request.isUserInRole (<role>). I would like to do this so I can started
> > using the role based templating, without having to dig into app/web
server
> > specific security features.
> >
> > Any help much appreciated.
> >
> > Jon.
> >
>
> No, the values returned by isUserInRole() -- along with
> getRemoteUser() and getUserPrincipal() -- are set by the servlet container
> when you are using container-managed security.
>
> Craig McClanahan
>
>