AnsweredAssumed Answered

LDAP Configuration - Alfresco V3.2 - Login failed [SOLVED]

Question asked by oferprtz on Dec 8, 2009
Latest reply on Dec 16, 2009 by mattyc
Hello all,

I'm quite new at the Alfresco system.

first of all im using: Alfresco 3.2 CE with Microsoft windows server 2003 r2.
i tried to configure ldap on the alfresco but with no success.
i've read:

ive been told not to touch this directory at all: e:\Alfresco\tomcat\webapps\share\WEB-INF
with all the configuration files inside…

so i tried to do the following:
1. I've changed the file: e:\Alfresco\tomcat\shared\classes\
ldap.synchronization.groupSearchBase=ou\=Security Groups,ou\=MYGROUP,dc=MYCOMPANY,dc=MYCOMPANY_SUFFIX
ldap.synchronization.userSearchBase=ou\=User Accounts,ou\=MYGROUP,dc=MYCOMPANY,dc=MYCOMPANY_SUFFIX

restarted alfresco and it didnt work…

2. ive changed back the file to its original state and did the following:
   a. Updated the file: c:\Alfresco\tomcat\shared\classes\ to contain:
   b. ive copied the file: from: E:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\subsystems\Authentication\ldap\
      to: E:\Alfresco\tomcat\shared\classes\alfresco\extension\subsystems\Authentication\ldap\ldap1\
      and ive put the following arguments inside:
# This flag enables use of this LDAP subsystem for authentication. It may be
# that this subsytem should only be used for synchronization, in which case
# this flag should be set to false.

# 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
# In Active Directory, this can either be the user principal name (UPN) or DN.
# UPNs are in the form <sAMAccountName>@domain and are held in the userPrincipalName attribute of a user

# The LDAP context factory to use

# The URL to connect to the LDAP server

# The authentication mechanism to use

# 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

# 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 \

# Comma separated list of user names who should be considered administrators by default

# This flag enables use of this LDAP subsystem for user and group
# synchronization. It may be that this subsytem should only be used for
# authentication, in which case this flag should be set to false.

# The default principal to bind with (only used for LDAP sync). This should be a UPN or DN

# The password for the default principal (only used for LDAP sync)***********

# 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.

# The query to select all objects that represent the groups to import.

# The query to select objects that represent the groups to import that have changed since a certain time.

# The query to select all objects that represent the users to import.

# The query to select objects that represent the users to import that have changed since a certain time.

# The group search base restricts the LDAP group query to a sub section of tree on the LDAP server.
ldap.synchronization.groupSearchBase=ou\=Security Groups,ou\=MYOU,dc=MYCOMPANY

# The user search base restricts the LDAP user query to a sub section of tree on the LDAP server.
ldap.synchronization.userSearchBase=ou\=User Accounts,ou\=MYOU,dc=MYCOMPANY

# The name of the operational attribute recording the last update time for a group or user.

# The timestamp format. Unfortunately, this varies between directory servers.

# The attribute name on people objects found in LDAP to use as the uid in Alfresco

# The attribute on person objects in LDAP to map to the first name property in Alfresco

# The attribute on person objects in LDAP to map to the last name property in Alfresco

# The attribute on person objects in LDAP to map to the email property in Alfresco

# The attribute on person objects in LDAP to map to the organizational id  property in Alfresco

# The default home folder provider to use for people created via LDAP import

# The attribute on LDAP group objects to map to the gid property in Alfrecso

# The group type in LDAP

# The person type in LDAP

# The attribute in LDAP on group objects that defines the DN for its members

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

and give it a shot, but no success im still getting this error:
09:49:19,159 ERROR [org.alfresco.web.scripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 11080008 Login failed
org.alfresco.web.scripts.WebScriptException: 11080008 Login failed
   at org.alfresco.repo.web.scripts.bean.AbstractLoginBean.login(
   at org.alfresco.repo.web.scripts.bean.LoginPost.executeImpl(
   at org.alfresco.web.scripts.DeclarativeWebScript.executeImpl(
   at org.alfresco.web.scripts.DeclarativeWebScript.execute(
   at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(
   at org.alfresco.web.scripts.AbstractRuntime.executeScript(
   at org.alfresco.web.scripts.AbstractRuntime.executeScript(
   at org.alfresco.web.scripts.servlet.WebScriptServlet.service(
   at javax.servlet.http.HttpServlet.service(
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
   at org.apache.catalina.core.StandardWrapperValve.invoke(
   at org.apache.catalina.core.StandardContextValve.invoke(
   at org.apache.catalina.core.StandardHostValve.invoke(
   at org.apache.catalina.valves.ErrorReportValve.invoke(
   at org.apache.catalina.core.StandardEngineValve.invoke(
   at org.apache.catalina.connector.CoyoteAdapter.service(
   at org.apache.coyote.http11.Http11Processor.process(
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

ive also tried to change the parameter usernameformat=%s to:
but still the same error…

Im actually spent 2 full days to make it work, ive read tons of articles in the internet and wiki's but with no success… :cry:

can someone please help me?
what ive did wrong?

thank you for reading this..