I have been using Tomcat 7.0 and Eclipse Helios 3.6. I was asked to use a remote system as the tomcat server. i need to add user authentication for the remote server, so that only entrusted users can deploy apps on the server. To experiment with it, I configured tomcat-users.xml in conf folder
Added
<tomcat-users>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="role1"/>
</tomcat-users>
and restarted the server. I was not asked any username and password.
Can any one help me to understand when the authentication is needed (is it when starting and stoppong the server and what are roles.
Thank you
i would suggest you have a look through the Tomcat 7 docs here. The basic issue you are having is that the role manager-gui or similar must be added before authentication will work. there is also a line in server.xml that will need to be uncommented. it looks like the below :
the docs should help you out though.