[Zope-CVS] CVS: Products/PluggableAuthService - PluggableAuthService.py:1.22

Chris McDonough chrism at plope.com
Mon Nov 8 04:02:51 EST 2004


Update of /cvs-repository/Products/PluggableAuthService
In directory cvs.zope.org:/tmp/cvs-serv4227

Modified Files:
	PluggableAuthService.py 
Log Message:
Don't complain in the case that we don't have the user record for a user id (this is common in the case that a user from a user folder "lower" in the tree is browsing a part of the tree in which a PAS is contained).


=== Products/PluggableAuthService/PluggableAuthService.py 1.21 => 1.22 ===
--- Products/PluggableAuthService/PluggableAuthService.py:1.21	Mon Nov  8 03:13:31 2004
+++ Products/PluggableAuthService/PluggableAuthService.py	Mon Nov  8 04:02:21 2004
@@ -717,8 +717,14 @@
                     for authenticator_id, auth in authenticators:
 
                         try:
-                            user_id, name = auth.authenticateCredentials(
-                                                                credentials )
+                            uid_and_name = auth.authenticateCredentials(
+                                credentials )
+
+                            if uid_and_name is None:
+                                continue
+
+                            user_id, name = uid_and_name
+                            
                         except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
                             LOG('PluggableAuthService', WARNING,
                                 'AuthenticationPlugin %s error' %



More information about the Zope-CVS mailing list