From 7a6f98492aaeacd4e5a795adc71b75edbc1d126a Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 30 Nov 2006 21:50:39 +0000
Subject: [PATCH] Update the extended operation handler API to provide the ability for custom extended operations to handle their own controls. The password modify extended operation has been updated to support the LDAP no-op control and the password policy control.
---
opends/src/server/org/opends/server/messages/ToolMessages.java | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/ToolMessages.java b/opends/src/server/org/opends/server/messages/ToolMessages.java
index d60cd77..b596b88 100644
--- a/opends/src/server/org/opends/server/messages/ToolMessages.java
+++ b/opends/src/server/org/opends/server/messages/ToolMessages.java
@@ -7475,6 +7475,38 @@
/**
+ * The message ID for the message that will be used to display warning
+ * information included in the password policy response control. This takes
+ * two arguments, which are the string representation of the warning type and
+ * the integer warning value.
+ */
+ public static final int MSGID_LDAPPWMOD_PWPOLICY_WARNING =
+ CATEGORY_MASK_TOOLS | SEVERITY_MASK_INFORMATIONAL | 786;
+
+
+
+ /**
+ * The message ID for the message that will be used to display error
+ * information included in the password policy response control. This takes
+ * a single argument, which is the string representation of the error type.
+ */
+ public static final int MSGID_LDAPPWMOD_PWPOLICY_ERROR =
+ CATEGORY_MASK_TOOLS | SEVERITY_MASK_INFORMATIONAL | 787;
+
+
+
+ /**
+ * The message ID for the message that will be used if an error occurs while
+ * trying to decode the password policy response control. This takes a
+ * single argument, which is a string representation of the exception that was
+ * caught.
+ */
+ public static final int MSGID_LDAPPWMOD_CANNOT_DECODE_PWPOLICY_CONTROL =
+ CATEGORY_MASK_TOOLS | SEVERITY_MASK_MILD_ERROR | 788;
+
+
+
+ /**
* Associates a set of generic messages with the message IDs defined in this
* class.
*/
@@ -9547,6 +9579,13 @@
"The LDAP password modify operation was successful.");
registerMessage(MSGID_LDAPPWMOD_ADDITIONAL_INFO,
"Additional Info: %s.");
+ registerMessage(MSGID_LDAPPWMOD_PWPOLICY_WARNING,
+ "Password Policy Warning: %s = %d.");
+ registerMessage(MSGID_LDAPPWMOD_PWPOLICY_ERROR,
+ "Password Policy Error: %s.");
+ registerMessage(MSGID_LDAPPWMOD_CANNOT_DECODE_PWPOLICY_CONTROL,
+ "Unable to decode the password policy response control: " +
+ "%s.");
registerMessage(MSGID_LDAPPWMOD_GENERATED_PASSWORD,
"Generated Password: %s.");
registerMessage(MSGID_LDAPPWMOD_UNRECOGNIZED_VALUE_TYPE,
--
Gitblit v1.10.0