Thanks for the suggestion, Derrick.  I just double-checked the manager app's
web.xml, and it looks good.  I haven't changed it from the default
installation anyway, but here's what the security-constraint looks like.

  <!-- Define a Security Constraint on this Application -->
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>Entire Application</web-resource-name>
      <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
       <!-- NOTE:  This role is not present in the default users file -->
       <role-name>manager</role-name>
    </auth-constraint>
  </security-constraint>

Any other thoughts?

Thanks,
-Jeff



                                                                                       
                                    
                    "Koes, Derrick"                                                    
                                    
                    <Derrick.Koes@Smith-N        To:     "'Tomcat Users List'" 
<[EMAIL PROTECTED]>            
                    ephew.com>                   cc:                                   
                                    
                                                 Subject:     RE: manager app          
                                    
                    07/25/02 12:21 PM                                                  
                                    
                    Please respond to                                                  
                                    
                    "Tomcat Users List"                                                
                                    
                                                                                       
                                    
                                                                                       
                                    





Have you checked your web.xml?  Do you have a security-constraint?
You may need one.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 1:09 PM
To: [EMAIL PROTECTED]
Subject: manager app

Anybody have any ideas what I could be doing wrong?  This is how I have my
tomcat-users.xml file set up in my $CATALINA_HOME/conf directory.  I've done
a
restart (actually several) since adding tcuser.  When I try to go to
http://localhost:8080/manager, it prompts me for username and password.  I
enter tcuser and tcpass in, and, after 3 attempts, it brings me to a "401 -
Unauthorized" screen.  I'm running Tomcat 4.0.3 on RedHat Linux 6.2.  I
don't
see what could be going on, since this seems like a pretty straightforward
thing.  Any place I could look that may be short-circuiting my manager app?

Thanks,
-Jeff

<!--  NOTE:  By default, no user is included in the "manager" role required
to operate the "/manager" web application.  If you wish to use this app,  you
must define such a user - the username and password are arbitrary.-->
<tomcat-users>
  <user name="tomcat" password="tomcat" roles="tomcat" />
  <user name="role1"  password="tomcat" roles="role1"  />
  <user name="both"   password="tomcat" roles="tomcat,role1" />
  <user name="tcuser" password="tcpass" roles="manager" />
</tomcat-users>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to