mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
perf: 添加LDAPServerURL ldaps:// ldap:// 协议检测
This commit is contained in:
@@ -408,7 +408,7 @@ class LDAPTestUtil(object):
|
||||
|
||||
def _check_server_uri(self):
|
||||
if not any([self.config.server_uri.startswith('ldap://') or
|
||||
self.config.server_uri.startswith('ldap://')]):
|
||||
self.config.server_uri.startswith('ldaps://')]):
|
||||
err = _('ldap:// or ldaps:// protocol is used.')
|
||||
raise LDAPInvalidServerError(err)
|
||||
|
||||
|
Reference in New Issue
Block a user