CAS 3.5.4 to 6.2.2 migration: LDAP authentication handler

39 views
Skip to first unread message

Sobhen C

unread,
Dec 3, 2020, 12:45:42 PM12/3/20
to CAS Community
Hello,

In the LDAP  flow, I need to perform some operations like below

1. If the user is locked, we need to display a custom error message
2. Max. possible lock count is 6 and we need to check that count each login click
3. if the user is inactive, we need to save some information in a separate table

In the CAS 3.5.4, I was able to handle all these in BandLdapAuthenicationHandler, 
but coming to CAS 6.2.2, how to perform these customized operations?

Please provide some guidance on this, I went through the documentations but didn't get a clue, how to proceed in this.
Also, how will we be able to create some custom errors for view?

With regards,
Sobhen

Sobhen C

unread,
Dec 5, 2020, 1:19:58 AM12/5/20
to CAS Community
Hello, 

Currently,  LdapAuthenticationHandler.java  is handling the Ldap authentication related to CAS. Suppose, I want to take some more operations based on the result of the Ldap authentication,  how I be able to do the same?  I mean something extra like locking the user, if the user tried to login more than 6 times (we have this specific use case). For this, do we need to bring up a customized  LdapAuthenticationHandler by extending  AbstractUsernamePasswordAuthenticationHandler?

Thank you in advance.

Reply all
Reply to author
Forward
0 new messages