Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: creating security roles automatically

Mikolaj Rydzewski

2007-07-24

Replies:

Okan ??etin wrote:
> I am using role based authentication system with Tomcat. I know, in
> web.xml , security roles must be defined like this:
> Ex:
>   <security-role>
>      <role-name>users</role-name>
>   </security-role>
>
> But i want to create these roles dynamically. For example i want to
> read these roles from database, LDAP, text files or somewhere else. Is
> it possible?
Do you want modify web.xml on the fly, or to add additional roles to
tomcat on the fly? The former one can achieve using i.e.
http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html

--
Mikolaj Rydzewski <miki@(protected)>


Attachment: smime.p7s
©2008 junlu.com - Jax Systems, LLC, U.S.A.