We are using the ldapauth and ldapdata modules to sync ldap and drupal account data for access to our internal resources. This is working very well for us and I thank you for a great set of tools to get drupal working with ldap.

The problem that has come up is that we cannot change the admin email address. I have traced the cause to an ldapauth setting in the LDAP UI Options fieldset. We do not allow users to change their email and thus have selected 'Remove email field from form'. The problem lies in the user hook, update operation. the $edit['mail'] variable is unset without a check for $user->uid or $account->ldap_authentified.

Thanks again for your work on this great suite of modules!

Comments

cap60552’s picture

This also seems to affect users aside from Admin that are NOT authenticated via LDAP. We have a dual authentication system in place where users can be authenticated by LDAP or via another system. This option prevents the user_save command from saving any change at all to the users email address. This means that the 2nd authentication system was unable to populate the users 'mail' field as well.

johnbarclay’s picture

Status: Active » Closed (fixed)

this is fixed with another issue. Uncheck hide password and email user interface and this should be fine.

abhisec’s picture

Hi,
Where do we uncheck this? Is there a option? I cannot change admin email address as well.