Password reset one-time link is not working

Created on 19 April 2022, about 2 years ago
Updated 19 April 2024, 2 months ago

Problem/Motivation

While user is trying to reset his password, error happen in LdapEntryProvisionSubscriber.php prevent the process to complete successfully.

Steps to reproduce

1. As site visitor, go to "Password Reset"
2. Type your username or email
3. You'll receive email with one-time login link
4. Click the link and press Submit
5. Encounter error: "The website encountered an unexpected error. Please try again later."
6. Logs show this error:

"PHP message: TypeError: Drupal\ldap_user\EventSubscriber\LdapEntryProvisionSubscriber::fetchDrupalAccountPassword(): Return value must be of type string, null returned in /var/www/web/modules/contrib/ldap/ldap_user/src/EventSubscriber/LdapEntryProvisionSubscriber.php on line 406 #0 /var/www/web/modules/contrib/ldap/ldap_user/src/EventSubscriber/LdapEntryProvisionSubscriber.php(321): Drupal\ldap_user\EventSubscriber\LdapEntryProvisionSubscriber->fetchDrupalAccountPassword()
#1 /var/www/web/modules/contrib/ldap/ldap_user/src/EventSubscriber/LdapEntryProvisionSubscriber.php(433): Drupal\ldap_user\EventSubscriber\LdapEntryProvisionSubscriber->fetchDrupalAccountAttribute()
#2 /var/www/web/modules/contrib/ldap/ldap_user/src/EventSubscriber/LdapEntryProvisionSubscriber.php(277): Drupal\ldap_user\EventSubscriber\LdapEntryProvisionSubscriber->fetchDrupalAttributeValue()
#3 /var/www/web/modules/contrib/ldap/ldap_user/src/EventSubscri" while reading response header from upstream, request: "POST /user/reset/40/1650362500/dUv_iRaO8lf0Df4Ot5RF4NNMR_x92swI1D1MfwBYD00/login HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.1-fpm.sock:"

Drupal information

  • Drupal version: 9.3.9
  • PHP version: 8.1.4
  • LDAP module version: 8.x-4.3
πŸ› Bug report
Status

Closed: cannot reproduce

Version

4.3

Component

Code

Created by

πŸ‡ͺπŸ‡¬Egypt rami.sedhom

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024