You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Jack <ja...@hotmail.com> on 2006/01/20 10:32:33 UTC

an example of Users element

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