Commit e4ecb19e authored by BaiJiangJie's avatar BaiJiangJie

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

parent 25fcbf37
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment