I searched the list archives and found that there
needs to be a user with role=admin like so:

   <user name="admin"   password="some_hard_password"
 roles="admin" />

Also, in the server.xml the admin context should have
trusted="true" and password="some_hard_password", the
same as the one in the tomcat-users.xml file for
admin.

It works for me now.

--- Boris Garbuzov <[EMAIL PROTECTED]>
wrote:
> When I am hitting admin application
>
http://localhost:8080/admin/contextAdmin/contextAdmin.html,
> it tries to
> authenticate me, but does not accept pairs from
> tomcat-users.xml. Can somebody
> explain me how to use this app?
> --------------
> <tomcat-users>
>   <user name="tomcat" password="tomcat"
> roles="tomcat" />
>   <user name="role1"  password="tomcat"
> roles="role1"  />
>   <user name="both"   password="tomcat"
> roles="tomcat,role1" />
> </tomcat-users>
> 
> 


=====
-
[EMAIL PROTECTED]
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Reply via email to