Class NTLMAuthenticationComponentImpl

    • Constructor Detail

      • NTLMAuthenticationComponentImpl

        public NTLMAuthenticationComponentImpl()
        Class constructor
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • allowsGuest

        public final boolean allowsGuest()
        Determine if guest logons are allowed
        Returns:
        boolean
      • setPassthruServers

        public void setPassthruServers​(org.alfresco.jlan.server.auth.passthru.PassthruServers servers)
        Directly sets the passthru server list.
        Parameters:
        servers - a passthru server list, usually created by PassthruServerFactory
      • setDomain

        public void setDomain​(String domain)
        Set the domain to authenticate against
        Parameters:
        domain - String
      • setServers

        public void setServers​(String servers)
        Set the server(s) to authenticate against
        Parameters:
        servers - String
      • setUseLocalServer

        public void setUseLocalServer​(String useLocal)
        Use the local server as the authentication server
        Parameters:
        useLocal - String
      • setGuestAccess

        public void setGuestAccess​(String guest)
        Allow guest access
        Parameters:
        guest - String
      • setAllowAuthUserAsGuest

        public void setAllowAuthUserAsGuest​(String auth)
        Allow authenticated users with no alfresco person record to logon with guest access
        Parameters:
        auth - String
      • setNullDomainUseAnyServer

        public void setNullDomainUseAnyServer​(String nullDomain)
        Allow null domain passthru logons to use the first available passthru server
        Parameters:
        nullDomain - String
      • setJCEProvider

        public void setJCEProvider​(String providerClass)
        Set the JCE provider
        Parameters:
        providerClass - String
      • setSessionTimeout

        public void setSessionTimeout​(String sessTmo)
        Set the authentication session timeout, in seconds
        Parameters:
        sessTmo - String
      • setProtocolOrder

        public void setProtocolOrder​(String protoOrder)
        Set the protocol order for passthru connections
        Parameters:
        protoOrder - String
      • authenticateImpl

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

        public net.sf.acegisecurity.Authentication authenticate​(net.sf.acegisecurity.Authentication auth)
                                                         throws org.alfresco.repo.security.authentication.AuthenticationException
        Authenticate using a token
        Specified by:
        authenticate in interface NLTMAuthenticator
        Parameters:
        auth - Authentication
        Returns:
        Authentication
        Throws:
        org.alfresco.repo.security.authentication.AuthenticationException
      • getMD4HashedPassword

        public String getMD4HashedPassword​(String userName)
        Get the MD4 password hash, as required by NTLM based authentication methods.
        Specified by:
        getMD4HashedPassword in interface NLTMAuthenticator
        Parameters:
        userName - String
        Returns:
        String
      • exists

        public boolean exists​(String userName)
        Check if the user exists
        Parameters:
        userName - String
        Returns:
        boolean