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
TODO
====
* TLS/SSL Support. in LDAPConnector
* Improve retry logic in LDAPSession
* Extend LDAPSession object to handle Fallback server(s)
Changes
=======
* 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>
=============================================
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
TODO
====
* TLS/SSL Support. in LDAPConnector
* Improve retry logic in LDAPSession
* Extend LDAPSession object to handle Fallback server(s)
Changes
=======
* 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
Release history Release notifications | RSS feed
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.1.tar.gz
(5.9 kB
view details)
File details
Details for the file bda.ldap-1.2.1.tar.gz
.
File metadata
- Download URL: bda.ldap-1.2.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ca441d7ecfd4087833a3fd5235dba2f250452e5d2f4badeda454ef5d4ad507e |
|
MD5 | bf4bb81cbb27c9bf4230028c89766e65 |
|
BLAKE2b-256 | 7589e6bb5da4607d53fe9cc0ac290872fa3138ce9afd273e5017dbe8987ebe11 |