[Zope] Site Access Rules and Permissions

Evan Simpson evan@4-am.com
Mon, 13 Mar 2000 18:03:31 -0500


----- Original Message -----
From: Chris Withers <chrisw@nipltd.com>
> I have the following access rule:
>
> <dtml-if "_.has_key('virtual_host') and
REQUEST.environ['HTTP_HOST']==virtual_host">
>  <dtml-call "REQUEST.setURL(path='/')">
> </dtml-if>

> However, if I try and access any folder with this rule in it, I get
challenged for authentication
> and get 'Authorization failed' no matter what username and password I use,
including the root ones!

Access Rules are triggered before authentication can be performed, so their
permissions are nil.  If you want them to access anything other than REQUEST
(as you do) you must give them a Proxy role.

Cheers,

Evan @ digicool & 4-am