mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	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:
		@@ -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):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user