In LDAP UI options (ldapauth module), when "Remove email field from form" is selected, the email field on the user account form is hidden, not removed. The field is still there and it's value is still submitted and written to LDAP when changing the user account password.

This can cause problems in some cases, for example if the LDAP Data bind-dn only has access to modify the password and not the email field in LDAP.

The following patch corrects the issue.

See : http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....

CommentFileSizeAuthor
#1 ldapui_ui_email_v2.diff1.08 KBlavamind
ldapauth_ui_email.diff585 byteslavamind

Comments

lavamind’s picture

StatusFileSize
new1.08 KB

After some more testing, I think #access => FALSE doesn't work as I expected. Here's a new patch that fixes the problem at a lower level, in ldapdata.

johnbarclay’s picture

Status: Active » Fixed

I committed this. Looks pretty straightforward. Without this patch some odd errors could be arise.

Status: Fixed » Closed (fixed)

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