diff --git a/backend/src/main/java/io/metersphere/ldap/service/LdapService.java b/backend/src/main/java/io/metersphere/ldap/service/LdapService.java index 44aa6bc84a..a735e3122d 100644 --- a/backend/src/main/java/io/metersphere/ldap/service/LdapService.java +++ b/backend/src/main/java/io/metersphere/ldap/service/LdapService.java @@ -147,7 +147,7 @@ public class LdapService { String credentials = EncryptUtils.aesDecrypt(password).toString(); LdapContextSource sourceLdapCtx; - if (StringUtils.startsWith(url, "ldaps://")) { + if (StringUtils.startsWithIgnoreCase(url, "ldaps://")) { sourceLdapCtx = new SSLLdapContextSource(); // todo 这里加上strategy 会报错 // DefaultTlsDirContextAuthenticationStrategy strategy = new DefaultTlsDirContextAuthenticationStrategy();