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....
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ldapui_ui_email_v2.diff | 1.08 KB | lavamind |
| ldapauth_ui_email.diff | 585 bytes | lavamind |
Comments
Comment #1
lavamind commentedAfter some more testing, I think
#access => FALSEdoesn't work as I expected. Here's a new patch that fixes the problem at a lower level, in ldapdata.Comment #2
johnbarclay commentedI committed this. Looks pretty straightforward. Without this patch some odd errors could be arise.