From 9ae2b3e436488b7b3f4894523328571b8053faf3 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 02 Aug 2006 20:31:50 +0000
Subject: [PATCH] Add a new account expiration feature to the password policy. This will make it possible for accounts to be given an expiration time, after which it will not be possible to authenticate as that user or target that user with the proxied authorization control.
---
opendj-sdk/opends/src/server/org/opends/server/controls/ProxiedAuthV1Control.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/controls/ProxiedAuthV1Control.java b/opendj-sdk/opends/src/server/org/opends/server/controls/ProxiedAuthV1Control.java
index c794534..a3a0947 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/controls/ProxiedAuthV1Control.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/controls/ProxiedAuthV1Control.java
@@ -367,9 +367,11 @@
// processing.
PasswordPolicyState pwpState = new PasswordPolicyState(userEntry, false,
false);
- if (pwpState.isDisabled() || pwpState.lockedDueToFailures() ||
+ if (pwpState.isDisabled() || pwpState.isAccountExpired() ||
+ pwpState.lockedDueToFailures() ||
pwpState.lockedDueToIdleInterval() ||
- pwpState.lockedDueToMaximumResetAge() || pwpState.isExpired())
+ pwpState.lockedDueToMaximumResetAge() ||
+ pwpState.isPasswordExpired())
{
int msgID = MSGID_PROXYAUTH1_UNUSABLE_ACCOUNT;
String message = getMessage(msgID, String.valueOf(authzDN));
--
Gitblit v1.10.0