Skip to content

Commit

Permalink
add startTLS check
Browse files Browse the repository at this point in the history
  • Loading branch information
inancdokurel committed Apr 11, 2023
1 parent fc3890d commit 6f714a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/net/researchgate/azkaban/LdapUserManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,9 @@ private LdapConnection getLdapConnection() throws LdapException {
config.setUseSsl(useSsl);
config.setTrustManagers(keystoreTrustManager);
LdapNetworkConnection connection = new LdapNetworkConnection(config);
connection.startTls();
if (startTLS){
connection.startTls();
}
connection.bind(ldapBindAccount, ldapBindPassword);
return connection;
}
Expand Down

0 comments on commit 6f714a2

Please sign in to comment.