[Zope] How to set-up authentication of pages
Chris McDonough
chrism@digicool.com
Tue, 30 Nov 1999 11:41:34 -0500
Andres,
There is a Zope Product named UserDB that allows you to authenticate
users from a SQL datastore (http://www.zope.org/Members/otto/userdb)...
additionally, Stuart 'Zen' Bishop has released Generic User Folder (a
howto is available at http://www.zope.org/Members/hippy/GUF_SQL_crypt)
which appears to do the same thing.
Insted of relying on apache modules to read and write user info, try one
of these.
Chris McDonough
Digital Creations, Inc.
Zope - http://www.zope.org
> -----Original Message-----
> From: Andres Corrada [mailto:andres@corrada.com]
> Sent: Tuesday, November 30, 1999 10:17 AM
> To: zope@zope.org
> Subject: Re: [Zope] How to set-up authentication of pages
>
>
> Michel Pelletier wrote:
> >
> > I think it would be much easier for you if you got rid of
> mod_auth_mysql
> > and let Zope handle all the authentication.
> >
> > Descriptions of Users, Permissions, and Roles can be found in the
> > documentation section of the Zope site in the Zope Content Manager's
> > Guide.
>
> Thanks Michel and Chris for your answers. I'm new to Zope and I
> foolhardily put into a project I had to deliver two weeks ago. The
> extensive learning process in Zope is making it hard for me to decide
> how to get around problems I encounter. I've read the
> documentation but
> it doesn't solve my problem because I want an automatic way of adding
> members to a client's site. I know how to do that with mod_auth_mysql
> because I can write the Python script that adds form
> information to the
> mysql database. What Zope functions can I call from my scripts to do
> this addition to the Zope users database? The ZCMG only has "hand
> insertion" of users into Zope.
>
> By the way, I partly suceeded in doing authentication with
> mod_auth_mysql by having the following lines in my virtual host
> directive:
>
> RewriteCond %{HTTP:Authorization} ^/(.*)
> RewriteRule ^/(.*) /path/to/my/Zope/directory/Zope.cgi/$1
> [e=HTTP_CGI_AUTHORIZATION:%1,
> t=application/x-httpd-cgi,l]
> <Location ~ ".*/Members">
> AuthType Basic
> .
> .
> .
> </Location>
>
> When I try to access the members page I get an authentication query by
> Apache but Zope immediately asks for authentication also,
> whereupon I'm
> rudely told that a Zope error has ocurred. Why the double
> authentication? Why is Zope requiring authentication?
>
> ------------------------------------------------------
> Andres Corrada-Emmanuel Email: andres@corrada.com
> Owner http://www.corrada.com/mamey
> Mamey Phone: (413) 587-9595
> ------------------------------------------------------
>
> _______________________________________________
> 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 )
>