All three files are the same as mine except that you have
 
      <!-- Users management -->
      <!--auto-create-users>true</auto-create-users>-->
      <auto-create-users>false</auto-create-users>
 
in Domain.xml and I removed these.
 
 
I'm not sure exactly how this feature works because I am doing manual configuration and never played with it. I'd be interested to know if removing them solves your problem.
 
Peter
-----Original Message-----
From: Miguel Carvalho [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 3 April 2001 12:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Authentication!

Hi. I don�t know if you have understood me very well. What i wan�t is to set up users in tomcat for the slide client. I've done what you said me but i stell connect to tomcat and the client autmatically logs in, with the default conf. . What i'm doing wrong? I atach the files so you can help me.
 
C:\Program Files\Apache Group\jakarta-tomcat-4.0-b1\webapps\slide\WEB-INF\web.xml
C:\Program Files\Apache Group\jakarta-tomcat-4.0-b1\webapps\slide\domain.xml
C:\Program Files\Apache Group\jakarta-tomcat-4.0-b1\conf\tomcat-users.xml
 
---- Original Message -----
Sent: Monday, April 02, 2001 12:38 PM
Subject: RE: Authentication!

I've just been through this :) Authentication happens in the container (eg in Tomcat) and it has to have the right role. So... first you uncomment the security-constraint section in web.xml (remove the  !-- and the   -- at the end of the file), then you go to your tomcat config directory and edit tomcat-users.xml. There, add two extra lines:
 

  <user name="guest"   password="myguespasswordt"    roles="tomcat,guest" />
  <user name="root"    password="myrootpassword"     roles="tomcat,root" />
 
and you should get prompted for a login after restarting tomcat. You should be able to authenticate with the accounts above. For other servlet containers, you'll need to do the equivalent.
 
Peter
-----Original Message-----
From: Miguel Carvalho [mailto:[EMAIL PROTECTED]]
Sent: Monday, 2 April 2001 9:04 PM
To: [EMAIL PROTECTED]
Subject: Authentication!

Hi, i have a doubt about slide configuration files. I read that you need to make changes to web.xml and
domain.xml to get slide to give authentication. But when i read this files, i just make a change: uncoment
the comented part on web.xml. I only make this change because i'm not sure of what changes do i have to
make in domain.html to get authentication on (it is still working like default conf, letting me read but no write,
without asking for password), and how do i define users/permissions. ????
Other question is how are users authenticated? can you add new users in runtime?
 
Thanks,  maik
 

Reply via email to