Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using LDAP Authentication in mixed mode causes all links to user/password to be stripped for anonymous users making it impossible for non LDAP users to reset their password. Surely this is only supposed to happen when using "Only LDAP Authentication..." mode.
If I disable the LDAP Authentication module the reset password links come back.
I have temporarily solved it but adding links to mydomain/reset-password and then forwarding these on to user/password with the redirect module but it feels like a bodge and I still don't get the Forgot password tab on /user.
Comments
Comment #1
bgm CreditAttribution: bgm commentedI'm not sure if I'm reading this right, but it seems caused by the line identified below in the function ldap_authentication_show_reset_pwd() of ./ldap_authentication/ldap_authentication.module :
The fix below solved the issue for me:
Disclaimer: I am not very familiar with the LDAP module, please do not blindly use this patch.
Comment #2
ZeiP CreditAttribution: ZeiP at Avoltus Oy commentedThis is a duplicate of #2379233: Reset password access check not working correctly , which also contains a patch for the bug.