Skip to content

Commit 6cca4b8

Browse files
authored
Merge pull request #61 from jupyter-on-openshift/master
Don't force TLS bind if not using SSL.
2 parents 1bb93f3 + d2f9ea0 commit 6cca4b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ldapauthenticator/ldapauthenticator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def getConnection(userdn, username, password):
281281
server,
282282
user=self.escape_userdn_if_needed(userdn),
283283
password=password,
284-
auto_bind=ldap3.AUTO_BIND_TLS_BEFORE_BIND,
284+
auto_bind=self.use_ssl and ldap3.AUTO_BIND_TLS_BEFORE_BIND or ldap3.AUTO_BIND_NO_TLS,
285285
)
286286
return conn
287287

0 commit comments

Comments
 (0)