[Zope] How do I force authentication?

Anton A. Zotov futurb@nh.km.ua
Fri, 23 Mar 2001 18:00:53 +0200


Hello !
I've encountered similar problem a couple of weeks ago - I'm also building a
site to be administered by non-technical people so far :-)
So, the problem of your approach is that a user defined in lower acl_users
folders CAN NOT access objects, located in top-level folders (if they are
not viewable by Anonymous users). If you try to reach them Zope tries to
authenticate you automatically.
My solution is as follows:
I created product in which I put all my administrative ZClasses & methods.
Now, when I create new subfolder with new local admins defined in local
acl_users I simply put an instance of my  administrative class in that
folder. It works pretty well for the time being. Of course, all
permissions/roles/etc should be set in right way.
Hope that will be useful advice for you :-)

Anton.


----- Original Message -----
From: "Jérôme Loisel" <jerome@levinux.org>
To: <zope@zope.org>
Sent: Friday, March 23, 2001 1:49 AM
Subject: [Zope] How do I force authentication?


>
> Hello!
>
> I am building a few Zope websites. These sites live as subfolders of my
root
> zope install, in which I place common code. Those websites will be
> administered by non-technical people, so one of my main coding efforts is
> building alternate, easy-to-use admin screens.
>
> I have one snag now. I want a login page which has Zope authenticate
> visitors. I don't want to take them to the real admin screens, I just want
to
> have Zope authenticate them. I initially did this by writing a simple DTML
> method, login.html, which is not viewable by anyone with a role other than
> anonymous. That worked fine for a while.
>
> That approach fails, however, when the user if defined in an acl_users
folder
> which is lower in the object hierarchy than the login.html method. And
that
> is the case for all my sub-site admins.
>
> I have gone around this so far by copying login.html to all subsites...
But I
> am sure there is a better solution. Can anyone point me in the right
> direction? Thanks for listening.
>
> Cheers,
>
> Jérôme Loisel
>
>
> --
> Jérôme Loisel
> Lévinux: GNU/Linux dans les communautés à Lévis
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>