In MS Active Directory an admin can set the "User must change password at next 
logon" for a user but when that user logs in using CAS the Password Policy 
plugin doesn't detect this.

The attached patch fixed that for me.
-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev
--- 
cas-server-support-ldap-pwd-expiration/src/main/java/org/jasig/cas/adaptors/ldap/util/exceptions/ExpiredPasswordException.java
      2010-05-18 19:17:43.000000000 +0000
+++ 
cas-server-support-ldap-pwd-expiration/src/main/java/org/jasig/cas/adaptors/ldap/util/exceptions/ExpiredPasswordException.java
      2011-03-28 17:29:31.450928157 +0000
@@ -10,7 +10,7 @@
      */
     public static final String EXPIRED_PASSWORD_CODE = 
"error.authentication.password.expired";
 
-    public static final String EXPIRED_PASSWORD_ERROR_REGEX = 
"\\D532\\D|expired";
+    public static final String EXPIRED_PASSWORD_ERROR_REGEX = 
"\\D532\\D|\\D773\\D|expired";
 
     public ExpiredPasswordException() {
         super(ExpiredPasswordException.EXPIRED_PASSWORD_CODE);

Reply via email to