Skip to main content

LDAP Plugin for Zope2 PluggableAuthService (users and groups)

Project description

This is a LDAP Plugin for the Zope2 Pluggable Authentication Service (PAS).

It provides users and/or groups from an LDAP Directory. It works in a plain Zope2 even if it depends on PlonePAS. If Plone is installed an integration layer with a setup-profile and a plone-controlpanel page is available.

pas.plugins.ldap is not releated to the old LDAPUserFolder/ LDAPMultiPlugins and the packages stacked on top of it in any way.

It is based on node.ext.ldap, an almost framework independent ldap stack.

For now users and groups can’t be added or deleted. But properties on both are read/write. See section TODO.

Installation

Zope2

Add to the instance section of your buildout:

eggs =
    ...
    pas.plugins.ldap

zcml =
    ...
    pas.plugins.ldap

Run buildout. Restart Zope.

Then got to your acl_users folder and add an LDAP-Plugin. Configure it using the settings form and activate its features with the activate tab.

Plone

Add to the instance section of your buildout:

eggs =
    ...
    pas.plugins.ldap

Run buildout. Restart Plone.

Then go to the Plone control-panel, select extensions and install the LDAP Plugin. A new LDAP Settings icon appear on the left. Click it and configure the plugin there.

To use an own integration-profile, just add to the profiles metadata.xml file:

...
<dependencies>
    ...
    <dependency>profile-pas.plugins.ldap.plonecontrolpanel:default</dependency>
</dependencies>
...

Additionally ldap settings can be exported and imported with portal_setup. You can place the exported ldapsettings.xml in your integration profile, so it will be imported with your next install again. Attention: The ldap-password is in there in plain text!

Source Code

If you want to help with the development (improvement, update, bug-fixing, …) of pas.plugins.ldap this is a great idea!

The code is located in the github collective.

You can clone it or get access to the github-collective and work directly on the project.

Maintainers are Robert Niederreiter, Jens Klein and the BlueDynamics Alliance developer team. We appreciate any contribution and if a release is needed to be done on pypi, please just contact one of us dev@bluedynamics dot com

Contributors

  • Jens W. Klein <jens [at] bluedynamics [dot] com>

  • Robert Niederrreiter <rnix [at] squarewave [dot] at>

  • Florian Friesdorf <flo [at] chaoflow [dot] net>

TODO

see also ‘Issue-Tracker <https://github.com/collective/pas.plugins.ldap/issues>`_

Milestone 1.1

  • remove portrait monkey patch

  • add/delete users

  • add/delete groups

  • add flags for readonly groups and users

  • modes for only groups or only users from ldap

Nice-to-Have

  • group in group (depends on: node.ext.ldap: group.groups support)

  • roles from ldap

Misc

node.ext.ldap/src/node/ext/ldap/session.py:51:
UnicodeWarning: Unicode equal comparison failed to convert both arguments to
Unicode - interpreting them as being unequal
    if queryFilter in ('', u'', None):

History

1.0.1

  • because of passwordreset problem we figured out that pas searchUsers calls plugins search with both login and name, which was passed to ugm and returned always an empty result [benniboy]

1.0

  • make it work.

  • base work done so far in bda.pasldap and bda.plone.ldap was merged.

License

Copyright (c) 2010-2013, BlueDynamics Alliance, Austria, Germany, Switzerland All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Neither the name of the BlueDynamics Alliance nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY BlueDynamics Alliance AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BlueDynamics Alliance BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pas.plugins.ldap-1.0.1.tar.gz (30.8 kB view details)

Uploaded Source

File details

Details for the file pas.plugins.ldap-1.0.1.tar.gz.

File metadata

File hashes

Hashes for pas.plugins.ldap-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f80a0a696f1d94d7c92bbc3a7d6bab099419bd0c5c366ca5177a999f54b9ab91
MD5 32a5b1cadf2e7c2dbe0eb9619e146045
BLAKE2b-256 5779a0136588bf3f15326fae09da6ee0ff77958f2bb84971a0f4b1ce1032c3d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page