Here is a little bit more info. I was able to track the exception down to org.springframework.dao.DataAccessResourceFailureException: Unable to create DirContext. This is what the BindLdapAuthenticationHandler is trying to parse for those LDAP errors. Maybe this is an issue with using MS Active Directory or possibly that we do not allow anonymous bind so we are binding as the actual user. If anyone has gotten this to work with AD and has multiple handlers, I would really appreciate any help. I have successfully implemented the password expiration warning but any of the errors counting on error codes from AD are not working.
Thanks, Kris Kristopher Borchers Web Application Developer - Content Analyst Saint Xavier University Ph. 773-298-3924 [email protected] <mailto:[email protected]> www.sxu.edu <http://www.sxu.edu> Saint Xavier University - Success with Purpose. Saint Xavier University, a Catholic institution inspired by the heritage of the Sisters of Mercy, educates men and women to search for truth, to think critically, to communicate effectively, and to serve wisely and compassionately in support of human dignity and the common good. ________________________________ From: Borchers, Kristopher C. [mailto:[email protected]] Sent: Monday, April 06, 2009 9:49 AM To: [email protected] Subject: RE: [cas-user] Password Expiration Revisited Eric, I am attempting to implement the changes you have made to detect LDAP errors but have run into a snag. Did you make any modifications to the authenticate method in org.jasig.cas.authentication.AuthenticationManagerImpl? The reason I ask is that I am always getting BadCredentialsAuthenticationException which is to be expected since that method is designed to return that exception for any exception that happens in order to continue processing other handlers. Did you have to make modification to catch the new exceptions you are throwing from org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler? Sorry if this doesn't make sense as I am still pretty new to Java and CAS but feel like I have a pretty good grip on it and can't understand where your new exceptions are caught. Thanks, Kris Kristopher Borchers Web Application Developer - Content Analyst Saint Xavier University Ph. 773-298-3924 [email protected] <mailto:[email protected]> www.sxu.edu <http://www.sxu.edu> Saint Xavier University - Success with Purpose. Saint Xavier University, a Catholic institution inspired by the heritage of the Sisters of Mercy, educates men and women to search for truth, to think critically, to communicate effectively, and to serve wisely and compassionately in support of human dignity and the common good. ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Eric Pierce Sent: Thursday, April 02, 2009 11:05 AM To: [email protected] Subject: [cas-user] Password Expiration Revisited -- 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 -- 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
