You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Okan Çetin <ok...@gmail.com> on 2007/07/24 15:34:33 UTC

creating security roles automatically

Hi;
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?
Thanks.

Sincerly,
Okan.

-- 
~
otomatik oluşturuldu:
http://ocetin.net/log
http://linux.beykent.edu.tr

Re: creating security roles automatically

Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
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 <mi...@ceti.pl>