[Zope] sync Zope userids with Apache userids?
Michel Pelletier
michel@digicool.com
Fri, 05 Feb 1999 09:47:40 -0500
Patrick Diamond wrote:
> Hi
>
> Currently I have an apache server which has an authentication database
> containing some 50,000+ userids with associated groups. My question is how
> do I best (in this case quickest) enable Zope, which is connecting thru the
> apache server, to use these userids. The userids are stored in a mysql DB,
> using this DB directly would be great but copying it into Zope regularly
> would be fine. Any ideas?
>
Zope doesn't need to do authentication if the web server does. In a nutshell,
if your web server *doesn't* authenticate then Zope will, using the
HTTP_AUTHORIZATION env variable to pass the HTTP Authorization
Header in from the client. If your web server *does* authenticate, it should
pass in the REMOTE_USER env variable, which Zope will use as the user
name. This user must be able to access the requested object by being in
a User Folder.
I think what you want is to not have to copy the redundant information from
the database into User Folders. What you can do there is use the UserDb
Product to make UserDb folders, which act like User Folders except they
authenticate off of an SQL database. Note that this is in Prereleases because
we haven't documented it yet. Other than that it is stable.
http://www.zope.org/Download/Prereleases/UserDB/UserDb-1.1.0-all.tar.gz
-Michel
> Thanks
> Patrick Diamond
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope