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.

AD configuration, need help it was replying invalid user name and password

See original GitHub issue

i 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 :
jupyterhub ad

`` 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:closed
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
mannevijayakrishnacommented, Feb 7, 2019

it was just configuration error on

c.LDAPAuthenticator.lookup_dn_search_user = [’ <user base DN>']

0reactions
xmatthiascommented, Jan 9, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid Username and password error when I enable per-user ...
I enabled MFA on my local account and I followed this documentation , then I tried to login with my local account but...
Read more >
AD Integration, Invalid username or password
To access this setting: Navigate to Settings → Help Desk → Portal. Find the section for Portal Authentication and select Active Directory from ......
Read more >
Failed to Add a Domain - Invalid Username or Password
When you add an AD domain, OpUtils will try to login to the domain with the given user credential. If the login attempt...
Read more >
The Error 'Invalid Username or Password' Occurs When ...
When the P6Adapter or P6 Web Services is configured for LDAP Authentication, one of the following errors occur when testing the P6 Provider ......
Read more >
Error: "Invalid Username and/or Password" on the Foglight ...
After configuring the Foglight Management Server to use AD/LDAP to authenticate a user, the AD/LDAP user cannot log in to the Foglight Console, ......
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