P. 1
Alfresco With OpenLdap(SimpleAuth)

Alfresco With OpenLdap(SimpleAuth)

4.0

|Views: 4,061|Likes:
Published by mryoshio
This report describes how to set up Alfresco with OpenLDAP in simple authentication.
This report describes how to set up Alfresco with OpenLDAP in simple authentication.

More info:

Published by: mryoshio on Jun 13, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

Alfresco with OpenLDAP (simple authentication

)

2008/06/12 mryoshio

Alfresco with OpenLDAP(simple authentication)

Index
Summary
Notice

2 2 3 3 3 4 4 4 4 5 5 5 7 7

Environment
Software System

Install & Configure Alfresco
Download Install Configure

Install & Configure OpenLDAP
Download & Install Configure

Check it works
Login Alfresco

Alfresco with OpenLDAP(simple authentication)

1

Summary
This report shows how to setup Alfresco with OpenLDAP in using simple authentication. So you have to add some special settings when you need secure authentication.

Notice
The words like “mryoshio”, “YAMADA” are examples.They don’t have special meanings. Please replace them with your domain or favorite ones.

Alfresco with OpenLDAP(simple authentication)

2

Environment
Software
Alfresco Server
OS Alfresco OpenLDAP Mac OS X 10.4.11 2.1.0 Community Network CentOS 5.1 2.3.27

OpenLDAP Server

System
Alfresco Server OpenLDAP Server

valid user?

Alfresco
Yes/No

OpenLDAP

try login

Login OK/NG

Client

Alfresco with OpenLDAP(simple authentication)

3

Install & Configure Alfresco
Download
- Go to Alfresco Download site. http://sourceforge.net/project/showfiles.php?group_id=143373&package_id=157460&release_id=524558 - Download alfresco-community-tomcat-2.1.0.tar.gz on your desktop.

Install
- Execute following commands. $ cd ${ALF_HOME} 1 $ tar xvzf ~/Desktop/alfresco-community-tomcat-2.1.0.tar.gz

Configure
- Edit ldap-authentication-context.xml . $ cd ${ALF_HOME}/tomcat/shared/classes/alfresco/extension/ $ cp ldap-authentication-context.xml.sample ldap-authentication-context.xml $ vi ldap-authentication-context.xml ---------L.41 ~~~ L.64 ~~~ L.72 ---------<value>DIGEST-MD5</value> => <value>simple</value> <value>ldap://openldap.domain.com:389</value> => <value>ldap://<Your OpenLDAP Server 2>:389</value> <value>%s</value> => <value>cn=%s,dc=mryoshio,dc=jp</value>

1 2

${ALF_HOME} means your Alfresco install directory. Replace it with your server name or IP address. 4

Alfresco with OpenLDAP(simple authentication)

Install & Configure OpenLDAP
Download & Install
- Donwload and install OpenLDAP via yum. # yum install openldap-servers

Configure
- Edit /etc/openldap/slapd.conf. $ vi /etc/openldap/slapd.conf ---------suffix ---------- Create a new LDIF file on a host which have ldapXXX commands. $ vi ~/Desktop/alfSample.ldif ---------# top dn: dc=mryoshio,dc=jp objectClass: dcObject objectClass: organization o: mryoshio corporation dc: mryoshio dn: cn=Manager,dc=mryoshio,dc=jp objectClass: organizationalRole cn: Manager # member dn: cn=YAMADA Yuji,dc=mryoshio,dc=jp objectClass:inetOrgPerson sn: YAMADA cn: YAMADA Yuji userPassword: yamada
Alfresco with OpenLDAP(simple authentication)

“dc=mryoshio,dc=jp”

rootdn “cn=Manager,dc=mryoshio,dc=jp”

5

uid: yamayu givenName: Yuji mail: yuji.yamada@mryoshio.jp o: mryoshio corporation ---------Register entries by ldapadd command. $ ldapadd -x -h <Your OpenLDAP Server> -D “cn=Manager,dc=mryoshio,dc=jp“ -W -f alfSample.ldif Check registered entries $ ldapsearch -h <Your OpenLDAP Server> -p 389 -x -b “dc=mryoshio,dc=jp“ -s sub “uid=*“

Alfresco with OpenLDAP(simple authentication)

6

Check it works
Login Alfresco
Access to http://<Your Alfresco Server 1>:8080/alfresco/ Input User Name: YAMADA Yuji, Password: yamada and Login. It’s OK if you logged in.

1

Replace it with your server name or IP address. 7

Alfresco with OpenLDAP(simple authentication)

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->