AnsweredAssumed Answered

OpenLDAP+Alfresco

Question asked by pinguim on Sep 3, 2008
Latest reply on Oct 24, 2008 by ivo.costa
Viva,

Tenho andado a tentar configurar o Alfresco com autenticação num servidor OpenLDAP mas sem sucesso.
O Alfresco arranca sem registo de erros mas a autenticação não é feita com sucesso.
A máquina onde está instalado o Alfresco e o LDAP é um debian etch. A versão do Alfresco é o alfresco-community-tomcat-2.9.0dev.tar.gz
Os users no LDAP residem todos numa OU com o nome People. Ex: uid=penguin,ou=People,dc=domain,dc=tls
A configuração usada é a seguinte:
chaining-authentication-context.xml

   
   
   
   
       
           
       
       
           
       
       
           
       
   
   
   
       
           
       
       
            uid=%s,ou=People,dc=domain,dc=tls
       
   
   
   
   



ldap-authentication.properties
ldap.authentication.userNameFormat=uid=%s,ou=People,dc=domain,dc=tls

# 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://ldap.domain.tls: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=

ldap-authentication-context.xml

   
   
   
   
   
       
           
       
       
           
            uid=%s,ou=People,dc=domain,dc=tls
       
   
   
   
   
       
           
               
               
                    com.sun.jndi.ldap.LdapCtxFactory
               
               
               
               
               
               
                    ldap://ldap.domain.tls:389
               
               
               
               
               
               
               
                    simple
               
               
               
               
               
                    cn=admin,dc=domain,dc=tls
               
               
               
               
                    secret
               
           
       
   
   

Outcomes