04-03-2009 10:30 AM
04-05-2009 11:15 AM
04-06-2009 08:51 AM
04-06-2009 10:11 AM
04-07-2009 09:10 AM
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
04-07-2009 02:51 PM
No bean named 'ldap1InitialDirContextFactory' is defined
indique que vous n'avez certainement pas recopié la totalité de l'exemple 04-14-2009 09:52 AM
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:
04-14-2009 10:35 AM
04-14-2009 10:51 AM
<?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>
04-15-2009 12:59 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.