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

TODO

  • TLS/SSL Support. in LDAPConnector

  • Improve retry logic in LDAPSession

  • Extend LDAPSession object to handle Fallback server(s)

  • Tests

Credits

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.tar.gz (5.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for bda.ldap-1.2.tar.gz
Algorithm Hash digest
SHA256 0b164189a0f344ff254a5b1f430bd5c0598155f955111ecd382b694838983d4d
MD5 66f800ac5843ab11e34b1d6c2f4765d8
BLAKE2b-256 898aedaba77cb28f6b990a5f68532a3bb64e16998cd1ca61e302d06fbd079b0d

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