[Update] LDAP 测试连接性也使用分页配置

pull/3289/head
BaiJiangJie 5 years ago
parent 25fcbf37c3
commit e4ecb19e38

@ -26,6 +26,8 @@ class LDAPUtil:
password=None, use_ssl=None, search_ougroup=None,
search_filter=None, attr_map=None, auth_ldap=None):
# config
self.paged_size = settings.AUTH_LDAP_SEARCH_PAGED_SIZE
if use_settings_config:
self._load_config_from_settings()
else:
@ -47,7 +49,6 @@ class LDAPUtil:
self.search_filter = settings.AUTH_LDAP_SEARCH_FILTER
self.attr_map = settings.AUTH_LDAP_USER_ATTR_MAP
self.auth_ldap = settings.AUTH_LDAP
self.paged_size = settings.AUTH_LDAP_SEARCH_PAGED_SIZE
@property
def connection(self):

Loading…
Cancel
Save