From 2d63754924fee43300c218c20ac1f450ad6da558 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 05 Jul 2007 22:59:03 +0000
Subject: [PATCH] Update the password modify extended operation so that it properly sets password policy state attributes that were not previously updated. This primarily includes updating the last login time if that feature is enabled and the user provides the correct current password, or updating the auth failure times if that feature is enabled nad the user provides an incorrect current password.
---
opendj-sdk/opends/src/server/org/opends/server/messages/ExtensionsMessages.java | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/messages/ExtensionsMessages.java b/opendj-sdk/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
index 4ac4dab..94afc25 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
@@ -5480,6 +5480,18 @@
/**
+ * The message ID for the message that will be used if an error occurs while
+ * attempting to update the password policy state information in the user's
+ * entry. This takes three arguments, which are the target user DN and the
+ * result code and error message from the internal modify operation attempting
+ * to update the state information.
+ */
+ public static final int MSGID_EXTOP_PASSMOD_CANNOT_UPDATE_PWP_STATE =
+ CATEGORY_MASK_EXTENSIONS | SEVERITY_MASK_MILD_WARNING | 528;
+
+
+
+ /**
* Associates a set of generic messages with the message IDs defined in this
* class.
*/
@@ -5771,6 +5783,11 @@
"The password modify operation was not actually " +
"performed in the Directory Server because the LDAP " +
"no-op control was present in the request");
+ registerMessage(MSGID_EXTOP_PASSMOD_CANNOT_UPDATE_PWP_STATE,
+ "An error occurred while attempting to update the " +
+ "password policy state information for user %s as part " +
+ "of a password modify extended operation (result " +
+ "code='%s', error message='%s')");
registerMessage(MSGID_FILE_KEYMANAGER_DESCRIPTION_FILE,
--
Gitblit v1.10.0