AnsweredAssumed Answered

NTLM, passthru authentication component

Question asked by m4mf on May 30, 2006
Latest reply on Jul 6, 2006 by kevinr
One more Question:

AlfrescoV1.3, Tomcat, W2K3 with mysql

with a standard passthru authentication component extention is there an
error with personService reference?
What is wrong in this configuration?

thanks

LOG:

14:15:35,937 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemInfoBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Can't resolve reference to bean 'authenticationComponent' while setting property 'authenticationComponent'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponent' defined in class path resource [alfresco/authentication-services-context.xml]: Can't resolve reference to bean 'authenticationComponentImpl' while setting property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponentImpl' defined in file [C:\DMS\RUN\alfresco\tomcat\shared\classes\alfresco\extension\ntlm-authentication-context.xml]: Can't resolve reference to bean 'personService' while setting property 'personService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personService' defined in class path resource [alfresco/authentication-services-context.xml]: Can't resolve reference to bean 'permissionServiceImpl' while setting property 'permissionServiceSPI'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionServiceImpl' defined in class path resource [alfresco/public-services-security-context.xml]: Can't resolve reference to bean 'authorityService' while setting property 'authorityService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityService' defined in class path resource [alfresco/authority-services-context.xml]: Can't resolve reference to bean 'authenticationComponent' while setting property 'authenticationComponent'; nested exception is org.springframework.beans.factory.FactoryBeanNotInitializedException: Error creating bean with name 'authenticationComponent': FactoryBean returned null object: probably not fully initialized (maybe due to circular bean reference)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponent' defined in class path resource [alfresco/authentication-services-context.xml]: Can't resolve reference to bean 'authenticationComponentImpl' while setting property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponentImpl' defined in file [C:\DMS\RUN\alfresco\tomcat\shared\classes\alfresco\extension\ntlm-authentication-context.xml]: Can't resolve reference to bean 'personService' while setting property 'personService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personService' defined in class path resource [alfresco/authentication-services-context.xml]: Can't resolve reference to bean 'permissionServiceImpl' while setting property 'permissionServiceSPI'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionServiceImpl' defined in class path resource [alfresco/public-services-security-context.xml]: Can't resolve reference to bean 'authorityService' while setting property 'authorityService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityService' defined in class path resource [alfresco/authority-services-context.xml]: Can't resolve reference to bean 'authenticationComponent' while setting property 'authenticationComponent'; nested exception is org.springframework.beans.factory.FactoryBeanNotInitializedException: Error creating bean with name 'authenticationComponent': FactoryBean returned null object: probably not fully initialized (maybe due to circular bean reference)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponentImpl' defined in file [C:\DMS\RUN\alfresco\tomcat\shared\classes\alfresco\extension\ntlm-authentication-context.xml]: Can't resolve reference to bean 'personService' while setting property 'personService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personService' defined in class path resource [alfresco/authentication-services-context.xml]: Can't resolve reference to bean 'permissionServiceImpl' while setting property 'permissionServiceSPI'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionServiceImpl' defined in class path resource [alfresco/public-services-security-context.xml]: Can't resolve reference to bean 'authorityService' while setting property 'authorityService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityService' defined in class path resource [alfresco/authority-services-context.xml]: Can't resolve reference to bean 'authenticationComponent' while setting property 'authenticationComponent'; nested exception is org.springframework.beans.factory.FactoryBeanNotInitializedException: Error creating bean with name 'authenticationComponent': FactoryBean returned null object: probably not fully initialized (maybe due to circular bean reference)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personService' defined in class path resource [alfresco/authentication-services-context.xml]: Can't resolve reference to bean 'permissionServiceImpl' while setting property 'permissionServiceSPI'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionServiceImpl' defined in class path resource [alfresco/public-services-security-context.xml]: Can't resolve reference to bean 'authorityService' while setting property 'authorityService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityService' defined in class path resource [alfresco/authority-services-context.xml]: Can't resolve reference to bean 'authenticationComponent' while setting property 'authenticationComponent'; nested exception is org.springframework.beans.factory.FactoryBeanNotInitializedException: Error creating bean with name 'authenticationComponent': FactoryBean returned null object: probably not fully initialized (maybe due to circular bean reference)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionServiceImpl' defined in class path resource [alfresco/public-services-security-context.xml]: Can't resolve reference to bean 'authorityService' while setting property 'authorityService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityService' defined in class path resource [alfresco/authority-services-context.xml]: Can't resolve reference to bean 'authenticationComponent' while setting property 'authenticationComponent'; nested exception is org.springframework.beans.factory.FactoryBeanNotInitializedException: Error creating bean with name 'authenticationComponent': FactoryBean returned null object: probably not fully initialized (maybe due to circular bean reference)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityService' defined in class path resource [alfresco/authority-services-context.xml]: Can't resolve reference to bean 'authenticationComponent' while setting property 'authenticationComponent'; nested exception is org.springframework.beans.factory.FactoryBeanNotInitializedException: Error creating bean with name 'authenticationComponent': FactoryBean returned null object: probably not fully initialized (maybe due to circular bean reference)
org.springframework.beans.factory.FactoryBeanNotInitializedException: Error creating bean with name 'authenticationComponent': FactoryBean returned null object: probably not fully initialized (maybe due to circular bean reference)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForSharedInstance(AbstractBeanFactory.java:819)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)





ntlm-authentication-context.xml.
–>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>

    <bean id="authenticationDao" class="org.alfresco.repo.security.authentication.ntlm.NullMutableAuthenticationDao">
       <property name="nodeService">
           <ref bean="nodeService" />
       </property>
    </bean>

    <!– The authentication component.                                      –>

    <!– Use the passthru authentication component to authenticate using    –>
    <!– user accounts on one or more Windows servers.                      –>
   
    <!– Properties that specify the server(s) to use for passthru          –>
    <!– authentication :-                                                  –>
    <!–   useLocalServer   use the local server for authentication         –>
    <!–   domain           use domain controllers from the specified domain–>
    <!–   servers          comma delimted list of server addresses or      –>
    <!–                    names                                           –>
      
    <bean id="authenticationComponentImpl" class="org.alfresco.repo.security.authentication.ntlm.NTLMAuthenticationComponentImpl">
        <property name="useLocalServer">
            <value>false</value>
        </property>
        <property name="domain">
            <value>DNEU</value>
        </property>
        <property name="personService">
            <ref bean="personService" />
        </property>
        <property name="nodeService">
            <ref bean="nodeService" />
        </property>
        <property name="guestAccess">
            <value>true</value>
        </property>
    </bean>
   
</beans>

Outcomes