From e627deb0b7849bb8119b9566dd093b92ce9a2dbd 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.
---
opends/src/server/org/opends/server/controls/ProxiedAuthV2Control.java | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/opends/src/server/org/opends/server/controls/ProxiedAuthV2Control.java b/opends/src/server/org/opends/server/controls/ProxiedAuthV2Control.java
index 199a3a3..05def8a 100644
--- a/opends/src/server/org/opends/server/controls/ProxiedAuthV2Control.java
+++ b/opends/src/server/org/opends/server/controls/ProxiedAuthV2Control.java
@@ -319,9 +319,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_PROXYAUTH2_UNUSABLE_ACCOUNT;
String message = getMessage(msgID, String.valueOf(authzDN));
@@ -376,9 +378,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_PROXYAUTH2_UNUSABLE_ACCOUNT;
String message = getMessage(msgID, String.valueOf(authzDN));
--
Gitblit v1.10.0