refactor: 判断是否是ldaps不区分大小写

This commit is contained in:
Captain.B 2020-10-30 15:58:29 +08:00
parent e09e04c9ec
commit f1f4cc334c
1 changed files with 1 additions and 1 deletions

View File

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