Ejemplo n.º 1
0
class LDAPAuthenticator(Authenticator):

    def __init__(self, auth_server):
        Authenticator.__init__(self, auth_server)

        # test if we've got the "Use above" option
        self.queryer = LDAPDirectoryQueryer(auth_server)

    def authenticate(self, username, password):
        return self.queryer.authenticate(username, password)
Ejemplo n.º 2
0
    def __init__(self, auth_server):
        Authenticator.__init__(self, auth_server)

        # test if we've got the "Use above" option
        self.queryer = LDAPDirectoryQueryer(auth_server)