perf: 添加LDAPServerURL ldaps:// ldap:// 协议检测

pull/6531/head
Bai 2021-07-23 14:48:40 +08:00 committed by Jiangjie.Bai
parent 4230da0fd9
commit 938255df6f
1 changed files with 1 additions and 1 deletions

View File

@ -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)