I have 2 sites which are connected to one LDAP server with users on it. One is Drupal and one is Moodle. The LDAP authenification works perfectly in Moodle (but only supports MD5 and SHA) and in Drupal i've got the following Problem:

When a user changes his password at /user/(id)/edit a randomly generated password is stored in LDAP instead of the password submitted by the user. Only when the user relogs into drupal the password is updated. The user mappings from Drupal to LDAP are: Pwd: User or Random to [userPassword]

I also tried this mapping: Field: Password to [userPassword], but then the Drupal hashed Password is stored in LDAP which can not be accessed in Moodles LDAP Plugin because it only supports MD5 and SHA hashing.

I hope somebody can help me out. This Issue is really stopping me from further developing...

Comments

Freackzocker created an issue. See original summary.

Freackzocker’s picture

Issue summary: View changes

  • grahl committed d4f24e0 on 8.x-3.x
    Issue #2875751: LDAP User: When provisioning from Drupal to LDAP a...

  • grahl committed 1c669c5 on 8.x-3.x
    Issue #2875751: LDAP User: When provisioning from Drupal to LDAP a...
grahl’s picture

Component: Security » Code
Priority: Major » Normal
Status: Active » Fixed

Hi

It turned out that the temporary password storage wasn't triggered in that form due to a change in the form ID and a wrong call to submit instead of validate.

Please retest with DEV and reopen if still an issue for you, works fine for me on OpenLDAP.

Also added the option back for the plaintext password or empty instead of just plaintext password or random. Also updated the label.

Status: Fixed » Closed (fixed)

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