LDAPBindError with 500 Internal Server Error

issue description

ldaps can’t compelte the authentication authentication

Expected behaviour

it should be work for ldaps with 636

Actual behaviour

report the error : ldaps can’t work well with 500 : Internal Server Error

How to reproduce

cat config.yaml
proxy:
secretToken: “3e509ff954695071cc83ec897391fbcf988f063cbcf60ea573b0512b9511b9d5”
auth:
type: ldap
ldap:
server:
address: ldaps://ldap.opulan.com
dn:
lookup: true
ssl: false
search:
user: ‘shldapreader’
password: ‘Ldap-SH-!!’
templates:

  • ‘uid=shldapreader,ou=people,dc=opulan,dc=com’
    user:
    searchBase: ‘ou=people,dc=opulan,dc=com’
    escape: False
    attribute: ‘sAMAccountName’
    dnAttribute: ‘cn’
    allowedGroups:
  • ‘cn=cn=china.sw.ec,ou=groups,dc=opulan,dc=com’

See error
Loading /etc/jupyterhub/secret/values.yaml
[I 2020-10-24 03:33:51.782 JupyterHub app:2240] Running JupyterHub version 1.1.0
[I 2020-10-24 03:33:51.782 JupyterHub app:2271] Using Authenticator: ldapauthenticator.ldapauthenticator.LDAPAuthenticator-1.3.0
[I 2020-10-24 03:33:51.782 JupyterHub app:2271] Using Spawner: kubespawner.spawner.KubeSpawner
[I 2020-10-24 03:33:51.782 JupyterHub app:2271] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-1.1.0
[I 2020-10-24 03:33:51.783 JupyterHub app:1349] Loading cookie_secret from /srv/jupyterhub/jupyterhub_cookie_secret
[W 2020-10-24 03:33:51.817 JupyterHub app:1579] JupyterHub.hub_connect_port is deprecated as of 0.9. Use JupyterHub.hub_connect_url to fully specify the URL for connecting to the Hub.
[W 2020-10-24 03:33:51.818 JupyterHub app:1624] No admin users, admin interface will be unavailable.
[W 2020-10-24 03:33:51.818 JupyterHub app:1626] Add any administrative users to c.Authenticator.admin_users in config.
[I 2020-10-24 03:33:51.819 JupyterHub app:1655] Not using whitelist. Any authenticated user will be allowed.

  File "/usr/local/lib/python3.6/dist-packages/ldap3/core/connection.py", line 384, in do_auto_bind
    raise LDAPBindError(self.last_error)
ldap3.core.exceptions.LDAPBindError: None

[E 2020-10-24 03:47:28.416 JupyterHub log:174] 500 POST /hub/login?next= (@10.231.213.112) 741.74ms

Your personal set up

  • OS:
    ubuntu
  • Version:
    18.04
  • Configuration: