refactor: 判断是否是ldaps不区分大小写
This commit is contained in:
parent
e09e04c9ec
commit
f1f4cc334c
|
@ -147,7 +147,7 @@ public class LdapService {
|
||||||
|
|
||||||
String credentials = EncryptUtils.aesDecrypt(password).toString();
|
String credentials = EncryptUtils.aesDecrypt(password).toString();
|
||||||
LdapContextSource sourceLdapCtx;
|
LdapContextSource sourceLdapCtx;
|
||||||
if (StringUtils.startsWith(url, "ldaps://")) {
|
if (StringUtils.startsWithIgnoreCase(url, "ldaps://")) {
|
||||||
sourceLdapCtx = new SSLLdapContextSource();
|
sourceLdapCtx = new SSLLdapContextSource();
|
||||||
// todo 这里加上strategy 会报错
|
// todo 这里加上strategy 会报错
|
||||||
// DefaultTlsDirContextAuthenticationStrategy strategy = new DefaultTlsDirContextAuthenticationStrategy();
|
// DefaultTlsDirContextAuthenticationStrategy strategy = new DefaultTlsDirContextAuthenticationStrategy();
|
||||||
|
|
Loading…
Reference in New Issue