فهرست منبع

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 سال پیش
والد
کامیت
6ada149c42
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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