AnsweredAssumed Answered

ldap authentication problem

Question asked by inspiron82 on May 22, 2009
Hi guys,
i'm trying to make an ldap-authentication with alfresco labs 3.
My ldap-authentication.properties is:

ldap.authentication.userNameFormat=%s@{company}.dom
#ldap.authentication.userNameFormat=CN=%s,DC={company},DC=dom

# The LDAP context factory to use
ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory

# The URL to connect to the LDAP server
ldap.authentication.java.naming.provider.url=ldap://dc2-{company}:389

# The authentication mechanism to use
ldap.authentication.java.naming.security.authentication=SIMPLE

# The default principal to use (only used for LDAP sync)
ldap.authentication.java.naming.security.principal=glpi@{company}.dom
#ldap.authentication.java.naming.security.principal=CN=glpi,DC={company},DC=dom

# The password for the default principal (only used for LDAP sync)
ldap.authentication.java.naming.security.credentials={password}

# Escape commas entered by the user at bind time
# Useful when using simple authentication and the CN is part of the DN and contains commas
ldap.authentication.escapeCommasInBind=true

# Escape commas entered by the user when setting the authenticated user
# Useful when using simple authentication and the CN is part of the DN and contains commas, and the escaped \, is
# pulled in as part of an LDAP sync
# If this option is set to true it will break the default home folder provider as space names can not contain \
ldap.authentication.escapeCommasInUid=false

I'm sure that url, principal and password are right as i tested them in Apache directory studio.

The error i can see when i try to start alfresco is:

ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ldapInitialDirContextFactory' defined in file [/export/home/alfresco/jboss-eap-4.3/jboss-as/server/alfresco/conf/alfresco/extension/ldap-authentication-context.xml]: Invocation of init method failed; nested exception is org.alfresco.repo.security.authentication.AuthenticationException: Unable to connect to LDAP Server; check LDAP configuration

Can someone help me?
thanks.

Outcomes