AnsweredAssumed Answered

Problem with OpenLDAP configuration

Question asked by stefanoel on Dec 28, 2012
Latest reply on Jan 2, 2013 by jpotts
Hello everyone, I'm new to the forum.
I installed Alfresco 4 and I wanted to configure OpenLdap. I followed the example given in the book
Professional Alfresco, which is the same as this

http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fauth-ldap-intro.html

and then I defined my chain in the file

alfresco-global.properties

with the line

authentication.chain=ldap1:ldap,alforig:alfrescoNtlm

so I created my own sub-system:

/opt/alfresco-4.0.d/tomcat/shared/classes/alfresco/extension/subsystem/Authentication/ldap/ldap1


and then I edited the file, placing all, I think, the configurations that are used, and in particular:

ldap.authentication.java.naming.provider.url=ldap://172.XXX.XXX.XXX:389

but when I restart, in the log file catalina.out I see:

2012-11-30 17:17:34,760  ERROR [authentication.ldap.LDAPInitialDirContextFactoryImpl] [main] Unable to connect to LDAP Server; check LDAP configuration
javax.naming.CommunicationException: openldap.domain.com:389 [Root exception is java.net.UnknownHostException: openldap.domain.com]

doing a grep of openldap.domain.com I find that it is the server that is located in the file:

/opt/alfresco-4.0.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/ldap/ldap-authentication.properties

and so I conclude that the application does not take the configuration of the sub-system, why ??
someone knows how to help me ??

a huge thank you

Outcomes