Hello,
We are trying to upgrade CAS from 4.2.7 to 5.2.x. In 4.2, we extended
LdapAuthenticationHandler to make our customization (to convert GUID to
databaseUserID.. we use LDAP to verifty password, then return database
mapped ID to application, which application use latter in the process).
When we try to do same thing in 5.2, we get error on build.
Is there better way to do this in 5.2.x?
[ERROR]
/C:/Projects/PASS5.2/trunk/build/CAS_Server/post-cas-server/src/main/java/gov/ca/post/PostLdapAuthenticationHandler.java:[16,8]
cannot access
org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
class file for
org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
not found
[ERROR]
/C:/Projects/PASS5.2/trunk/build/CAS_Server/post-cas-server/src/main/java/gov/ca/post/PostLdapAuthenticationHandler.java:[10,37]
cannot find symbol
symbol: class UsernamePasswordCredential
location: package org.apereo.cas.authentication
[ERROR]
/C:/Projects/PASS5.2/trunk/build/CAS_Server/post-cas-server/src/main/java/gov/ca/post/PostLdapAuthenticationHandler.java:[11,47]
cannot find symbol
symbol: class DefaultPrincipalFactory
location: package org.apereo.cas.authentication.principal
package org.apereo.cas;
import java.util.Map;
import javax.validation.constraints.NotNull;
import org.apereo.cas.authentication.HandlerResult;
import org.apereo.cas.authentication.LdapAuthenticationHandler;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.authentication.UsernamePasswordCredential;
import org.apereo.cas.authentication.principal.DefaultPrincipalFactory;
import org.apereo.cas.authentication.principal.Principal;
import org.apereo.cas.authentication.principal.PrincipalFactory;
import org.ldaptive.auth.Authenticator;
public class PostLdapAuthenticationHandler extends
LdapAuthenticationHandler {
private IDAL dal = null;
public PostLdapAuthenticationHandler(@NotNull final Authenticator
authenticator, final IDAL dal) {
super(authenticator);
this.dal = dal;
}
......
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/ccad8716-a0bc-41c3-8167-d452570c7fad%40apereo.org.