On 5/2/05, Nir Tayeb <[EMAIL PROTECTED]> wrote:
> I will try to explain,
> 
> When I enter the default web app
> ($CATALINA_HOME/webapps/ROOT/index.jsp) by typing 127.0.0.1:8080 in
> the address-bar.
> 
> In the side bar I choose "Tomcat manager" under "Administration" and I
> am prompted for a username and a password.
> 
> Trying to login with "manager" or "admin" roles failes.
> 
> What can I do?
> 
> On 5/1/05, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> > > From: Nir Tayeb [mailto:[EMAIL PROTECTED]
> > > Subject: Re: Tomcat Administration problem
> > >
> > > I have created a user with a role of "manager", and I login with his.
> > > but yet, the server prompt me for a username and password.
> >
> > The "manager" role is for the manager app; you must have an "admin" role
> > to use the admin app.
> >
> >  - Chuck
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> > MATERIAL and is thus for use only by the intended recipient. If you
> > received this in error, please contact the sender and delete the e-mail
> > and its attachments from all computers.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

You should have a similar entry to the following in conf\tomcat-users.xml.
<user username="manager" password="" roles="manager"/>
This declares the user manager has access to manager application
without any password.

    For above configuration to work you need to configure Tomcat to
use the tomcat-users.xml to read user authentication information.
Tomcat is shipped configured to use this setup. If somebody has
changed it to use database or any other authentication realm you will
have to add the manager username,password and role in that realm.
    You can check which configuration Tomcat is using by looking for
the <Realm/> element in server.xml. Mine is

<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                 debug="0" resourceName="UserDatabase"/>

This uses the UserDatabaseRealm which reads the file conf\tomcat-users.xml

Hope this helps 
-- 
rgds
Anto Paul

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

Reply via email to