AnsweredAssumed Answered

Multiple Chaining

Question asked by tom.obreno on Apr 9, 2009
Dear all,

I have some problems setting up multiple authentication chain between LDAP and Alfresco within Alfresco Entreprise 2.2.3.
I use LDAP sync to get the user names:

ldap-authentication.properties file
#
# This properties file brings together the common options for LDAP authentication rather than editing the bean definitions
#

# How to map the user id entered by the user to taht passed through to LDAP
# - simple
#    - this must be a DN and would be something like
#      CN=%s,DC=company,DC=com
# - digest
#    - usually pass through what is entered
#      %s    
ldap.authentication.userNameFormat=%s@*******

# 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://***********: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=********

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

# 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=false

# 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

Can some provide me a good set of chaining-authentication-context.xml.sample and ldap-authentication-context.xml please?
I tried a lot of posts of those files but none worked.

Many thanks in advance,

Tom Obreno

Outcomes