From 2c7b8d6d8c0c177e8089272140dae66b87852ff7 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 17 Jul 2007 21:59:32 +0000
Subject: [PATCH] Implement support for password history functionality. The password history can be maintained either based on the number of previous passwords to remember (e.g., a user cannot re-use any of his/her last five passwords), or the length of time the previous passwords have been retained (e.g., a user cannot re-use any password he/she has had within the last 365 days), or both.
---
opends/src/server/org/opends/server/config/ConfigConstants.java | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/config/ConfigConstants.java b/opends/src/server/org/opends/server/config/ConfigConstants.java
index ba2e5c2..818e728 100644
--- a/opends/src/server/org/opends/server/config/ConfigConstants.java
+++ b/opends/src/server/org/opends/server/config/ConfigConstants.java
@@ -1802,6 +1802,21 @@
/**
+ * The default value for the password history count configuration attribute.
+ */
+ public static final int DEFAULT_PWPOLICY_HISTORY_COUNT = 0;
+
+
+
+ /**
+ * The default value for the password history duration configuration
+ * attribute, in seconds.
+ */
+ public static final int DEFAULT_PWPOLICY_HISTORY_DURATION = 0;
+
+
+
+ /**
* The name of the configuration attribute that specifies the maximum length
* of time an account may remain idle.
*/
@@ -3449,6 +3464,22 @@
/**
+ * The name of the operational attribute that is used to maintain the password
+ * history for the user.
+ */
+ public static final String OP_ATTR_PWPOLICY_HISTORY = "pwdHistory";
+
+
+
+ /**
+ * The name of the operational attribute that is used to maintain the password
+ * history for the user, in all lowercase characters.
+ */
+ public static final String OP_ATTR_PWPOLICY_HISTORY_LC = "pwdhistory";
+
+
+
+ /**
* The name of the operational attribute that specifies the time that the
* account was locked due to too many failed attempts.
*/
--
Gitblit v1.10.0