Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nslcd/pam.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ static int check_shadow(MYLDAP_SESSION *session, const char *username,
else if (today < lastchangedate)
log_log(LOG_WARNING, "%s: %s: password changed in the future",
myldap_get_dn(entry), attmap_shadow_shadowLastChange);
else if (maxdays != -1)
else if (maxdays > 0)
{
/* check maxdays */
daysleft = lastchangedate + maxdays - today;
Expand Down
Loading