Invalid access to tomcat 7 applications

When I first go to the manager application http://localhost:8080/manager/html, a window appears in the browser window asking you to enter a username and password. By entering the wrong username and password, the page returned 403 (access denied).

So, I worked a little with Google and installed the following:

<role rolename="manager-gui" />
<user username="admin" password="tomcat" roles="manager-gui"/>
<!-- these 2 lines was there before my editing -->
<user password="tom" roles="manager-script,admin" username="tom"/>
<user password="tomcat" roles="manager-script,admin" username="tomcat"/> 

After rebooting tomcat, the manager application this time displays 403 pages directly without asking for a username and password. So I'm a little confused. What authentication does this manager application use? And how can I enter the manager application?

+5
source share
2 answers

, . Firefox "" → " ..." " ". - , .

Cheers, β

+6

Tomcat 7

LockOutRealm

: , 5 .

tomcat-users.xml.

<?xml version='1.0' encoding='cp1252'?>
<tomcat-users>
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles="manager-gui"/>
</tomcat-users>

XML , . , .

-1

All Articles