fix #1052 add SECURITY_PROTOCOL
This commit is contained in:
parent
2c46ee7fc3
commit
9fe3c068af
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ public class LdapManager {
|
|||
env.put(Context.PROVIDER_URL, providerUrl);
|
||||
env.put(Context.SECURITY_PRINCIPAL, principal);
|
||||
env.put(Context.SECURITY_CREDENTIALS, credntials);
|
||||
if (providerUrl != null && providerUrl.startsWith("ldaps://")) {
|
||||
env.put(Context.SECURITY_PROTOCOL, "ssl");
|
||||
}
|
||||
return env;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue