cancel
Showing results for 
Search instead for 
Did you mean: 

Alfrtesco 5.0.d and openLDAP: ldapInitialDirContextFactory fatal error

didierbillard
Champ in-the-making
Champ in-the-making
Hello everyone,

I am still trying to make alfresco community 5.0.d working with openLDAP but wihtout success;

It took me several weeks to sort relevant information from irrelevant or obsolete ones and today I am facing another error when launching alfresco 5.0.d; this fatal error concerns ldapInitialDirContextFactory bean reference which cannot be resolved:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'monitor' defined in file [/opt/alfresco-5.0.d/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/../common-ldap-context.xml]: Cannot resolve reference to bean 'authenticationComponent' while setting bean property 'LDAPAuthenticationComponent'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponent' defined in file [/opt/alfresco-5.0.d/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/../common-ldap-context.xml]: Cannot resolve reference to bean 'ldapInitialDirContextFactory' while setting bean property 'LDAPInitialDirContextFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ldapInitialDirContextFactory' defined in file [/opt/alfresco-5.0.d/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/../common-ldap-context.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException

log and ldap configuration files are joined to this message.

Could anyone help me please to find what is causing this error ?

Thank you for your attention.
2 REPLIES 2

didierbillard
Champ in-the-making
Champ in-the-making
Meanwhile I have modified ldap-authentication.properties configuration file by adding a value for ldap.authentication.trustrstore.passphrase (which was empty up to now).
With this modification, ldapInitialDirContextFactor reference is coorectly resolved but I am facing another problem with signature length:

java.security.SignatureException: Certifcate signature validation failed: got 256 but was expected 128

I guess I made a mistake during ssl certification process but I don't know which one.

If anyone has an idea to solve this problem…

Best regards.

Hello,

Finally I managed to cope with this problem by adding openLDAP certificate file into alfresco-5.0.d truststore file (found at /opt/alfresco-5.0.d/alf_data/keystore directory) using the fllowing command:

root# /opt/alfresco-5.0.d/java/bin/keytool -import -alias ldap_server -keystore ssl.truststore -file <path to your openLDAP crt file> -storetype JCEKS

Now I am able to log LDAP user on alfresco application;

Best regards.