sync Zope userids with Apache userids?
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? Thanks Patrick Diamond
I am new to zope but I read somewhere that you can let apache do your authentication. Then you can use the AUTENTICATED_USER variable in zope. I don't know if you can access groups, though. Phil.
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?
----------------------------------------------------------- Philip Aylesworth mailto:purple@mnsi.net
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
At 09:47 AM 2/5/99 -0500, Michel Pelletier wrote:
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
I can't get that URL to work. Or more precisely, I can download the file but WinZip complains that the archive is invalid.
I personally have never gotten WinZip to handle anything from Zope/Bobo/etc. :( In fact I've downloaded and tried dozen+ different compression utilities (WinZip type) and tried them on Zope/Bobo/etc, all to no avail. Almost all complained about the archive being invalid. I know there is nothing wrong with the archive. I can download it to my Mac at home and stuffit expander decompresses it like a champ. I did finally download a small commandline utility called UNTGZ which handled everything that WinZip etc. couldn't. I also imagine that the cygwin utilities that I recently downloaded would handle them fine also. You can get untgz at it's home page: http://isjm.com/tst/untgz_f.htm You can also drag and drop files onto untgz or a shortcut on your desktop. The only problem I have had with this is it decompressed everything to the Windows folder. Just had to drag it out. Hope this helps. Jimmie Houchin At 10:15 AM 2/5/99 -0500, Phillip J. Eby wrote:
At 09:47 AM 2/5/99 -0500, Michel Pelletier wrote:
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
I can't get that URL to work. Or more precisely, I can download the file but WinZip complains that the archive is invalid.
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
To get zope stuff working with Winzip I've been renaming .. myZopeModule_tar.gz to myZopeModule.tgz This seems to trick Winzip into doing the right thing. (I'm on Winzip 6.3) Cheers, Andy.
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jimmie Houchin Sent: Friday, February 05, 1999 10:46 AM To: Phillip J. Eby; 'zope@zope.org' Subject: Re: [Zope] sync Zope userids with Apache userids?
I personally have never gotten WinZip to handle anything from Zope/Bobo/etc. :(
In fact I've downloaded and tried dozen+ different compression utilities (WinZip type) and tried them on Zope/Bobo/etc, all to no avail. Almost all complained about the archive being invalid.
I know there is nothing wrong with the archive. I can download it to my Mac at home and stuffit expander decompresses it like a champ.
I did finally download a small commandline utility called UNTGZ which handled everything that WinZip etc. couldn't. I also imagine that the cygwin utilities that I recently downloaded would handle them fine also.
You can get untgz at it's home page: http://isjm.com/tst/untgz_f.htm
You can also drag and drop files onto untgz or a shortcut on your desktop. The only problem I have had with this is it decompressed everything to the Windows folder. Just had to drag it out.
Hope this helps.
Jimmie Houchin
At 10:15 AM 2/5/99 -0500, Phillip J. Eby wrote:
At 09:47 AM 2/5/99 -0500, Michel Pelletier wrote:
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
I can't get that URL to work. Or more precisely, I can download the file but WinZip complains that the archive is invalid.
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
participants (6)
-
Andy Smith -
Jimmie Houchin -
Michel Pelletier -
Patrick Diamond -
Philip Aylesworth -
Phillip J. Eby