[Zope-dev] Re: Developing plugins for PluggableAuthService

Willi Langenberger wlang at wu-wien.ac.at
Fri Aug 27 15:00:05 EDT 2004


According to Lennart Regebro:
> No. Closer inspection seems to show that I actually don't get PAS to do 
> anything at all. It is simply ignored, unless I put it into the root, in 
> which case I can't do anything, since it doesn't care of emergency_user.

I also had this problem with the emergency user. Try the following patch:

-----snip-snip-------------------

$ diff -u PluggableAuthService.py.ori PluggableAuthService.py
--- PluggableAuthService.py.ori 2004-04-28 21:58:50.000000000 +0200
+++ PluggableAuthService.py     2004-07-31 23:08:22.000000000 +0200
@@ -784,7 +784,7 @@
 
         """ user_id -> decorated_user
         """
-        if user_id == self._emergency_user.getId():
+        if user_id == self._emergency_user.getUserName():
             return self._emergency_user
 
         if cache is None:

-----snip-snip-------------------

At least it worked for me.

AFAIK its already in the CVS.


\wlang{}

-- 
Willi.Langenberger at wu-wien.ac.at                Fax: +43/1/31336/9207
Zentrum fuer Informatikdienste, Wirtschaftsuniversitaet Wien, Austria


More information about the Zope-Dev mailing list