Hi,

On Authentication tab setting, if you set email update to :

  • Update stored email if LDAP email differs at login and notify user.

And DO NOT check

  • Ignore the Email Update settings and never update the stored email if the template is used.

In the LoginValidator class, this option is evaluate to true (!false). Here is a patch to fix this.

Regards.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mogtofu33 created an issue. See original summary.

  • grahl committed 806e117 on 8.x-3.x authored by mogtofu33
    Issue #2871293 by mogtofu33: LDAP Authentication: Email update settings...
grahl’s picture

Status: Needs review » Fixed

Hi mogtofu33

Thanks for your patch!

I'm committing this as-is since it's clearly the intended behavior. Looking over that section it's clear to me that the convoluted logic between "email update" and "email template" is not ideal but I don't see an easy and quick way to patch that. Might just need to cover that with unit tests...patches welcome.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.