Hi there.
First of all thank you all for this wonderful module: it helped me in configuring authentication over my domain very easily.
Now the question...
I configure ldapdata to retrieve some attributes from the AD, but, on Drupal profile configuration, users have also some fields "drupal only".
I wonder how can I force fields retrived from AD to be disabled for editing in the user profile edit form, while leaving "drupal only" fields editable (both for normal users and for administrators, because AD is authoritative for ldapdata mapped fields in Drupal).
By now I hard coded some lines in ldapauth.module (function ldapauth_form_alter), like the one below
$form['personal']['profile_mobile']['#attributes']['READONLY'] = 'READONLY';
but I prefer a more elegant solution, if you can help!
Thank you in advance.
Lem

Comments

lemminkainen’s picture

I forgot some info: my installation is with last dev of ldapauth on drupal 6.3

miglius’s picture

Are you mapping LDAP attributes with the drupal profile fields? If you are, then changes to the profile data will trigger the corresponding change in the LDAP attribute.

If you are not mapping the LDAP attributes to the profile, then there is a "Attribute Visibility & Access Control" section under ldapdata configuration which controls which LDAP attributes are readable/writable.

johnbarclay’s picture

Category: feature » support
Status: Active » Closed (fixed)