django-auth-ldap: Upgrade to 1.2.15.

In 1.2.15 version of django-auth-ldap, the authenticate() function of
LDAPBackend takes username and password as keyword arguments. This
commit updates the code to match this change.

Fixes #6588
This commit is contained in:
Umair Khan
2017-10-02 10:24:25 +05:00
committed by Tim Abbott
parent c5b7e3f1ab
commit 4ed182ef44
4 changed files with 6 additions and 4 deletions

View File

@@ -426,7 +426,9 @@ class ZulipLDAPAuthBackend(ZulipLDAPAuthBackendBase):
try:
self._realm = get_realm(realm_subdomain)
username = self.django_to_ldap_username(username)
user_profile = ZulipLDAPAuthBackendBase.authenticate(self, username, password)
user_profile = ZulipLDAPAuthBackendBase.authenticate(self,
username=username,
password=password)
if user_profile is None:
return None
if not check_subdomain(realm_subdomain, user_profile.realm.subdomain):