瀏覽代碼

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