IAuthenticationPlugin wants None and not None, None

Bug #751247 reported by SauZheR
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Products.LDAPMultiPlugins
Fix Released
Medium
Unassigned

Bug Description

I found that your implementation of autenticateCredentials returns None, None instead of None as pretended by IAutenticationPlugin.

 def authenticateCredentials( credentials ):

        """ credentials -> (userid, login)

        o 'credentials' will be a mapping, as returned by IExtractionPlugin.

        o Return a tuple consisting of user ID (which may be different
          from the login name) and login

        o If the credentials cannot be authenticated, return None.
        """
That yield PAS (PlonePas-4.0.6/gruf_support.py line 39) to understand as FOUND user when testing authenticateCredentials for each autenticator in the stack.

Why does not it returns simply None when user isn't in that ldap plugin?

Revision history for this message
Jens Vagelpohl (dataflake-deactivatedaccount-deactivatedaccount) wrote :

Thanks for the bug report. The issue has been fixed and a new version, 1.14, is now available on PyPI.

Changed in products.ldapmultiplugins:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Jens Vagelpohl (dataflake)
Changed in products.ldapmultiplugins:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.