cancel
Showing results for 
Search instead for 
Did you mean: 

NTLM, passthru authentication component

m4mf
Champ in-the-making
Champ in-the-making
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>
4 REPLIES 4

hm
Champ in-the-making
Champ in-the-making
I think the problem is whith your ntlm-authentication-context.xml

I ran into the exact same problem when the domain property was specified, when I removed this all worked as expected.

Secondly you need to add the servers property to the ntlm-authentication-context.xml, looks like you are missing that setting.

Hope this helps.

m4mf
Champ in-the-making
Champ in-the-making
Thanks for your suggestion, but:

Using Alfresco 1.2 with this configuration for NTLM everything is perfect working!

Only with Alfresco 1.3 there are this errors.

There is somethnig new in 1.3 for
NTLM, but I can't find what!

Any help appreciate!

m4mf
Champ in-the-making
Champ in-the-making
1. No Errors more after correction:
    <bean id="authorityService" class="org.alfresco.repo.security.authority.AuthorityServiceImpl">
        <property name="authenticationComponent">
            <ref bean="authenticationComponentImpl" />

2.  But CIFS authentication is not working now:

this will be the same problem as in:
http://forums.alfresco.com/viewtopic.php?t=2139&highlight=disallow


Will the problem be corrected in the community release ?


16:32:30,125 DEBUG [org.alfresco.smb.protocol.auth] Null CIFS logon allowed
16:32:30,125 DEBUG [org.alfresco.smb.protocol.auth] User  logged on  (type Null)
16:32:30,125 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup from user=XUser, password=XPassword, ANSIpwd=XPassword, domain=PC851913, os=Windows Server 2003 3790 Service Pack 1, VC=1, maxBuf=61440, maxMpx=4, authCtx=[NTLM,Challenge=a3ad8df416292cac]
16:32:30,125 DEBUG [org.alfresco.smb.protocol.auth]   MID=16, UID=0, PID=65279
16:32:30,125 DEBUG [org.alfresco.smb.protocol.auth] Authenticated user XUser sts=Disallow via Passthru
16:32:30,125 DEBUG [org.alfresco.smb.protocol.auth] User XUser, access denied

Please help me.

kevinr
Star Contributor
Star Contributor
http://forums.alfresco.com/viewtopic.php?t=2139

Eventually all bug fixes from the Enterprise Network will be rolled into the Community version. With the Community version you get the latest cutting edge features but we can't always guarentee they will work 100%! Smiley Happy The Alfresco Enterprise Network is the way to ensure you have a stable, supported build with a known set of functionality and fixes with specific platform certification. It allows us to make sure that commerical companies using Alfresco can be sure they have a stable build that they can feel happy deploying in a production environment. I'm sure you appreciate and understand the reasoning behind this.

Thanks,

Kevin