tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivo Matheis" <>
Subject Client Authentication in combination with a realm
Date Fri, 01 Aug 2003 10:56:06 GMT

I'm using Tomcat 4.0.6 and configured it for client authentication. This works fine. 
Then I tried to add a realm to a certain webapp in order to control access. As I have read
in several sources either the client certificates Common Name or the complete Distinguished
name are used to identify the user (i.e. CN or DN must be identical to username in Tomcat's
users.xml-file in order to identify the user.).
I tried both the CN or DN string as username in users.xml, but when accessing the secured
webapp I get a 401 - Cannot authenticate with the provided credentials...
What is wrong? Does that kind of authentication not work with users.xml?

Thanks, Ivo

PS: this is a snippet of my secured webapp's web.xml:
      <web-resource-name>foo client auth</web-resource-name>

<!-- my client certificate's CNis "Ivo Matheis -->
  <user name="tomcat" password="tomcat" roles="tomcat" />
  <user name="Ivo Matheis" password="null" roles="foo" />

Spam-Filter fuer alle - bester Spam-Schutz laut ComputerBild 15-03
WEB.DE FreeMail - Deutschlands beste E-Mail -

View raw message