tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack" <jack...@hotmail.com>
Subject an example of Users element
Date Fri, 20 Jan 2006 09:32:33 GMT
Furthermore, the original Realm element could be moved into Users element. 
The Users element should be able to include several Realm elements, such as 
one for Database, another one for LDAP, even one more in tomcat-usrs.xml 
format. Examples:



<Users keystoreFile="xxxxxx\.keystore" scope="web-app">

 <Realm memory realm>

  <user username="owner" password="jack" roles="owner"/>

  <user username="xxx" password="jack" roles="aaa"/>

  <user username="yyy" password="jack" roles="bbb"/>

 </Realm>

 <Realm memory realm src="users.xml" />

 <Realm jdbc config/>

 <Realm jndi config/>

 <Realm ldap config/>

</Users>



The certificate of this web-app will be included in the context if it has 
one.

When the web-app is running, it might have to access its own certificate, 
too.



jackzhp@hotmail.com




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message