AnsweredAssumed Answered

Can't login with ldap

Question asked by sviulacmf on Dec 22, 2016
Latest reply on Dec 28, 2016 by sviulacmf

Hello,

I am trying to do a simple login only, no need for sync any groups or users. I've double checked the configuration over and over, ldap is active in server as well.

I'm trying to achieve login by sAMAccountName.

 

A simple user goes like this:

CN=reader,OU=Utilizadores e Grupos de Gestao,OU=_Utilizadores do Dominio da CMF,DC=cm-xxx,DC=pt


ldap.authentication.active=true


ldap.authentication.allowGuestLogin=false

 

ldap.authentication.userNameFormat=sAMAccountName=%s,OU=Utilizadores e Grupos de Gestao,OU=_Utilizadores do Dominio da CMF,DC=cm-xxx,DC=pt


ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory


ldap.authentication.java.naming.provider.url=ldap://123.11.11.11:389

 

ldap.authentication.java.naming.security.authentication=simple


ldap.authentication.escapeCommasInBind=false


ldap.authentication.escapeCommasInUid=false

 

ldap.authentication.defaultAdministratorUserNames=ldap_read,semivi


ldap.synchronization.active=false

 

# The authentication mechanism to use for synchronization
ldap.synchronization.java.naming.security.authentication=simple

# The default principal to use (only used for LDAP sync)
ldap.synchronization.java.naming.security.principal=CN=reader,OU=Utilizadores e Grupos de Gestao,OU=_Utilizadores do Dominio da CMF,DC=cm-xxx,DC=pt

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

# If positive, this property indicates that RFC 2696 paged results should be
# used to split query results into batches of the specified size. This
# overcomes any size limits imposed by the LDAP server.
ldap.synchronization.queryBatchSize=0

# If positive, this property indicates that range retrieval should be used to fetch
# multi-valued attributes (such as member) in batches of the specified size.
# Overcomes any size limits imposed by Active Directory.
ldap.synchronization.attributeBatchSize=0

# The query to select all objects that represent the groups to import.
ldap.synchronization.groupQuery=(objectclass=group)

# The query to select objects that represent the groups to import that have changed since a certain time.
ldap.synchronization.groupDifferentialQuery=(&(objectclass=group)(!(modifyTimestamp<={0})))

# The query to select all objects that represent the users to import.
ldap.synchronization.personQuery=(objectclass=person)

# The query to select objects that represent the users to import that have changed since a certain time.
ldap.synchronization.personDifferentialQuery=(&(objectclass=person)(!(modifyTimestamp<={0})))

# The group search base restricts the LDAP group query to a sub section of tree on the LDAP server.
ldap.synchronization.groupSearchBase=cn=groups,cn=accounts,dc=example,dc=com

# The user search base restricts the LDAP user query to a sub section of tree on the LDAP server.
ldap.synchronization.userSearchBase=OU=Utilizadores e Grupos de Gestao,OU=_Utilizadores do Dominio da CMF,DC=cm-xxx,DC=pt

# The name of the operational attribute recording the last update time for a group or user.
ldap.synchronization.modifyTimestampAttributeName=modifyTimestamp

# The timestamp format. Unfortunately, this varies between directory servers.
ldap.synchronization.timestampFormat=yyyyMMddHHmmss'Z'

# The attribute name on people objects found in LDAP to use as the uid in Alfresco
ldap.synchronization.userIdAttributeName=cn

# The attribute on person objects in LDAP to map to the first name property in Alfresco
ldap.synchronization.userFirstNameAttributeName=givenName

# The attribute on person objects in LDAP to map to the last name property in Alfresco
ldap.synchronization.userLastNameAttributeName=sn

# The attribute on person objects in LDAP to map to the email property in Alfresco
ldap.synchronization.userEmailAttributeName=mail

# The attribute on person objects in LDAP to map to the organizational id property in Alfresco
ldap.synchronization.userOrganizationalIdAttributeName=o

# The default home folder provider to use for people created via LDAP import
ldap.synchronization.defaultHomeFolderProvider=userHomesHomeFolderProvider

# The attribute on LDAP group objects to map to the authority name property in Alfresco
ldap.synchronization.groupIdAttributeName=cn

# The attribute on LDAP group objects to map to the authority display name property in Alfresco
ldap.synchronization.groupDisplayNameAttributeName=description

# The group type in LDAP
ldap.synchronization.groupType=group

# The person type in LDAP
ldap.synchronization.personType=person

# The attribute in LDAP on group objects that defines the DN for its members
ldap.synchronization.groupMemberAttributeName=memberUid

# If true progress estimation is enabled. When enabled, the user query has to be run twice in order to count entries.
ldap.synchronization.enableProgressEstimation=true

 

any help would be appreciated.

 

Thank you.

Outcomes