question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TLS connection is not started even if `LDAP_AUTH_USE_TLS = True`

See original GitHub issue

After recently having problems while logging in I traced the problem back to changes introduced in version v0.15.0. While debugging it seems that the TLS connection is never started (at least in my environment) and the relevant code was removed in https://github.com/etianen/django-python3-ldap/commit/98b41250d4a925c55aa425a7ec5592e1b3352b4b#diff-27f3dc77469aa232297b4418ae9cbe0cb6fc9f58b5b5be8e32a017a323e0d78cL183-L185. The bind is then refused by the server.

I’m not sure if the idea was that the TLS connection should be started automatically, but after reading ldap3 documentation I think it is only started automatically if the correct auto_bind parameter is specified on the Connection object which doesn’t apply in this case.

If I revert the changes mentioned above it all works again as expected. Maybe someone can confirm this. Thanks.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
etianencommented, Aug 6, 2022

Released as 0.15.3

1reaction
etianencommented, Aug 6, 2022

I’ve merged #248 , on the basis you sound like you’ve looked into this ❤️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transport Layer Security (TLS) connections might fail or ...
Transport Layer Security (TLS) connections might fail or timeout when connecting or attempting a resumption.
Read more >
Rehash: How to Fix the SSL/TLS Handshake Failed Error
The TLS Handshake Failed error can originate from the client or the server, here's a guide for fixing the problem for both users...
Read more >
SSL and TLS — ldap3 2.9.1 documentation - Read the Docs
To start a TLS connection on an already created _clear connection: ... IF you don't use a specific Tls object and set use_ssl=True...
Read more >
Could not establish trust relationship for SSL/TLS secure ...
I have a simple web service call, generated by a .NET (C#) 2.0 Windows app, via the web service proxy generated by Visual...
Read more >
How to Resolve SSL/TLS Issues in Visual Studio 2017
This guide provides one approach to resolving SSL/TLS connection problems experienced when running ASP.NET web projects using the IIS ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found