Skip to content

Commit

Permalink
Merge pull request #248 from githubuserx/patch-1
Browse files Browse the repository at this point in the history
Partially revert changes from 98b4125
  • Loading branch information
etianen authored Aug 6, 2022
2 parents d91f61c + c4a8817 commit f789d64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django_python3_ldap/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ def connection(**kwargs):
return
# Configure.
try:
# Start TLS, if requested.
if settings.LDAP_AUTH_USE_TLS:
c.start_tls(read_server_info=False)
# Perform initial authentication bind.
c.bind(read_server_info=True)
# If the settings specify an alternative username and password for querying, rebind as that.
Expand Down

0 comments on commit f789d64

Please sign in to comment.