Hi Andoni & Yoav. Tried what Andoni recommended - no joy. >From the documentation, inorder to access admin and manager webapp the user must have those respective roles.
I've commented out the Realm code in server.xml, so effectively there no encyption on any passwords, just the password authentification from tomcat-users.xml. Tried Yoav's suggestion of defining rolenames for admin and manager - no joy. I agree with you Yoav - it is a trivial thing, but it's not working. A couple of questions: a) does Apache need to be restarted (aswell as tomcat) when any changes are made to tomcat-user.xml, etc.? b) which file can I look in to check $CATALINA_HOME? Thanks. -----Original Message----- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 14:43 To: Tomcat Users List Subject: Re: administration webapp Hi, Make the following the entire contents of your tomcat-users.xml file and all will be happy. <?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="express"/> <role rolename="tomcat"/> <role rolename="role1"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="role1" password="tomcat" roles="role1"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="express" password="thames" roles="manager,admin"/> </tomcat-users> Andoni. ----- Original Message ----- From: "Michael Simpson" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Thursday, October 14, 2004 2:26 PM Subject: RE: administration webapp > Hi Yoav. > > I actually tried that bit of code before - tried again just now and still > does not work. > Error generated is "Invalid username or password". > > Anything else I can check? > > -----Original Message----- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: 14 October 2004 13:50 > To: Tomcat Users List > Subject: RE: administration webapp > > > > Hi, > > >This is the code from tomcat_users.xml : > ><?xml version='1.0' encoding='utf-8'?> > ><tomcat-users> > > <role rolename="tomcat"/> > > <role rolename="role1"/> > > <user username="tomcat" password="tomcat" roles="tomcat"/> > > <user username="role1" password="tomcat" roles="role1"/> > > <user username="both" password="tomcat" roles="tomcat,role1"/> > > <user username="express" password="thames" roles="manager,admin"/> > ></tomcat-users> > > So the express user has the admin and manager roles, but those roles are > not defined. Add two lines to the file, > <role rolename="manager" /> > <role rolename="admin" /> > > Restart Tomcat, and try again. > > Yoav > > > > > This e-mail, including any attachments, is a confidential business > communication, and may contain information that is confidential, proprietary > and/or privileged. This e-mail is intended only for the individual(s) to > whom it is addressed, and may not be saved, copied, printed, disclosed or > used by anyone else. If you are not the(an) intended recipient, please > immediately delete this e-mail from your computer system and notify the > sender. Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > The NMA: Opening Up Newspapers http://www.nmauk.co.uk > > Visit Express Newspapers and OK Magazine online picture archive at > http://www.expresspictures.com/ > > ###EXN2004### > > _____________________________________________ > Any views or opinions are solely those of the author > and do not necessarily represent those of Express Newspapers > _____________________________________________ > The information transmitted is intended only for the person > or entity to which it is addressed and may contain confidential > and/or privileged material.If you are not the intended recipient > of this message please do not read ,copy, use or disclose this > communication and notify the sender immediately. It should be > noted that any review, retransmission, dissemination or other > use of, or taking action in reliance upon, this information by > persons or entities other than the intended recipient is prohibited. > Email communications may be monitored > **************************************************************************** > > > ##EXN2000## > > > --------------------------------------------------------------------- > 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]