Class AlfrescoCifsAuthenticator

  • All Implemented Interfaces:
    org.alfresco.jlan.server.auth.ICifsAuthenticator, ActivateableBean, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

    public class AlfrescoCifsAuthenticator
    extends CifsAuthenticatorBase
    Alfresco Authenticator Class

    The Alfresco authenticator implementation enables user level security mode using the Alfresco authentication component.

    Note: Switching off encrypted password support will cause later NT4 service pack releases and Win2000 to refuse to connect to the server without a registry update on the client.

    Author:
    gkspencer
    • Constructor Detail

      • AlfrescoCifsAuthenticator

        public AlfrescoCifsAuthenticator()
        Default Constructor

        Default to user mode security with encrypted password support.

    • Method Detail

      • validateAuthenticationMode

        protected boolean validateAuthenticationMode()
        Validate that the authentication component supports the required mode
        Overrides:
        validateAuthenticationMode in class CifsAuthenticatorBase
        Returns:
        boolean
      • authenticateUser

        public int authenticateUser​(org.alfresco.jlan.server.auth.ClientInfo client,
                                    org.alfresco.jlan.server.SrvSession sess,
                                    int alg)
        Authenticate a user
        Specified by:
        authenticateUser in interface org.alfresco.jlan.server.auth.ICifsAuthenticator
        Overrides:
        authenticateUser in class org.alfresco.jlan.server.auth.CifsAuthenticator
        Parameters:
        client - Client information
        sess - Server session
        alg - Encryption algorithm
      • authenticateShareConnect

        public int authenticateShareConnect​(org.alfresco.jlan.server.auth.ClientInfo client,
                                            org.alfresco.jlan.server.core.SharedDevice share,
                                            String sharePwd,
                                            org.alfresco.jlan.server.SrvSession sess)
        Authenticate a connection to a share.
        Specified by:
        authenticateShareConnect in interface org.alfresco.jlan.server.auth.ICifsAuthenticator
        Overrides:
        authenticateShareConnect in class org.alfresco.jlan.server.auth.CifsAuthenticator
        Parameters:
        client - User/client details from the tree connect request.
        share - Shared device the client wants to connect to.
        sharePwd - Share password.
        sess - Server session.
        Returns:
        int Granted file permission level or disallow status if negative. See the FilePermission class.
      • getAuthContext

        public org.alfresco.jlan.server.auth.AuthContext getAuthContext​(org.alfresco.jlan.smb.server.SMBSrvSession sess)
        Return an authentication context for the new session
        Overrides:
        getAuthContext in class org.alfresco.jlan.server.auth.CifsAuthenticator
        Returns:
        AuthContext