Skip to main content

Piotr Malinski's Library tagged plone   View Popular

16 Apr 09

Plone CMS - Community Ubuntu Documentation

LDAP integration

WORK IN PROGRESS, CURRENT VERSION IS BROKEN. It seems there are many problems regarding libldap and python-ldap in ubuntu/debian. Having everything in a chroot would probably sort many problems out (also the python2.5 and 2.4 that get mixed up)

LDAP is not needed to use the advanced features of plone. However it is very useful when you wish to use other software and share the authentication mechanisms with Plone. A possible example would be to run Plone and PHPBB3 but have your users register only once. Phpbb is in php, plone is in python, phpbb runs on apache/mysql and plone runs on Zope/ZODB. LDAP is the aspirin to your integration headaches... Just... trust me :D

To use LDAP, you will need an LDAP server, if you do not already have one you can follow this doc https://help.ubuntu.com/community/OpenLDAPServer

You will also need to install a new product for Plone/Zope, called PloneLDAP

To install PloneLDAP, you need to modify your buildout.cfg, and add 'Products.PloenLDAP' in the [buildout] section, after

eggs=
elementtree

so it looks like

eggs=
elementtree
Products.PloneLDAP

There are some problems with the ubuntu python-ldap and openldap packages, so we are going to build them for our own, personal Plone use with buildout (yes, buildout IS amazing).

python-ldap comes as an egg and is in the cheese shop, however, openldap is not, and openldap comes as a standard ./configure, make, make install source package. GREAT! We actually have a python egg that creates python eggs out of standard source packages. Darwin was right after all, evolution is the only way.

Integrate the following code in your buildout.cfg:

[buildout]
versions = versions
parts =
openldap
python-ldap

[versions]
python-ldap = 2.3.5

[openldap]
recipe = zc.recipe.cmmi
url = ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-stable-20071118.tgz

[python-ldap]
recipe = zc.recipe.egg:custom
egg = python-ldap
include-dirs =
${openldap:location}/include
library-dirs =
${openldap:location

help.ubuntu.com/...Plone - Preview

ldap plone

1 - 20 of 40 Next ›
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo