Browse Source

Bug 681015 - RFE: allow fine grained password policy duration attributes in days, hours, minutes, as well

https://bugzilla.redhat.com/show_bug.cgi?id=681015

Description: passwordLockoutDuration attribute is not working
with the fine grain password policy.  The code to parse the
value of passwordlockoutduration was missing.  This patch
adds it.
Noriko Hosoi 14 năm trước cách đây
mục cha
commit
6ada149c42
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      ldap/servers/slapd/pw.c

+ 1 - 1
ldap/servers/slapd/pw.c

@@ -1673,7 +1673,7 @@ new_passwdPolicy(Slapi_PBlock *pb, char *dn)
 				else
 				if (!strcasecmp(attr_name, "passwordlockoutduration")) {
 					if ((sval = attr_get_present_values(attr))) {
-						pwdpolicy->pw_lockduration = slapi_value_get_long(*sval);
+						pwdpolicy->pw_lockduration = slapi_value_get_timelong(*sval);
 					}
 				}
 				else