[RESOLU]Ldap et alfresco-4.0

cancel
Showing results for 
Search instead for 
Did you mean: 
mimigay
Member II

[RESOLU]Ldap et alfresco-4.0

j'ai résolu mon PB
Bonjour
j'installe alfresco 4.0 sur un centos 6 linux 64 4giga de memoire
l'installation c'est bien déroulée envois de mail ok ..
ca se gate quand j'installe ldap
j'ai des erreurs CIFS (dont je ne veux pas me servir) et des erreurs de synchronisation sur userRegistry,   ldapNameResolver
création de subsystems/Authentication/ldap/ldap1 ect.. chaining dans global-properties 


et dans la log alfresco j'ai ces erreurs :

 ERROR [org.alfresco.fileserver] CIFS server configuration error, Error creating bean with name 'authenticationComponent' defined in file [/home/alfresco/alfresco-4/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/../common-ldap-context.xml]: Cannot resolve reference to bean 'userRegistry' while setting bean property 'ldapNameResolver'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRegistry' defined in file [/home/alfresco/alfresco-4/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/../common-ldap-context.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'attributeMapping' of bean class [org.alfresco.repo.security.sync.ldap.LDAPUserRegistry]: Bean property 'attributeMapping' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponent' defined in file [/home/alfresco/alfresco-4/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/../common-ldap-context.xml]: Cannot resolve reference to bean 'userRegistry' while setting bean property 'ldapNameResolver'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRegistry' defined in file [/home/alfresco/alfresco-4/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/../common-ldap-context.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'attributeMapping' of bean class [org.alfresco.repo.security.sync.ldap.LDAPUserRegistry]: Bean property 'attributeMapping' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
14:04:45,990 WARN  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Failed initial synchronize with user registries
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRegistry' defined in file [/home/alfresco/alfresco-4/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/../common-ldap-context.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'attributeMapping' of bean class [org.alfresco.repo.security.sync.ldap.LDAPUserRegistry]: Bean property 'attributeMapping' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
**********************************************************************************
**********************************************************************************
et plus tard ces erreurs sur la synchronisation ……..

5:10:22,507 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Subscriptions' subsystem, ID: [Subscriptions, default] complete
15:10:22,517 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Disabled - clear non-missing user usages …
15:10:22,581 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Found 0 users to clear
15:10:22,582 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] … cleared non-missing usages for 0 users
15:10:22,582 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
15:10:22,653 ERROR [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Synchronization aborted due to error
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRegistry' defined in file [/home/alfresco/alfresco-4/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/../common-ldap-context.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'attributeMapping' of bean class [org.alfresco.repo.security.sync.ldap.LDAPUserRegistry]: Bean property 'attributeMapping' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1361)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)


j'ai repris les valeurs de la conf ldap de la v3.2 qui fonctionne très bien
y a t'il d'autres fichiers  à configurer que ldap1 common ldap context et ldap authentication properties ?
j'utilise un binder pour la synchronisation le meme que pour la v32
je ne vois pas de solution à mon problème et je ne sais pas d'ou sort ce cn=daftAsABrush,dc=woof qui apparait en trace cote serveur ldap ???
merci d'avance si vous avez une piste (je n'ai pas osé mettre mes fichiers ldap de conf)
Mireille
3 Replies
sibe
Active Member

Re: [RESOLU]Ldap et alfresco-4.0

Peux-tu détailler ta configuration stp. De préférence tu peut poster aussi le contenu de ton fichier alfresco-global.properties ou fichier de configuration de Lap.
jeanjot
Active Member

Re: [RESOLU]Ldap et alfresco-4.0

Un petit message explicatif pour nous dire comment tu as résolu ton problème …
rguinot
Customer

Re: [RESOLU]Ldap et alfresco-4.0

Bean property 'attributeMapping' is not writable or has an invalid setter method

Je suppose que tu avais copié un bout de config qq part qui ne s'appliquait pas à la version que tu utilises présentement.