cancel
Showing results for 
Search instead for 
Did you mean: 

Open Ldap for alfresco3.4

gowri_7489
Champ in-the-making
Champ in-the-making
Hi,

      Im using alfresco3.4 community.can any one help me to integrate OpenLdap with alfresco3.4 community edition.
And tell me where to download it.
8 REPLIES 8

jpotts
World-Class Innovator
World-Class Innovator
On a Linux server you can use a tool like apt to install OpenLDAP. You'll want slapd and ldap-utils, so the command would be:
apt-get install slapd ldap-utils

Google can offer more help on install and config of OpenLDAP.

For help configuring OpenLDAP with Alfresco, see the official documentation:
http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/concepts/auth-config-examples.html
http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/concepts/auth-ldap-openldaptips.html

Jeff

gowri_7489
Champ in-the-making
Champ in-the-making
Im using windows and alfresco3.4.I also download OpenLDAP s/w.Now how can i integrate those things?and also my requirement is to login alfresco with one system,and i get this from another system without using login and password?
help me.

jpotts
World-Class Innovator
World-Class Innovator
To understand how to use OpenLDAP for authentication, consult the documentation links I provided earlier in the thread.

The second requirement you are asking for sounds like single sign-on (SSO). That is a complex requirement and depends on exactly what systems you have in place. I highly recommend reading the official documentation on SSO options that are available out-of-the-box. If it isn't covered there, check the wiki and the forums. If you can't find a step-by-step specific to the systems you are trying to integrate with SSO, you'll likely have to code it yourself.

Jeff

gowri_7489
Champ in-the-making
Champ in-the-making
Thank you.

i install openldap for windows with my system32bit and

i followed the above link you provided for the integration steps.

i include the files for ldap authentication with the following folder

C:\Alfresco\tomcat\shared\classes\alfresco\extension\subsystem\Authentication\ldap\internalLDAP\ldap-authentication.properties

the code is:

# 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.
ldap.authentication.active=true

#
# This properties file brings together the common options for LDAP authentication rather than editing the bean definitions
#
ldap.authentication.allowGuestLogin=true
# How to map the user id entered by the user to that passed through to LDAP
# - simple
#    - this must be a DN and would be something like
#      uid=%s,ou=People,dc=company,dc=com
# - digest
#    - usually pass through what is entered
#      %s
# If not set, an LDAP query involving ldap.synchronization.personQuery and ldap.synchronization.userIdAttributeName will
# be performed to resolve the DN dynamically. This allows directories to be structured and doesn't require the user ID to
# appear in the DN.
ldap.authentication.userNameFormat=

# 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://openldap.domain.com:389

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

# 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

# Comma separated list of user names who should be considered administrators by default
ldap.authentication.defaultAdministratorUserNames=

# 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.
ldap.synchronization.active=true

# 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\=Manager,dc\=company,dc\=com

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

# 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\=groupOfNames)

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

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

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

# The group search base restricts the LDAP group query to a sub section of tree on the LDAP server.
ldap.synchronization.groupSearchBase=ou\=Groups,dc\=company,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\=People,dc\=company,dc\=com

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

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

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

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

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

# 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


in this where to include my company,my url and my other details.i also include chaining details.

After this i login with alfresco4.0 with that login,i dont know where it(openldap) located with alfresco4.0.  is any UI portion is available for openLDAP login or tell me how can i login the user with openLdap?

jpotts
World-Class Innovator
World-Class Innovator
The file you have provided appears to be the out-of-the-box ldap-authentication.properties. You must edit it to match the settings for your local openldap implementation. Alfresco has to be able to determine the host where openldap is running, how to find your users, how to find your groups, and how to bind to your directory.

For example, if I compare my local test ldap-authentication.properties file with yours, here are the differences:

# The URL to connect to the LDAP server 
ldap.authentication.java.naming.provider.url=ldap://localhost:10389

# The default principal to use (only used for LDAP sync)
ldap.synchronization.java.naming.security.principal=uid=admin,ou=system

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

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

# The group search base restricts the LDAP group query to a sub section of tree on the LDAP server.
ldap.synchronization.groupSearchBase=ou\=groups,dc\=someco,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\=people,dc\=someco,dc\=com

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

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

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

I'm running Apache Directory Server, not OpenLDAP, so some of these values may be different for you, but at least it gives you an idea of what you must change to make the configuration work for your LDAP setup.

Jeff

gowri_7489
Champ in-the-making
Champ in-the-making
thanks jeff.

         I now have a doubt that after install open ldap i changed some details in slapd.conf file and maxcrc.ldif file.
Then i login using(created in maxcrc.ldif this file)openLDAP userid and password.it provided the remote authentication failed error.how can i use openLDAP?help me?

jpotts
World-Class Innovator
World-Class Innovator
I use Apache Directory Server so I can't be of much help here. But many people use OpenLDAP and it isn't Alfresco-specific, so you might see if some OpenLDAP resources can help you. You might start here:
http://www.openldap.org/

Jeff

gowri_7489
Champ in-the-making
Champ in-the-making
i need better help.because still i cant connect alfresco4.0 community with openLDAP.

its not sync with alfresco4.0.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.