You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bruce Nourish <bj...@jumpbox.com> on 2009/09/09 19:22:10 UTC

tomcat-users.xml and manager role

Hi,

I have a 6.0.20 Tomcat binary distribution downloaded and untarred
directly from the Tomcat site. My system is Ubuntu 8.04 with Java
version 1.5.0_16. When I configure the manager role precisely as
directed in the 401 Error message:

<role rolename="manager"/>
<user username="tomcat" password="s3cret" roles="manager"/>

I am still unable to access the manager -- the basic auth dialog box
just keeps coming back. I have restarted Tomcat after making this
change. Looking at the documentation, I see discussion of MemoryRealm,
but judging by the comments in server.xml this information is out of
date: Tomcat is instead using UserDatabaseRealm. I can't find any
solutions in the Tomcat wiki, mailing lists, or the internet at large.
There is nothing that looks relevant or non-routine in the logs.

Could someone please explain what is going on here, and what I need to
do to fix it?

Bruce

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


Re: tomcat-users.xml and manager role

Posted by Tim Funk <fu...@apache.org>.
This worked fine for me conf/tomcat-users.xml - make sure this is the 
full XML file:

<tomcat-users>
<role rolename="manager"/>
<user username="tomcat" password="s3cret" roles="manager"/>
</tomcat-users>

(and then restart tomcat)

-Tim

Bruce Nourish wrote:
> Hi,
> 
> I have a 6.0.20 Tomcat binary distribution downloaded and untarred
> directly from the Tomcat site. My system is Ubuntu 8.04 with Java
> version 1.5.0_16. When I configure the manager role precisely as
> directed in the 401 Error message:
> 
> <role rolename="manager"/>
> <user username="tomcat" password="s3cret" roles="manager"/>
> 
> I am still unable to access the manager -- the basic auth dialog box
> just keeps coming back. I have restarted Tomcat after making this
> change. Looking at the documentation, I see discussion of MemoryRealm,
> but judging by the comments in server.xml this information is out of
> date: Tomcat is instead using UserDatabaseRealm. I can't find any
> solutions in the Tomcat wiki, mailing lists, or the internet at large.
> There is nothing that looks relevant or non-routine in the logs.
> 
> Could someone please explain what is going on here, and what I need to
> do to fix it?


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


Re: tomcat-users.xml and manager role

Posted by Bruce Nourish <br...@gmail.com>.
Yup, looks like I'm just retarded. Thanks.

On Wed, Sep 9, 2009 at 12:02 PM, Caldarale, Charles
R<Ch...@unisys.com> wrote:
>> From: bruce.nourish@gmail.com [mailto:bruce.nourish@gmail.com]
>> On Behalf Of Bruce Nourish
>> Subject: tomcat-users.xml and manager role
>>
>> <role rolename="manager"/>
>> <user username="tomcat" password="s3cret" roles="manager"/>
>
> A common error is to forget to remove the comment characters from around the <role> and <user> elements.  Post your entire tomcat-users.xml so we can look at it.
>
>  - 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


RE: tomcat-users.xml and manager role

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: bruce.nourish@gmail.com [mailto:bruce.nourish@gmail.com]
> On Behalf Of Bruce Nourish
> Subject: tomcat-users.xml and manager role
> 
> <role rolename="manager"/>
> <user username="tomcat" password="s3cret" roles="manager"/>

A common error is to forget to remove the comment characters from around the <role> and <user> elements.  Post your entire tomcat-users.xml so we can look at it.

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