graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

LDAP attribute name for email addresses should be configurable

Open Binford3000 opened this issue 10 years ago • 7 comments

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 avatar Sep 14 '16 10:09 Binford3000

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?

Binford3000 avatar Oct 19 '17 07:10 Binford3000

@Binford3000 You could change it in LdapEntry#getEmail() if you really want to: https://github.com/Graylog2/graylog2-server/blob/9f2c6ef5c1c0f8b77e73d1298d57c7223087eedf/graylog2-server/src/main/java/org/graylog2/shared/security/ldap/LdapEntry.java#L72-L78

joschi avatar Oct 19 '17 09:10 joschi

@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?

Binford3000 avatar Oct 19 '17 13:10 Binford3000

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

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

joschi avatar Oct 19 '17 13:10 joschi

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

Binford3000 avatar May 29 '18 14:05 Binford3000

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. :-(

NOC-HSLU avatar Jul 26 '18 07:07 NOC-HSLU

Any news on this?

HenryTheSir avatar Oct 07 '20 12:10 HenryTheSir