From 1be5d2dd05466fceb9f8fbb15e299ac766b55192 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 11 Aug 2006 22:55:39 +0000
Subject: [PATCH] Create a new error log category for messages related to the Directory Server password policy.
---
opendj-sdk/opends/src/server/org/opends/server/messages/CoreMessages.java | 11 +++++++++++
opendj-sdk/opends/src/server/org/opends/server/util/ServerConstants.java | 8 ++++++++
opendj-sdk/opends/src/server/org/opends/server/types/ErrorLogCategory.java | 9 +++++++++
3 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/messages/CoreMessages.java b/opendj-sdk/opends/src/server/org/opends/server/messages/CoreMessages.java
index 636b779..9c690b4 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/messages/CoreMessages.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/messages/CoreMessages.java
@@ -5716,6 +5716,15 @@
/**
+ * The message ID for the string that will be used for the error log category
+ * for messages related to password policy processing.
+ */
+ public static final int MSGID_ERROR_CATEGORY_PASSWORD_POLICY =
+ CATEGORY_MASK_CORE | SEVERITY_MASK_INFORMATIONAL | 546;
+
+
+
+ /**
* Associates a set of generic messages with the message IDs defined
* in this class.
*/
@@ -5812,6 +5821,8 @@
registerMessage(MSGID_ERROR_CATEGORY_EXTENDED_OPERATION,
ERROR_CATEGORY_EXTENDED_OPERATION);
registerMessage(MSGID_ERROR_CATEGORY_EXTENSIONS, ERROR_CATEGORY_EXTENSIONS);
+ registerMessage(MSGID_ERROR_CATEGORY_PASSWORD_POLICY,
+ ERROR_CATEGORY_PASSWORD_POLICY);
registerMessage(MSGID_ERROR_CATEGORY_PLUGIN, ERROR_CATEGORY_PLUGIN);
registerMessage(MSGID_ERROR_CATEGORY_REQUEST_HANDLING,
ERROR_CATEGORY_REQUEST);
diff --git a/opendj-sdk/opends/src/server/org/opends/server/types/ErrorLogCategory.java b/opendj-sdk/opends/src/server/org/opends/server/types/ErrorLogCategory.java
index 9e9b5bd..d41f4a1 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/types/ErrorLogCategory.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/types/ErrorLogCategory.java
@@ -108,6 +108,14 @@
/**
* The error log category that will be used for messages related to
+ * password policy processing.
+ */
+ PASSWORD_POLICY(MSGID_ERROR_CATEGORY_PASSWORD_POLICY),
+
+
+
+ /**
+ * The error log category that will be used for messages related to
* plugin processing.
*/
PLUGIN(MSGID_ERROR_CATEGORY_PLUGIN),
@@ -195,6 +203,7 @@
nameMap.put(ERROR_CATEGORY_EXTENDED_OPERATION,
EXTENDED_OPERATION);
nameMap.put(ERROR_CATEGORY_EXTENSIONS, EXTENSIONS);
+ nameMap.put(ERROR_CATEGORY_PASSWORD_POLICY, PASSWORD_POLICY);
nameMap.put(ERROR_CATEGORY_PLUGIN, PLUGIN);
nameMap.put(ERROR_CATEGORY_REQUEST, REQUEST_HANDLING);
nameMap.put(ERROR_CATEGORY_SASL_MECHANISM, SASL_MECHANISM);
diff --git a/opendj-sdk/opends/src/server/org/opends/server/util/ServerConstants.java b/opendj-sdk/opends/src/server/org/opends/server/util/ServerConstants.java
index 907244e..f7c635c 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/util/ServerConstants.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/util/ServerConstants.java
@@ -817,6 +817,14 @@
/**
+ * The English name for the error log category used for password policy
+ * processing.
+ */
+ public static final String ERROR_CATEGORY_PASSWORD_POLICY = "PW_POLICY";
+
+
+
+ /**
* The English name for the error log category used for plugin processing.
*/
public static final String ERROR_CATEGORY_PLUGIN = "PLUGIN";
--
Gitblit v1.10.0