cgrzemba / 389-ds-base

Forked from 389-ds-base 5 years ago
Clone

faae0fa Ticket #49082 - Fix password expiration related shadow attributes

Authored and Committed by nhosoi 7 years ago
    Ticket #49082 - Fix password expiration related shadow attributes
    
    The original patch was provided by Gordon Messmer (gordon.messmer@gmail.com)
    with the description:
      Bug description:
      Shadow attributes (in /etc/shadow and in LDAP) are typically unset when no
      policy is in place. 389-ds will incorrectly return values (possibly set to 0)
      when there is no policy.
    
      Fix description:
      Only auto-fill shadow attributes when a password policy is available.  These
      are empty when no policy is in place.
    
      Don't auto-fill expiration related shadow attributes if passwords never expire.
    
    Reviewed by William Brown <wibrown@redhat.com> (Thanks!!).
    
    (cherry picked from commit 5bcd966b73708f6b558f01e6b11a7a11e8d3b126)
    
        
file modified
+38 -36