[Zope] Password screens

Michel Pelletier michel@digicool.com
Wed, 7 Jul 1999 12:44:48 -0400


> -----Original Message-----
> From: CURTIS David [mailto:David.Curtis@state.or.us]
> Sent: Wednesday, July 07, 1999 10:49 AM
> To: zope@zope.org
> Subject: [Zope] Password screens
> 
> 
> Friends of Zope,
> 
> I am needing a password screen so that certain users who can 
> edit a database can "log-in" to Zope and others do not.  Has 
> anyone done this?  If so how does one achieve this?  Can Zope 
> use CGI-BIN  or SSI includes scripts/programs as the password 
> screens.  My system is Redhat Linux 6.0/mysql 3.22/zope 1.10..3
> Also,  Zope seems to be slow(at times) when accessing records 
> on mysql.  Are there any performance tricks that can be utilized?
> Thanks in advance for any help!
> 

Do you mean a form that autenticates the user?  Zope uses HTTP basic
authentication, which is what pops up the dialog box.  Any other method
you want to use (cookies, form variables being passed around) you'd have
to roll your own.  Note that UserDB does cookie auth as well as basic.

As for the mysql issue, I suspect the bottleneck is purely a MySQL thing
if Zope doesn't behave that way all the time.  Note that even though you
may be running Zope in threaded mode, the MySQL client library for
python (which we did not write and do not support) is not thread safe,
so you should NOT run Zope 2.0 with more than one thread if you want to
use MySQL.  Someone may want to patch the MySQLDA so that the whole
thing is wrapped in a lock, or serializes requests before the client
library is entered.  Either way, given that no one is paying us to do
it, we probably won't.

-Michel

> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>