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.

Where default LDAP password should be added

See original GitHub issue

I have LDAP setup to use credentials before do any query. So i saw in alerta v7.2.4 code there is no way to specify LDAP auth credentials, only for users if they are found.

Should I specify auth credentials on ldap.conf file?

Right now I have issue:

=> LDAPError - INVALID_CREDENTIALS: {'desc': 'Invalid credentials'}

I suppose this is because before do any query in LDAP this can not authenticate to LDAP server.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wmariusscommented, Sep 26, 2019

I came with an update for anyone who want to use alerta with LDAP (openldap). Of course there is no issue with 7.2.4 version, it’s just using the simple bind with does not need any extra authorization like “ServiceAccount”, a layer before doing a query for existing users on the LDAP server. And to be honest i like this approach, it’s simple and easily. All i had to do is:

LDAP_URL = "ldaps://x.x.x.x:636"
LDAP_DOMAINS = {
    'domain.net': 'cn=%s,ou=Users,dc=domain,dc=net'
}
1reaction
wmariusscommented, Sep 25, 2019

Ok, I will close the issue for now. I will take a look to python-ldap lib how it works and then i will open PR with the changes needed. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring the Default LDAP Password Policy - Apigee Docs
Default LDAP Password Policy Attributes ; pwdInHistory. Maximum number of used, or past, passwords for a user that will be stored in the...
Read more >
What is the default LDAP password or how do i reset it?What ...
What is the default LDAP password or how do i reset it? I don't believe i've ever set one.
Read more >
How To Change Account Passwords on an OpenLDAP Server
First, you will have to find the RootDN account and the current RootDN password hash. This is available in the special cn=config configuration...
Read more >
How do I define a password policy in LDAP?
This allows the directory server to handle hashing instead of the client. The password hash to use for new passwords must be one...
Read more >
2.4. LDAP Authentication
LDAP authentication enables users to log in to SGD if they have an entry in an LDAP directory. This authentication mechanism is disabled...
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