Class JAASAuthenticationComponent

  • All Implemented Interfaces:
    AuthenticationComponent, AuthenticationContext

    public class JAASAuthenticationComponent
    extends AbstractAuthenticationComponent
    JAAS based authentication The user name and password are picked up from login. The other configurable parameters are: realm - the authentication realm if required, and the entry name to use from the login context. You will need to be familiar with the JAAS authentication process to set this up. In summary you will need to configure java.security (in the lib/security directory of the jre you are using) to find a jaas configuration. This entry could be used if you want to put the login configuration in the same place (in the lib/security directory of the jre you are using) login.config.url.1=file:${java.home}/lib/security/java.login.config Example configuration entries for Kerberos would be: Alfresco { com.sun.security.auth.module.Krb5LoginModule sufficient; }; com.sun.net.ssl.client { com.sun.security.auth.module.Krb5LoginModule sufficient; }; other { com.sun.security.auth.module.Krb5LoginModule sufficient; }; This sets up authentication using Kerberos for Alfresco and some defaults that would use the same mechanism if sasl failed for example. You could use kerberos and LDAP combined against an Active Directory server.
    Author:
    Andy Hind
    • Constructor Detail

      • JAASAuthenticationComponent

        public JAASAuthenticationComponent()
    • Method Detail

      • setJaasConfigEntryName

        public void setJaasConfigEntryName​(java.lang.String jaasConfigEntryName)
      • setRealm

        public void setRealm​(java.lang.String realm)
      • authenticateImpl

        protected void authenticateImpl​(java.lang.String userName,
                                        char[] password)
                                 throws org.alfresco.repo.security.authentication.AuthenticationException
        Implement Authentication
        Overrides:
        authenticateImpl in class AbstractAuthenticationComponent
        Parameters:
        userName - String
        password - char[]
        Throws:
        org.alfresco.repo.security.authentication.AuthenticationException