Re: Tomcat Administration problem
In addition to the advice below, did you restart Tomcat after updating tomcat-users.xml? Last I knew this file wasn't reparsed after startup. Could be wrong on that though. If you want the authentication to be updateable while tomcat is running, use a database realm. Docs should be available in server.xml. --David Anto Paul wrote: 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Administration problem
It works :-D but after every edit I restarted the server, it is very strange :-S Thank you very much :-) On 5/2/05, David Smith [EMAIL PROTECTED] wrote: In addition to the advice below, did you restart Tomcat after updating tomcat-users.xml? Last I knew this file wasn't reparsed after startup. Could be wrong on that though. If you want the authentication to be updateable while tomcat is running, use a database realm. Docs should be available in server.xml. --David Anto Paul wrote: 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 - 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: Tomcat Administration problem
Thank you, but the solution you offered is not helpful to me. 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. this is the user definition code: user username=nir password=123456 roles=manager/ thanks, nir :-) On 4/30/05, Steve Ochani [EMAIL PROTECTED] wrote: Date sent: Sat, 30 Apr 2005 02:19:43 +0300 From: Nir Tayeb [EMAIL PROTECTED] Subject:Tomcat Administration problem To: tomcat-user@jakarta.apache.org Send reply to: Tomcat Users List tomcat-user@jakarta.apache.org Send reply to: Nir Tayeb [EMAIL PROTECTED] Hello, I am running a Tomcat 5.5.9 server on Ubuntu 5.04 machine. When I try to logon to the Tomcat manager, the server prompts me for a username and password. When I installed (from binaries) the server I didn't specify any username and/or password. What details should I enter? You should have a file named tomcat-users.xml in your conf subdir. In it there are users/passwords and roles that they belong to. You need to log in with a username that has manager role. Education is what remains after one has forgotten everything he learned in school. -Albert Einstein Steve O. http://www.steveo.us SUNY NCC MATH/COMPUTER http://www.matcmp.ncc.edu
RE: Tomcat Administration problem
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]
Re: Tomcat Administration problem
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]
Re: Tomcat Administration problem
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]
Re: Tomcat Administration problem
Date sent: Sat, 30 Apr 2005 02:19:43 +0300 From: Nir Tayeb [EMAIL PROTECTED] Subject:Tomcat Administration problem To: tomcat-user@jakarta.apache.org Send reply to: Tomcat Users List tomcat-user@jakarta.apache.org Send reply to: Nir Tayeb [EMAIL PROTECTED] Hello, I am running a Tomcat 5.5.9 server on Ubuntu 5.04 machine. When I try to logon to the Tomcat manager, the server prompts me for a username and password. When I installed (from binaries) the server I didn't specify any username and/or password. What details should I enter? You should have a file named tomcat-users.xml in your conf subdir. In it there are users/passwords and roles that they belong to. You need to log in with a username that has manager role. «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤» Education is what remains after one has forgotten everything he learned in school. -Albert Einstein Steve O. http://www.steveo.us SUNY NCC MATH/COMPUTER http://www.matcmp.ncc.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]