Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponentLDAP1' defined in file [D:\serveurs\alfresco_pro\tomcat\shared\classes\alfresco\extension\ldap1-authentication-context.xml]: Cannot resolve reference to bean 'ldap1InitialDirContextFactory' while setting bean property 'LDAPInitialDirContextFactory'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ldap1InitialDirContextFactory' is defined
No bean named 'ldap1InitialDirContextFactory' is defined
indique que vous n'avez certainement pas recopié la totalité de l'exemple Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponentLDAP1' defined in file [D:\serveurs\alfresco_pro\tomcat\shared\classes\alfresco\extension\ldap1-authentication-context.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'nodeService' of bean class [org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl]: Bean property 'nodeService' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Caused by:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN'
'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean name="authenticationDaoLDAPMUNICH" class="org.alfresco.repo.security.authentication.DefaultMutableAuthenticationDao">
<property name="allowDeleteUser">
<value>true</value>
</property>
</bean>
<bean id="authenticationComponentLDAPMUNICH" class="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl">
<property name="LDAPInitialDirContextFactory">
<ref bean="ldapMunichInitialDirContextFactory"/>
</property>
<property name="userNameFormat">
<value>${ldapMunich.authentication.userNameFormat}</value>
</property>
<property name="nodeService">
<ref bean="nodeService" />
</property>
<property name="personService">
<ref bean="personService" />
</property>
<property name="transactionService">
<ref bean="transactionService" />
</property>
</bean>
<bean id="ldapMunichInitialDirContextFactory" class="org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl">
<property name="initialDirContextEnvironment">
<map>
<entry key="java.naming.factory.initial">
<value>${ldapMunich.authentication.java.naming.factory.initial}</value>
</entry>
<entry key="java.naming.provider.url">
<value>${ldapMunich.authentication.java.naming.provider.url}</value>
</entry>
<entry key="java.naming.security.authentication">
<value>${ldapMunich.authentication.java.naming.security.authentication}</value>
</entry>
<entry key="java.naming.security.principal">
<value>${ldapMunich.authentication.java.naming.security.principal}</value>
</entry> <entry key="java.naming.security.credentials">
<value>${ldapMunich.authentication.java.naming.security.credentials}</value>
</entry>
</map>
</property>
</bean>
</beans>
<?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="authenticationService" class="org.alfresco.repo.security.authentication.ChainingAuthenticationServiceImpl">
<property name="authenticationServices">
<list>
<ref bean="authenticationServiceLDAPMUNICH"/>
</list>
</property>
<property name="mutableAuthenticationService">
<ref bean="authenticationServiceLDAPNANTES"/>
</property>
<property name="sysAdminCache">
<ref bean="sysAdminCache"/>
</property>
</bean>
<bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.ChainingAuthenticationComponentImpl">
<property name="authenticationComponents">
<list>
<ref bean="authenticationComponentLDAPMUNICH"/>
</list>
</property>
<property name="mutableAuthenticationComponent">
<ref bean="authenticationComponentLDAPNANTES"/>
</property>
</bean>
<!– LDAPNANTES –>
<bean id="authenticationServiceLDAPNANTES" class="org.alfresco.repo.security.authentication.AuthenticationServiceImpl">
<property name="authenticationDao">
<ref bean="authenticationDaoLDAPNANTES"/>
</property>
<property name="ticketComponent">
<ref bean="ticketComponent"/>
</property>
<property name="authenticationComponent">
<ref bean="authenticationComponentLDAPNANTES"/>
</property>
</bean>
<!– LDAPMUNICH –>
<bean id="authenticationServiceLDAPMUNICH" class="org.alfresco.repo.security.authentication.AuthenticationServiceImpl">
<property name="authenticationDao">
<ref bean="authenticationDaoLDAPMUNICH"/>
</property>
<property name="ticketComponent">
<ref bean="ticketComponent"/>
</property>
<property name="authenticationComponent">
<ref bean="authenticationComponentLDAPMUNICH"/>
</property>
</bean>
</beans>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN'
'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean name="ldapAuthenticationPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="ignoreUnresolvablePlaceholders">
<value>true</value>
</property>
<property name="locations">
<value>classpath:alfresco/extension/ldap-authentication.properties</value>
</property>
</bean>
</beans>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.