[opencms-dev] How to allow internet access to public zone and prohibit access to private zone of my site?

Ralf Bierig ambiesense at gmx.de
Thu Oct 23 14:26:01 CEST 2003


Hi, 

you can problably use servlet filters in Tomcat. You have to write a filter
in Java, which implements the Filter interface. This filter can i.e. restrict
access to certain parts of your page to a certain IP address. You also need
to register these filter into Tomcat with an entry in web.xml. 

A password protection to certain parts of your page can be provided by
Tomcat Secury Zones. You enter another user in tomcat-users.xml

like:

<tomcat-users>
 <user name="blub" password="secret" roles="admin" />
 .... others
</tomcat-users>


and later updating your web.xml file like:

<security-constraint>
  <web-resource-collection>
    <web-resource-name>admin</web-resouce-name>
    <url-pattern>/admin/*</url-pattern>
  </web-resource-collection>
  <auth-constraint> <role-name>admin<role-name></auth-constraint>
<security-constraint>
<login-config>
  <auth-method>BASIC</auth-method>
  <realm-name>admin</realm-name>
<login-config>

Restart your server and some basic secrity will be in place :-) if you want
to access the page matching these URL pattern...

> Hello. I want to allow internet access to part of my intranet site,
> prohibiting access to certain parts wich have confidential information.
> I've
> noticed there's a guest user but i don't know how do it. Any idea or any
> documentation about this?
> Thanks.
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++




More information about the opencms-dev mailing list