AD configuration, need help it was replying invalid user name and password
See original GitHub issuei hae give a multiple ways to configure but i am still getting the responce is invalid username and passwd can some one please help me.
os: redhat APP: jupyter hub LDAP : AD(active directory
responce :
`` c.JupyterHub.authenticator_class = ‘ldapauthenticator.LDAPAuthenticator’ c.LDAPAuthenticator.server_address = ‘AD ip address’ c.LDAPAuthenticator.server_port = 389
c.MyAuthenticator.bind_dn_template = [‘cn={username},dc=example ,dc=local’]
c.LDAPAuthenticator.lookup_dn = True c.LDAPAuthenticator.user_search_base = ‘dc=example,dc=local’ c.LDAPAuthenticator.user_attribute = ‘sAMAccountName’ c.LDAPAuthenticator.lookup_dn_search_user = ‘LDAP@example.local’ c.LDAPAuthenticator.lookup_dn_search_password = ‘*****************’ c.LDAPAuthenticator.lookup_dn_user_dn_attribute = ‘cn’ c.LDAPAuthenticator.use_ssl = False c.LDAPAuthenticator.lookup_dn_search_filter = ‘({login_attr}={login})’ c.LDAPAuthenticator.escape_userdn = False #c.LDAPAuthenticator.valid_username_regex = ‘^[A-Za-z][.A-Za-z0-9_-]*$’
Issue Analytics
- State:
- Created 5 years ago
- Comments:11
Top GitHub Comments
it was just configuration error on
c.LDAPAuthenticator.lookup_dn_search_user = [’ <user base DN>']
well, for me it’s
c.LDAPAuthenticator.lookup_dn_search_user = os.environ["LDAP_USER"]
…I’m in a Windows AD Environment, so LDAP_USER is set as environment variable to the CN (e.g.
export LDAP_USER=CN=JupyterHelper,DC=contoso,DC=com
Obviously, you also need to set
c.LDAPAuthenticator.lookup_dn_search_password = os.environ["LDAP_PASSWORD"]
- to the corresponding password of that user.