Roger,

A couple of thoughts:

1. Is there a <?xml version='1.0' encoding='utf-8'?> on the first line of your
tomcat-users.xml file.
2. Try using a simple <Realm className="org.apache.catalina.realm.MemoryRealm"
/> in your server.xml and see if that works.

I have seen the type of config you describe working with BASIC and FORM
authentication although it won't work with CLIENT-CERT authentication (this has
been fixed in CVS).

Mark

> -----Original Message-----
> From: BONUCHI, MICHAEL ROGER (SBCSI) [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 12, 2004 4:24 AM
> To: Tomcat Users List
> Subject: RE: Can't Login as Admin or manager
> 
> Mark,
> 
>       I overlooked the <GlobalNamingResources> section of the 
> server.xml below.  The tomcat-users.xml is referenced here as 
> it is in the second instance of Tomcat where the login 
> process works.  The server.xml is as it was released from 
> Sun/NetBeans package.  Any suggestions as why this instance 
> wouldn't accept my login?  As for my previous statement about 
> being "locked out", I'm sure I must have been mistaken and 
> login to the other working instance.
> 
> -Roger
> 
> <GlobalNamingResources>
> 
>     <!-- Test entry for demonstration purposes -->
>     <Environment name="simpleValue" type="java.lang.Integer" 
> value="30"/>
> 
>     <!-- Editable user database that can also be used by
>          UserDatabaseRealm to authenticate users -->
>     <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.UserDatabase"
>        description="User database that can be updated and saved">
>     </Resource>
>     <ResourceParams name="UserDatabase">
>       <parameter>
>         <name>factory</name>
>         
> <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
>       </parameter>
>       <parameter>
>         <name>pathname</name>
>         <value>conf/tomcat-users.xml</value>
>       </parameter>
>     </ResourceParams>
> 
>   </GlobalNamingResources>
> 
> -----Original Message-----
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Sent: Saturday, July 10, 2004 13:34 PM
> To: 'Tomcat Users List'
> Subject: RE: Can't Login as Admin or manager
> 
> 
> There is no account lock-out implemented in tomcat. Have a 
> look in server.xml
> and see how the realm is configured. You might have changed 
> this through the
> admin app. If you have, the previous server.xml should still 
> be in the conf
> directory with a timstamp appended to the filename.
> 
> Mark
> 
> > -----Original Message-----
> > From: BONUCHI, MICHAEL ROGER (SBCSI) [mailto:[EMAIL PROTECTED] 
> > Sent: Saturday, July 10, 2004 6:35 PM
> > To: Tomcat Users List
> > Subject: RE: Can't Login as Admin or manager
> > 
> > Hello Aman,
> > 
> > By the way, I have a second Tomcat instance on this Win2K 
> > laptop.  Of course, I only run one at a time.  The other 
> > Tomcat instance, the one outside of the Sun/NetBeans 
> > directory, works fine.  I can login as admin or manager 
> > without error.  Here's my tomcat-users.xml for the one that 
> > will not let me login:
> > 
> > <tomcat-users>
> >   <role rolename="tomcat"/>
> >   <role rolename="manager"/>
> >   <role rolename="admin"/>
> >   <role rolename="user"/>
> >   <user name="tomcat" password="tomcat" roles="tomcat" />
> >   <user name="roger"  password="jake" 
> > roles="manager,admin,user,tomcat" />
> > </tomcat-users>
> > 
> > -Roger
> > 
> > -----Original Message-----
> > From: Aman Raheja [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, July 10, 2004 07:29 AM
> > To: Tomcat Users List
> > Subject: Re: Can't Login as Admin or manager
> > 
> > 
> > Allow us to see your tomcat-users.xml file.
> > Regards
> > 
> > 
> > On Sat, 2004-07-10 at 17:20, BONUCHI, MICHAEL ROGER (SBCSI) wrote:
> > > Hello,
> > > 
> > >   I just setup Tomcat 5.019 as part of the NetBeans 
> > 3.6/Sun JDK 1.4x package.  At first I was able to login as 
> > manager and admin, after an edit to the tomcat-users.xml 
> > file.  Now, after apparently using the wrong ID or password 
> > to login, I can not get back in no matter what I do with the 
> > tomcat-users.xml file.  It looks like there's some password 
> > administration that has locked me out.  I've searched high 
> > and low in Tomcat doc and can not find a way out of this.  
> > Short of a re-installation, what the secrete that I do not know?
> > > 
> > > Thank you in advance,
> > > -Roger
> > > 
> > > 
> > > 
> > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > 
> > 
> > -- 
> > Aman Raheja               CompTIA Linux+ Certified
> > [EMAIL PROTECTED]         Brainbench Certified 
> > Linux (General) Admin
> > www.TechQuotes.com        Brainbench Certified Linux 
> > (RedHat 9) Admin
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > 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]
> > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> 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]
> 
> 



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

Reply via email to