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