diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-22 11:18:40 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-02 12:49:47 +0200 |
commit | 4ada3948dd888e7d95831a377bff3f8608cd778b (patch) | |
tree | 4e02ef8f160cd5354f39c2a1809a15c2ac2c906b /src/providers/ldap/sdap_async_connection.c | |
parent | b49d753b5a17c4092d8c24e84eea4400de39d341 (diff) | |
download | sssd-4ada3948dd888e7d95831a377bff3f8608cd778b.tar.gz sssd-4ada3948dd888e7d95831a377bff3f8608cd778b.tar.xz sssd-4ada3948dd888e7d95831a377bff3f8608cd778b.zip |
Display the last grace warning, too
Due to a comparison error, the last warning when an LDAP password was in
its grace period was never displayed.
https://fedorahosted.org/sssd/ticket/1890
Diffstat (limited to 'src/providers/ldap/sdap_async_connection.c')
-rw-r--r-- | src/providers/ldap/sdap_async_connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c index f77d03805..304a7be5b 100644 --- a/src/providers/ldap/sdap_async_connection.c +++ b/src/providers/ldap/sdap_async_connection.c @@ -615,7 +615,7 @@ static void simple_bind_done(struct sdap_op *op, ("Password was reset. " "User must set a new password.\n")); ret = ERR_PASSWORD_EXPIRED; - } else if (pp_grace > 0) { + } else if (pp_grace >= 0) { DEBUG(SSSDBG_TRACE_LIBS, ("Password expired. " "[%d] grace logins remaining.\n", |