Title: Re: Authentication Problems
 
----- Original Message -----
Sent: Friday, March 16, 2001 7:53 AM
Subject: RE: Login Problems

Hi Tom,
 
In my "tomcat-users.xml" I had "tomcat" as my password for user john and have put "root" in the rule and it works fine. Here is how it looks like:
 <user name="john"   password="tomcat" roles="tomcat,role1,root"/>
My understanding of slide is very limited but it worked for me, hope it might help.
Paresh
 
There are two rules when defining users :
 
- The user role(s) must match at least one of the roles defined in the constraint. Here, in the example, the constraint is defined on roles "root" and "guest".
- The user must exist in the Slide namespace.
 
The second rule goes away when using the realm implementation for Tomcat 4.0. I've put together some instructions on how to install it : http://jakarta.apache.org/slide/howto-tomcat.html#Tomcat%204.x. Since TC4 beta 2 isn't out yet, you'll have to use one of the latest nightly builds.
 
Remy
 
-----Original Message-----
From: Villiotte, Tom [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 16, 2001 8:13 AM
To: '[EMAIL PROTECTED]'
Subject: Login Problems

Hello,
     thanks for the hel  so far .  Running Tomcat 3.2.1 and Slide m8 I've now been able to get the authorization box to pop up when I access my local http://localhost:8080/slide URL.  Unfortunately, now I cannot seem to login correctly. 
    I have added the users "root" and "john" to the system to correspond to the users noted in Slide's "Domain.xml."  (I think that is what I am supposed to do.)  And I have changed my "tomcat-users.xml" to look like this...
                                            <tomcat-users>
                                                  <user name="tomcat" password="tomcat" roles="tomcat,john,root" />
                                                  <user name="role1"  password="tomcat" roles="role1"  />
                                                  <user name="both"   password="tomcat" roles="tomcat,role1" />
 
                                                  <user name="root"   password="root"   roles="tomcat,role1" />  
                                                  <user name="john"   password="john"   roles="tomcat,role1" />
                                             </tomcat-users>
 
The "Domain.xml" I have not edited at all, it is the standard one that comes with Slide.  It has sections that look like this, which I'm sure you are familiar with...
                                            <objectnode classname="slideroles.basic.RootRoleImpl" uri="/users/root">
                                                <revision>
                                                    <property name="password">root</property>
                                                </revision>
                                            </objectnode>
                                            <objectnode classname="slideroles.basic.RootRoleImpl" uri="/users/john">
                                                <revision>
                                                    <property name="password">john</property>
                                                </revision>
                                            </objectnode>
 
 
After restarting the Tomcat server, I still cannot login as anybody except tomcat/tomcat.  All other logins fail to work, even the basic role1/tomcat and both/tomcat that come with the system.  And when I do log in as tomcat/tomcat, it tells me I am not allowed to view the page. 
                                "15 Mar 2001 14:30:30 - WARNING - Access denied on / by user tomcat for action /actions/read"
 
I would like to be able to log in as john or root.  I would also like to be able to see the URL once I log in.  Could you tell me what I am missing here?, or what else I need to do to get this stuff working? 
Thanks very much for you help,
Tom
                                              
                                      

Reply via email to