Skip to main content

LDAP convenience library

Project description

LDAP convenience library with caching support
=============================================

This Package provides objects for LDAP communication. You probably be
interrested in the LDAPSession object.

>>> from bda.ldap.base import ONELEVEL
>>> from bda.ldap.session import LDAPSession
>>> from bda.ldap.properties import LDAPServerProperties

>>> props = LDAPServerProperties('localhost',
... 389,
... 'cn=user,dc=example,dc=com',
... 'secret')
>>> session = LDAPSession(props)
>>> res = session.search('(uid=*)', ONELEVEL)

LDAP Queries are cached by default. You can disable this via ``cache`` kw arg
when instanciating the properties obeject.

>>> props = LDAPServerProperties('localhost',
... 389,
... 'cn=user,dc=example,dc=com',
... 'secret',
... cache=False)


Dependencies
------------

* python-ldap
* bda.cache

Notes on python-ldap
--------------------

Although python-ldap is available via pypi, we excluded it from
``install_requires`` due to different compile issues on different
platforms.

So you have to make sure that ``pyhon-ldap`` is available on your system in
any way.

TODO
----

* TLS/SSL Support. in LDAPConnector
* Improve retry logic in LDAPSession
* Extend LDAPSession object to handle Fallback server(s)
* Convenience for modification calls refering to adding modifying and deleting
attributes.

Changes
-------

* 1.2.3 (rnix, 2009-02-11)
* bugfix in ``LDAPSession``. pass ``force_reload`` to relevant execution
function

* 1.2.2 (rnix, jensens - 2009-02-11)
* add buildout for standalone testing
* add tests
* provide relevant objects via package ``__init__``

* 1.2.1 (rnix - 2009-02-10)
* provide same ``search()`` signature in ``LDAPSession`` as
in ``LDAPCommunicator``
* log only on debug

* <= 1.2 (all contributors)
* make it work


Copyright
---------

Copyright (c) 2006-2009: BlueDynamics Alliance, Austria


Credits
-------

* Robert Niederreiter <rnix@squarewave.at>
* Jens Klein <jens@bluedynamics.com>
* Georg Bernhard <g.bernhard@akbild.ac.at>
* Florian Friesdorf <flo@chaoflow.net>
* Johannes Raggam <johannes@bluedynamics.com>

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

bda.ldap-1.2.3.tar.gz (10.0 kB view details)

Uploaded Source

File details

Details for the file bda.ldap-1.2.3.tar.gz.

File metadata

  • Download URL: bda.ldap-1.2.3.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bda.ldap-1.2.3.tar.gz
Algorithm Hash digest
SHA256 1b573e892e5ecfba6c2a9c211e80cd2c62c81956c67da60e88ae875137a407ec
MD5 c3ad72c7817163e7e9e2919957c3e385
BLAKE2b-256 82af00971de71f91db7a09795cd735857d4948771ebcdfd15c8b4168d9e8e508

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