Corrected subject - 

Hello,

I have manager endpoint enabled in my tomcat install.

When I list the manager endoing in tomcat 9.0.31, I get a 401 Unauthorized 
error -

curl -u tomcat:secret http://127.0.0.1:8080/manager/text/list

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/html4/strict.dtd";>
<html>
<head>
  <title>401 Unauthorized</title>
...
</html>


However, when I call it in tomcat 9.0.27 it works as expected...

curl -u tomcat:secret http://127.0.0.1:8080/manager/text/list in tomcat 9.0.27 
it works as expected...
OK - Listed applications for virtual host [localhost] /manager:running:0:manager

The password is configured in tomcat-users.xml using the output from
/opt/tomcat/bin/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fdigest.sh&c=E,1,3tDk5vwY_zoM19PIwVKe3fyfwRAXV_7a8MrPXyx5XiQ5db4bmp89IB1v74yX6cNBQO6ob5X1vfgWGe5Fe0T0DHm6eweKRmHiAyvxG_4cIwsd218AJPe3&typo=1
 -a sha-512 -h org.apache.catalina.realm.MessageDigestCredentialHandler secret
secret:ca858d2d5c3e86702ed03b90b1808205a4dc795330deac90380dd3642bcab92a$1$b5affd62902693d01f95bb8798b9c02982dbe58038d5e5064a77fa8a00951561cf63d5491a33d86fb2bee930335f3e3ceb324a8a8459d2966231392072ff4d82

> cat /opt/tomcat/conf/tomcat-users.xml
...
  <role rolename="manager-script"/>
  <user username="user1" 
password="7244776efd3bbf6f9a56dfdc6443f898d39b13623ea349929ecf66748cde0923$1$22aab528369d6c453adca7e4928fff24f77110d15bd2e9786554c2dcdf628847a88f9a459e8cec0c942545a83156ca737eb0edb700563d00f926cb8f29fc4d73"
 roles="manager-script"/> ...

I compared the conf folders in both 9.0.27 and 9.0.31 and they appear to be 
identical.

Can someone please help me what I may need to configure more?

Regards,
Vishal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to