tomcat6 - Is there a tomcat anonymous role or user for tomcat security realms? -


i want role protected username , password in environments, not require prompt in others. if have auth-constraint in tomcat web.xml, can create user role needed has 'anonymous' access?

in tomcat-users.xml file (%tomcat_home%/conf) add in 'anonymous' role there. can use auth-constraint secure application.

your tomcat-users.xml (this v5.5)

<?xml version='1.0' encoding='utf-8'?> <tomcat-users>   <role rolename="tomcat"/>   <role rolename="role1"/>   <role rolename="anonymous"/>   <user username="tomcat" password="tomcat" roles="tomcat"/>   <user username="role1" password="tomcat" roles="role1"/>   <user username="myuser" password="mypassword" roles="anonymous"/> </tomcat-users> 

the user need enter myuser/mypassword access application


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -