CONTENT INTEGRITY ERROR

cancel
Showing results for 
Search instead for 
Did you mean: 
fstnboy
Active Member

Re: CONTENT INTEGRITY ERROR

Mirando el código del ServerConfiguration .java

// Check if an authenticator has been specified

        ConfigElement authElem = config.getConfigElement("authenticator");
        if (authElem != null)
        {

            // Get the authenticator type, should be either 'local' or 'passthru'

            String authType = authElem.getAttribute("type");
            if (authType == null)
                authType = "alfresco";

            // Get the authentication component type
           
            NTLMMode ntlmMode = m_authenticationComponent.getNTLMMode();
           
            // Set the authenticator class to use

            CifsAuthenticator auth = null;

            if (authType.equalsIgnoreCase("passthru"))
            {
                // Check if the appropriate authentication component type is configured
               
                if ( ntlmMode == NTLMMode.MD4_PROVIDER)
                    throw new AlfrescoRuntimeException("Wrong authentication setup for passthru authenticator (cannot be used with Alfresco users)");
               
                // Load the passthru authenticator dynamically
               
                auth = loadAuthenticatorClass("org.alfresco.filesys.server.auth.passthru.PassthruAuthenticator");
                if ( auth == null)
                    throw new AlfrescoRuntimeException("Failed to load passthru authenticator");
            }
            else if (authType.equalsIgnoreCase("alfresco"))
            {
                // Standard authenticator requires MD4 or passthru based authentication
               
                if ( ntlmMode == NTLMMode.NONE)
                    throw new AlfrescoRuntimeException("Wrong authentication setup for alfresco authenticator");
               
                // Load the Alfresco authenticator dynamically
               
                auth = loadAuthenticatorClass("org.alfresco.filesys.server.auth.AlfrescoAuthenticator");
               
                if ( auth == null)
                    throw new AlfrescoRuntimeException("Failed to load Alfresco authenticator");
            }
            else if( authType.equalsIgnoreCase("enterprise"))
            {
                // Load the Enterprise authenticator dynamically
               
                auth = loadAuthenticatorClass("org.alfresco.filesys.server.auth.EnterpriseCifsAuthenticator");
               
                if ( auth == null)
                    throw new AlfrescoRuntimeException("Failed to load Enterprise authenticator");
            }
            else
                throw new AlfrescoRuntimeException("Invalid authenticator type, " + authType);

            // Get the allow guest and map unknown user to guest settings

            boolean allowGuest = authElem.getChild("allowGuest") != null ? true : false;
            boolean mapGuest   = authElem.getChild("mapUnknownUserToGuest") != null ? true : false;

            // Initialize and set the authenticator class

            setAuthenticator(auth, authElem, allowGuest);
            auth.setMapToGuest( mapGuest);
        }
        else
           throw new AlfrescoRuntimeException("Authenticator not specified");

Puede que el error esté ahí? En la etiqueta authenticator del xml?
fstnboy
Active Member

Re: CONTENT INTEGRITY ERROR

Creo que ya sé donde está el problema….

La excepción se lanza en el siguiente código de la clase EnterpriseCifsAuthenticator:


//  Make sure that either Kerberos support is enabled and/or the authentication component
        //  supports MD4 hashed passwords
       
        if ( isKerberosEnabled() == false && m_authComponent.getNTLMMode() != NTLMMode.MD4_PROVIDER)
        {
            //  Log an error
           
            logger.error("No valid CIFS authentication combination available");
            logger.error("Either enable Kerberos support or use an authentication component that supports MD4 hashed passwords");
           
            //  Throw an exception to stop the CIFS server startup
           
            throw new AlfrescoRuntimeException("Invalid CIFS authenticator configuration");
        }

Creo recordar, no estoy seguro, que el algoritmo que se usa en la empresa es el MD5… por eso es por lo que falla. Aún teniendo el enabled a false, alfresco sigue configurando el CIF.

Todo esto mirando el código, igual no estoy en lo cierto. No quiero tocar ese código… ¿Mediante los archivos de configuración no puede evitarse?