Logo Search packages:      
Sourcecode: zope-ldapmultiplugins version File versions  Download package

def LDAPMultiPlugins::LDAPPluginBase::LDAPPluginBase::authenticateCredentials (   self,
  credentials 
)

Fulfill AuthenticationPlugin requirements 

Definition at line 64 of file LDAPPluginBase.py.

00064                                                   :
        """ Fulfill AuthenticationPlugin requirements """
        acl = self._getLDAPUserFolder()
        login = credentials.get('login')
        password = credentials.get('password')

        if not acl or not login or not password:
            return None, None

        user = acl.getUser(login, pwd=password)

        if user is None:
            return None, None

        return (user.getId(), user.getUserName())


    security.declarePrivate('resetCredentials')
    def resetCredentials(self, request, response):


Generated by  Doxygen 1.6.0   Back to index