We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d91f61c commit c4a8817Copy full SHA for c4a8817
django_python3_ldap/ldap.py
@@ -202,6 +202,9 @@ def connection(**kwargs):
202
return
203
# Configure.
204
try:
205
+ # Start TLS, if requested.
206
+ if settings.LDAP_AUTH_USE_TLS:
207
+ c.start_tls(read_server_info=False)
208
# Perform initial authentication bind.
209
c.bind(read_server_info=True)
210
# If the settings specify an alternative username and password for querying, rebind as that.
0 commit comments