Skip to content

Commit

Permalink
Add TLS on LDAP connections
Browse files Browse the repository at this point in the history
  • Loading branch information
elg committed Jun 21, 2021
1 parent 6587499 commit c33cc1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions passhportd/app/views_mod/user/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def try_ldap_login(login, password):
# 2. Try to bind the user to the LDAP
c = Connection(s, user = uid , password = password, auto_bind = True)
c.open()
c.start_tls()
c.bind()
result = c.result["description"] # "success" if bind is ok
c.unbind()
Expand Down

0 comments on commit c33cc1a

Please sign in to comment.