From 83299b9e8f3e8922cba5ed7ede01b0dcf27f0dcc Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 22 Jun 2017 15:31:17 +0200 Subject: [PATCH] Fixed custom authentication backend. see #1155 --- ldap-requirements.txt | 2 +- modoboa/lib/authbackends.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ldap-requirements.txt b/ldap-requirements.txt index 212b582a2..35eaac975 100644 --- a/ldap-requirements.txt +++ b/ldap-requirements.txt @@ -1 +1 @@ -django-auth-ldap +django-auth-ldap>=1.2.13 diff --git a/modoboa/lib/authbackends.py b/modoboa/lib/authbackends.py index df9894f1e..995c24272 100644 --- a/modoboa/lib/authbackends.py +++ b/modoboa/lib/authbackends.py @@ -108,7 +108,7 @@ try: def authenticate(self, username, password): if self.global_params["authentication_type"] == "ldap": return super(LDAPBackend, self).authenticate( - username, password) + username=username, password=password) return None except ImportError: