Révision 5136ce55
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/ldap/ldap_user/ldap_user.module | ||
---|---|---|
225 | 225 |
case 'ldap_user_insert_drupal_user': |
226 | 226 |
case 'ldap_user_update_drupal_user': |
227 | 227 |
case 'ldap_user_ldap_associate': |
228 |
case 'all': |
|
228 | 229 |
$attributes[$ldap_server->user_attr] = ldap_servers_set_attribute_map(@$attributes[$ldap_server->user_attr]); // array($ldap_server->user_attr, 0, NULL); |
229 | 230 |
$attributes[$ldap_server->mail_attr] = ldap_servers_set_attribute_map(@$attributes[$ldap_server->mail_attr]); |
230 | 231 |
$attributes[$ldap_server->picture_attr] = ldap_servers_set_attribute_map(@$attributes[$ldap_server->picture_attr]); |
... | ... | |
528 | 529 |
} |
529 | 530 |
$ldap_user_conf = ldap_user_conf(); |
530 | 531 |
if ($ldap_user_conf->disableAdminPasswordField == TRUE) { |
531 |
$form['account']['pass']['#required'] = FALSE; |
|
532 |
$form['account']['pass']['#disabled'] = TRUE; |
|
532 |
$form['account']['pass']['#type'] = 'value'; |
|
533 | 533 |
$form['account']['pass']['#value'] = user_password(20); |
534 |
$form['account']['pass']['#description'] = t('An LDAP setting at /admin/config/people/ldap/user has disabled the password fields. Drupal will store a 20 character random password in the Drupal "users" table, and the user will login with their LDAP password.'); |
|
534 |
$form['account']['pass_disabled']['#type'] = 'fieldset'; |
|
535 |
$form['account']['pass_disabled']['#title'] = t('Password'); |
|
536 |
$form['account']['pass_disabled'][]['#markup'] = t('An LDAP setting at /admin/config/people/ldap/user has disabled the password fields. Drupal will store a 20 character random password in the Drupal "users" table, and the user will login with their LDAP password.'); |
|
535 | 537 |
} |
536 | 538 |
|
537 | 539 |
$ldap_fieldset = array(); |
Formats disponibles : Unified diff
Weekly update of contrib modules