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.

[BUG] Connection is failing

See original GitHub issue

With LDAP_AUTH_USE_TLS=True, LDAP connection is failing with django-python3-ldap==0.15.0:

File "/app/venv/lib/python3.8/site-packages/django_python3_ldap/ldap.py", line 182, in connection
    c = ldap3.Connection(
TypeError: __init__() got an unexpected keyword argument 'tls'

It seems to be originating here: https://github.com/etianen/django-python3-ldap/blob/master/django_python3_ldap/ldap.py#L178

When I examined ldap3 library I indeed didn’t find any tls argument in ldap3.Connection. It’s quite weird that it passed the tests at all.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
etianencommented, Jun 25, 2022

Merged and released as 0.15.1.

Thanks for the quick spot and bugfix everyone!

On Fri, 24 Jun 2022 at 22:28, Jon Beilke @.***> wrote:

+1 the fix in #246 https://github.com/etianen/django-python3-ldap/pull/246 resolved the tls connection issue for me

@etianen https://github.com/etianen could we get this fix merged and a new release?

— Reply to this email directly, view it on GitHub https://github.com/etianen/django-python3-ldap/issues/245#issuecomment-1165954169, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEKCFLAKQBJFNPDVX65OLVQYSAVANCNFSM5YUQUSGQ . You are receiving this because you were mentioned.Message ID: @.***>

1reaction
stinovlascommented, Jun 23, 2022

@FlipperPA The fix in this branch works for my usecase 👍. I also checked the code diff, LGTM 🙂.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FIX: A connection failure may be reported even though the ...
Fixes a problem where a connection failure is reported when you use the ADO.NET 2.0 SqlConnection object to connect to a database server...
Read more >
Fix connection errors - Google Chrome Help
Fix most connection errors. If you go to a website and get an error, try these troubleshooting steps first: Check the web address...
Read more >
How to Fix a Connection Failed Error in Multiplayer Stardew ...
One common cause for the “Connection Failed” error is either a lack of signal strength from the user's Wi-Fi or a communication issue...
Read more >
How to Fix Connection Failed With Error 651 - Lifewire
Test the connection on another device. · Try a different connection. · Check for loose cables. · Reboot the modem and router. ·...
Read more >
How To Fix The "Error Establishing a Database Connection" in ...
Check Your Database Login Credentials​​ The first thing to do is check to ensure your database login credentials are correct. This is by...
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