RE: Can't Login as Admin or manager
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 namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/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.comBrainbench 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
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 namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/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]
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.comBrainbench Certified Linux (RedHat 9) Admin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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.comBrainbench 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]
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]
RE: Can't Login as Admin or manager
Mark, I've not touched the server.xml file. Here's it's contents below (realm portion only). Looks like there is a global realm here, not a simple UserDatabase as with the (jakarta released) second instance that I have that works. Should it be commented out? Remember, this Tomcat instance came from the Sun/NetBeans package. Thanks for your reply, Roger server.xml below: !-- Because this Realm is here, an instance will be shared globally -- !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ !-- Comment out the old realm but leave here for now in case we need to go back quickly -- !-- Realm className=org.apache.catalina.realm.MemoryRealm / -- !-- Replace the above Realm with one of the following to get a Realm stored in a database and accessed via JDBC -- !-- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority connectionName=test connectionPassword=test userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / -- !-- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@ntserver:1521:ORCL connectionName=scott connectionPassword=tiger userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / -- !-- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=sun.jdbc.odbc.JdbcOdbcDriver connectionURL=jdbc:odbc:CATALINA userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / -- -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