Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP attribute name for email addresses should be configurable #2826

Open
Binford3000 opened this issue Sep 14, 2016 · 7 comments
Open

LDAP attribute name for email addresses should be configurable #2826

Binford3000 opened this issue Sep 14, 2016 · 7 comments

Comments

@Binford3000
Copy link

Binford3000 commented Sep 14, 2016

Expected Behavior

The email addresses in our LDAP are not stored in the standard field "mail". So my users will have not the correct addresses in their profiles. It would be great to set the name of the mail attribute in the LDAP config like it is working for the display name.

Current Behavior

Mail addresses must be in the "mail" attribute.

Possible Solution

Make the attribute name a configurable parameter.

Your Environment

  • Graylog Version: 2.1
  • Elasticsearch Version: 2.4
  • MongoDB Version: 2.0.6
  • Operating System: Debian 8
@Binford3000
Copy link
Author

Any ideas how to use Graylog email alerts if the email attribute is called "finalMailAddress" instead of "mail"? Is it possible to change this manually in the code?

@joschi
Copy link
Contributor

joschi commented Oct 19, 2017

@Binford3000 You could change it in LdapEntry#getEmail() if you really want to:

public String getEmail() {
String email = get("mail");
if (email == null) {
email = get("rfc822Mailbox");
}
return email;
}

@Binford3000
Copy link
Author

Binford3000 commented Oct 19, 2017

@joschi Ok, thank you for your help! But I have no idea where to change it. I am not a developer. Thought it would be somewhere in a plain text file. I think I cannot change this in my running installations, right?

@joschi
Copy link
Contributor

joschi commented Oct 19, 2017

I think I cannot change this in my running installations, right?

Correct, you would have to build Graylog yourself for this change.

@Binford3000
Copy link
Author

Binford3000 commented May 29, 2018

Any news on this topic? We still cannot use email notification because all users have @localhost as email domain. Current Version 2.4.5.

@NOC-HSLU
Copy link

In 2.4.6 the behavior is still the same. If you want to send email alerts you must select local accounts as 'user receivers' or set some hard-coded 'e-mail receivers' in the alert configuration.
We were forced to add all power users as local accounts and use LDAP only for guest accounts. :-(

@HenryTheSir
Copy link

Any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants