6230ee6 warn user if password is about to expire

1 file Authored by pbrezina 11 years ago, Committed by jhrozek 11 years ago,
    warn user if password is about to expire
    
    https://fedorahosted.org/sssd/ticket/1638
    
    If pwd_exp_warning == 0, expiry warning should be printed if it is
    returned by server.
    
    If pwd_exp_warning > 0, expiry warning should be printed only if
    the password will expire in time <= pwd_exp_warning.
    
    ppolicy->expiry contains period in seconds after which the password
    expires. Not the exact timestamp. Thus we should not add 'now' to
    pwd_exp_warning.