The LDAP users, which authenticate on a different system, are receiving email alerts about their password expiring. The authenticating system, which manages the password modification and expiration, causes the LDAP users to have their profiles grey-out their passwords, therefore, they cannot change them within the Drupal system.

Comments

petar.kolicov created an issue. See original summary.

petar.kolicov’s picture

I added option 'Exclude authmap users' the option by default is disabled and in cron I add check if this option is enabled we exclude all authmap users.

aohrvetpv’s picture

Status: Active » Needs work

Thanks for the bug report and patch. Quick review:
- Variables defined by a module must be prefixed with the name of the module. So "password_policy_exclude..." Prevents name collisions.
- Patch seems to have some unrelated changes: a new XML file and an indentation change in unrelated code.

aohrvetpv’s picture

The approach in #1888366: Password Policy should optionally ignore users managed by other modules, used by 7.x-2.x, seems like it may be a better solution. It allows ignoring password policies for specific authentication modules, rather than all authmap users.

aohrvetpv’s picture

Assigned: petar.kolicov » aohrvetpv

I am developing a patch.

aohrvetpv’s picture

Version: 7.x-1.12 » 7.x-1.x-dev
Status: Needs work » Needs review
StatusFileSize
new9.34 KB

Patch that allows excluding authentication modules on a per-policy basis.

A fieldset is added to the policy configuration form that allows specifying which authentication modules the policy should not be applied to.

The fieldset is added only when users exist on the site who authenticated with one or more external authentication modules. That is, if you do not use external authentication modules, the configuration form is the same as before.

Lacks automated tests. May adversely affect performance/caching--need to study more.

Please review/test!

aohrvetpv’s picture

Previous patch was missing an added file.

Status: Needs review » Needs work
aohrvetpv’s picture

Status: Needs work » Needs review
StatusFileSize
new11.71 KB

Fixed PHPLint error (hopefully).

aohrvetpv’s picture

Updated to apply on latest -dev code.

aohrvetpv’s picture

  • AohRveTPV committed cc79898 on 7.x-1.x
    Issue #2872688 by AohRveTPV: Password Policy should optionally ignore...
aohrvetpv’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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