There needs to be a particular transition to a desired view state added (for the type of exception in question) to the ‘handleAuthenticationFailure’ action state. The v4.0.0 (and 4.0.1) does not have that:
-> https://github.com/Jasig/cas/blob/v4.0.0/cas-server-webapp/src/main/webapp/WEB-INF/login-webflow.xml#L114 <https://github.com/Jasig/cas/blob/v4.0.0/cas-server-webapp/src/main/webapp/WEB-INF/login-webflow.xml#L114> And v 4.1 (not released yet), does -> https://github.com/Jasig/cas/blob/master/cas-server-webapp/src/main/webapp/WEB-INF/webflow/login/login-webflow.xml#L116 <https://github.com/Jasig/cas/blob/master/cas-server-webapp/src/main/webapp/WEB-INF/webflow/login/login-webflow.xml#L116> Cheers, D. > On Apr 1, 2015, at 6:24 AM, Jayakumar Jayaraman <[email protected]> wrote: > > Hi Guys > > I am using CAS 4.0 with Active Directory and enabled LPPE. > > I am trying to force the user to change the password at first login. > > Active directory has a checkbox - 'User must change the password at next > login'. - I have checked this. > However I was getting authenticationFailure.UNKNOWN. > > And I noted that org.jasig.cas.web.flow.AuthenticationExceptionHandler class > does not have the below line and I have add this in my extended class to > catch this error else it > DEFAULT_ERROR_LIST.add(org.jasig.cas.authentication.AccountPasswordMustChangeException.class); > Now I am getting the appropriate message > authenticationFailure.AccountPasswordMustChangeException. > > However the page is not redirected to the change password page. > > I have the below entry in cas.properties > > # URL to which the user will be redirected to change the passsword. > password.policy.url=https://localhost:7002/myapp/change.xhtml > > Any idea please ? > > Thanks > Jay > > -- > 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-user -- 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-user
