Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install products.pasgroupsfromldap

How to install Products.PASGroupsFromLDAP

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install products.pasgroupsfromldap
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
1.2.3 Available View build log
Linux (32-bit)
Linux (64-bit)
 
Lastest release
version 1.2.3 on Feb 20th, 2011

This PAS plugin let you connect to some LDAP-Server. We've tested it with OpenLDAP, Apples OpenDirectory and Microsoft Active Directory.

Groups are read-only, so you cant add new groups from Plone into LDAP. This may be added optional in future.

You dont need any mapping like in LDAPMultiPlugins. It just take all groups from the DN you search in. You can use PASGroupsFromLDAP together with LDAPMultiPlugins. But ensure to disable all group related plugins of LDAPMultiPlugins.

PASGroupsFromLDAP is a multi-plugin supporting the interfaces:

  • IGroupsPlugin (from PluggableAuthService, short PAS)
  • IGroupEnumerationPlugin (from PAS)
  • IGroupIntrospection (from PlonePAS)
  • IPropertiesPlugin (from PAS)

Installation

Latest release or subversion needs those steps:

  • make sure you have python-ldap installed, for example on Debian based OS

System Message: WARNING/2 (<string>, line 29)

Bullet list ends without a blank line; unexpected unindent.

sudo apt-get install python-ldap or include it into your buildout. * using buildout, add Products.PASGroupsFromLDAP to the eggs sections of your zope instance. * portal_setup or quickinstaller and install it. * in ZMI YOURPLONE/acl_users/groups_from_ldap/manage you can change LDAP settings * go to the IPropertiesPlugin configuration and make sure groups_from_ldap is on the top.

Update from oldschool product to egg:

In case you need to upgrade an zope instance using an old, non-eggified version, of this module you need to fix your zope like so:

  • Start zope in debug mode:

    System Message: WARNING/2 (<string>, line 47)

    Literal block expected; none found.

>>> app['Control_Panel']['Products'].manage_delObjects(['PASGroupsFromLDAP'])
>>> import transaction()
>>> transaction.commit()
  • Restart zope
  • Delete PASGroupsFromLDAP plugin from you acl_users.
  • Re-create the plugin.

TODO

  • Cleanup adding / editing of the plugin.
  • Do not add a default groups_from_ldap object due setuphandler

Changes

  • 1.2.1 (rnix - 2009-03-10)

System Message: WARNING/2 (<string>, line 65)

Bullet list ends without a blank line; unexpected unindent.

Fix the sometimes weird adding and edit mechanisms. * 1.2.0 (rnix - 2009-03-10) Write ZMI add form for plugin. Nobody missed it yet?? * 1.1.2 (rnix - 2009-03-10) Document update procedure * 1.1.1 (rnix - 2009-02-16) set p_changed True after managing configuration. This bug was never detected since the LDAP Session itself was previously persisted in the plugin. * 1.1 (rnix - 2009-02-10) Fix ldap property on plugin object due to changes in bda.ldap. * 1.1 unreleased (any) Initial work.

Subscribe to package updates

Last updated Feb 20th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.