mirror of https://github.com/zulip/zulip.git
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:
parent
c5b7e3f1ab
commit
4ed182ef44
|
@ -55,7 +55,7 @@ defusedxml==0.5.0
|
|||
diff-match-patch==20121119
|
||||
|
||||
# Needed for LDAP support
|
||||
django-auth-ldap==1.2.12
|
||||
django-auth-ldap==1.2.15
|
||||
|
||||
# Django extension providing bitfield support
|
||||
django-bitfield==1.9.3
|
||||
|
|
|
@ -45,7 +45,7 @@ decorator==4.1.2 # via ipython, traitlets
|
|||
defusedxml==0.5.0
|
||||
dicttoxml==1.7.4 # via moto
|
||||
diff-match-patch==20121119
|
||||
django-auth-ldap==1.2.12
|
||||
django-auth-ldap==1.2.15
|
||||
django-bitfield==1.9.3
|
||||
django-pipeline==1.6.13
|
||||
django-statsd-mozilla==0.4.0
|
||||
|
|
|
@ -30,7 +30,7 @@ cssutils==1.0.2 # via premailer
|
|||
decorator==4.1.2 # via ipython, traitlets
|
||||
defusedxml==0.5.0
|
||||
diff-match-patch==20121119
|
||||
django-auth-ldap==1.2.12
|
||||
django-auth-ldap==1.2.15
|
||||
django-bitfield==1.9.3
|
||||
django-pipeline==1.6.13
|
||||
django-statsd-mozilla==0.4.0
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue