From 16e9aa11e63515dbd5ee373ffe32863abddcc82a Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 28 Aug 2007 02:00:49 +0000
Subject: [PATCH] Add an SMTP account status notification handler, which can be configured to send e-mail messages whenever an account status notification is generated.  The message can be sent to the end user impacted by the notification (based on an attribute in the user's entry) and/or a fixed set of recipients.

---
 opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendWorkflowElement.java |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendWorkflowElement.java b/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendWorkflowElement.java
index 0be89d4..7150f33 100644
--- a/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendWorkflowElement.java
+++ b/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendWorkflowElement.java
@@ -3526,11 +3526,6 @@
             else if (pwPolicyState.shouldWarn())
             {
               int numSeconds = pwPolicyState.getSecondsUntilExpiration();
-              Message timeToExpiration = secondsToTimeString(numSeconds);
-
-              Message message = INFO_BIND_PASSWORD_EXPIRING.get(
-                      timeToExpiration);
-              localOp.appendErrorMessage(message);
 
               if (pwPolicyWarningType == null)
               {
@@ -3785,7 +3780,7 @@
                 int numSeconds = pwPolicyState.getSecondsUntilExpiration();
                 Message timeToExpiration = secondsToTimeString(numSeconds);
 
-                Message message = INFO_BIND_PASSWORD_EXPIRING.get(
+                Message message = WARN_BIND_PASSWORD_EXPIRING.get(
                         timeToExpiration);
 
                 pwPolicyState.generateAccountStatusNotification(
@@ -4164,11 +4159,6 @@
               else if (pwPolicyState.shouldWarn())
               {
                 int numSeconds = pwPolicyState.getSecondsUntilExpiration();
-                Message timeToExpiration = secondsToTimeString(numSeconds);
-
-                Message message = INFO_BIND_PASSWORD_EXPIRING.get(
-                        timeToExpiration);
-                localOp.appendErrorMessage(message);
 
                 if (pwPolicyWarningType == null)
                 {
@@ -4204,7 +4194,7 @@
                 int numSeconds = pwPolicyState.getSecondsUntilExpiration();
                 Message timeToExpiration = secondsToTimeString(numSeconds);
 
-                Message message = INFO_BIND_PASSWORD_EXPIRING.get(
+                Message message = WARN_BIND_PASSWORD_EXPIRING.get(
                         timeToExpiration);
 
                 pwPolicyState.generateAccountStatusNotification(

--
Gitblit v1.10.0