mirror of https://github.com/jumpserver/jumpserver
perf: 添加LDAPServerURL ldaps:// ldap:// 协议检测
parent
4230da0fd9
commit
938255df6f
|
@ -408,7 +408,7 @@ class LDAPTestUtil(object):
|
||||||
|
|
||||||
def _check_server_uri(self):
|
def _check_server_uri(self):
|
||||||
if not any([self.config.server_uri.startswith('ldap://') or
|
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.')
|
err = _('ldap:// or ldaps:// protocol is used.')
|
||||||
raise LDAPInvalidServerError(err)
|
raise LDAPInvalidServerError(err)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue