This is an automated email from the git hooks/post-receive script.
mreynolds pushed a commit to branch 389-ds-base-1.3.9
in repository 389-ds-base.
The following commit(s) were added to refs/heads/389-ds-base-1.3.9 by this push:
new 0ef0383 Ticket 50091 - shadowWarning is not generated if passwordWarning is
lower than 86400 seconds (1 day)
0ef0383 is described below
commit 0ef0383322302163fdea115515f82b64cabab505
Author: Thierry Bordaz <tbordaz(a)redhat.com>
AuthorDate: Fri Dec 14 17:42:22 2018 +0100
Ticket 50091 - shadowWarning is not generated if passwordWarning is lower than 86400
seconds (1 day)
Bug Description:
For a shadowAccount, if a password policy defines passwordWarning below 1 days (86400
seconds)
then the shadowWarning (in day) is not returned from the entry. In such case its
value is '0'.
Fix Description:
The fix is to accept shadowWarning = 0 as valid value and return it
https://pagure.io/389-ds-base/issue/50091
Reviewed by: Mark Reynolds
Platforms tested: F27
Flag Day: no
Doc impact: no
---
ldap/servers/slapd/pw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ldap/servers/slapd/pw.c b/ldap/servers/slapd/pw.c
index ec23ed1..11149f5 100644
--- a/ldap/servers/slapd/pw.c
+++ b/ldap/servers/slapd/pw.c
@@ -2844,7 +2844,7 @@ add_shadow_ext_password_attrs(Slapi_PBlock *pb, Slapi_Entry **e)
shadowval = _MAX_SHADOW;
}
}
- if (shadowval > 0) {
+ if (shadowval >= 0) {
shwarn = slapi_entry_attr_get_charptr(*e, "shadowWarning");
if (shwarn) {
sval = strtoll(shwarn, NULL, 0);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.