

def ldap_login(self, username, password):
    '\n        Authenticate a user using ldap. This will return a userdata dict\n        if successfull. \n        ldap_login will return None if the user does not exist or if the credentials are invalid \n        '
    self.connect()
    if self.config.get('USER_SEARCH'):
        result = self.bind_search(password, password)
    else:
        result = self.direct_bind(username, password)
    return result

dataset/ETHPy150Open ContinuumIO/flask-ldap-login/flask_ldap_login/__init__.py LDAPLoginManager.ldap_login/VarMisuse@40/124 `username`->`password`