Проблемы с настройкой аутентификатора LDAP - PullRequest
0 голосов
/ 29 января 2020

Я впервые работаю с JupyterHub, и мне нужно использовать LDAPAuthenticator. Я пытаюсь настроить аутентификатор безуспешно = / Я уже следил за многими учебниками и форумами от StackOverflow, и у меня все еще есть проблемы ...

Вот что у меня есть в jupyterhub_config.py:

c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator' 

c.LDAPAuthenticator.server_address = 'xxx.xxx.xxx.xxx' 

c.LDAPAuthenticator.bind_dn_template = ['cn={username},dc=domain,dc=com']

c.LDAPAuthenticator.lookup_dn = True 

c.LDAPAuthenticator.lookup_dn_search_filter = '({login_attr}={login})' 

c.LDAPAuthenticator.lookup_dn_user_dn_attribute = 'cn' 

c.LDAPAuthenticator.user_search_base = 'dc=domain,dc=com' 

c.LDAPAuthenticator.attributes = ["uid", "cn", "mail", "ou", "o"] 

c.LDAPAuthenticator.user_attribute = 'sAMAccountName' 

c.LDAPAuthenticator.valid_username_regex = '^[a-zA-Z0-9.!#$%&*+/\'=?^_`{|}~-]+' 

c.LDAPAuthenticator.use_ssl = False c.LDAPAuthenticator.server_port = 389

И сообщение пришло в docker log:

[W 2020-01-29 17:22:02.508 JupyterHub ldapauthenticator:242] username:domain\user No such user entry found when looking up with attribute sAMAccountName

[W 2020-01-29 17:22:02.509 JupyterHub base:504] Failed login for domain\user

[I 2020-01-29 17:22:02.512 JupyterHub log:158] 200 POST /hub/login?next= (@10.24.4.66) 68.20ms

Кто-нибудь может помочь?

...