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.

Add `auto_bind` config option

See original GitHub issue

Bug description

Make ldap3 library auto_bind config settable.

Expected behaviour

Currently, if use_ssl is set to False, auto_bind becomes ldap3.AUTO_BIND_TLS_BEFORE_BIND. This means that the ldap server must support ssl or starttls. There is no way to use a ldap server which doesn’t have either. This is the case for a local LDAP server i.e runs in the same server as jupyterhub and communicates via the internal network.

Actual behaviour

Add a new config variable auto_bind to match upstream ldap3 library configuration.

I opened this as a bug because it used to because this was the behavior in 1.3.0 but it seems behavior changed because of the discussion in https://github.com/jupyterhub/ldapauthenticator/issues/171

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
gramakricommented, Sep 30, 2020

How about something like:

if self.auto_bind:
    auto_bind = self.auto_bind
else:
    auto_bind = (
        ldap3.AUTO_BIND_NO_TLS if self.use_ssl else ldap3.AUTO_BIND_TLS_BEFORE_BIND
    )
2reactions
gramakricommented, Apr 29, 2021

I somehow missed @1kastner 's comment. I will submit a PR. We use JupyterHub in the Cloudron app, so I have a test setup handy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

autoBind - API Reference - Kendo UI Grid - Documentation
Setting autoBind to false is useful when multiple widgets are bound to the same data source. Disabling automatic binding ensures that the shared...
Read more >
20.12. Enabling Different Types of Binds Red Hat Directory ...
Configuring the Autobind Feature. Enabling the Autobind feature allows only anonymous access to Directory Server. However, you can configure to map Linux users ......
Read more >
Automatic Binding of Settings Classes to Configuration
My thought was to create a NuGet package so that I could just plug it into any project, add an attribute to my...
Read more >
AutoBind = false setting is not applied when using a shared ...
Bug report Grid AutoBind(false) setting is not respected(no autoBind property is rendered in the client initialization script) if a shared ...
Read more >
auto-bind - npm
Start using auto-bind in your project by running `npm i auto-bind`. There are 628 other projects in the npm ... Install. npm i...
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