tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anto Paul <antop...@gmail.com>
Subject Re: Tomcat Administration problem
Date Mon, 02 May 2005 04:45:12 GMT
On 5/2/05, Nir Tayeb <nir.tayeb@gmail.com> 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 <Chuck.Caldarale@unisys.com> wrote:
> > > From: Nir Tayeb [mailto:nir.tayeb@gmail.com]
> > > 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: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message