Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Object Oriented LDAP

Project description

Using the python-ldap library: http://www.python-ldap.org/


Provides the foundation for manipulating ldap
taking a highly object oriented approach.


Use the provided object types, override them, or create your own.


Add the three following environmental variables:

- LDAP_CONNECTION_URI
- LDAP_CONNECTION_DN
- LDAP_CONNECTION_PASSWORD


Here is an example:

```python
import os


os.environ['LDAP_CONNECTION_URI'] = 'example.com'
os.environ['LDAP_CONNECTION_DN'] = 'CN=<username>,OU=People,DC=EXAMPLE,DC=COM'
os.environ['LDAP_CONNECTION_PASSWORD'] = '<password>'


from ooldap.foundation import LDAPObject


ldapobject = LDAPObject('CN=johndoe,OU=People,DC=EXAMPLE,DC=COM')

ldapobject.data
ldapobject.description
ldapobject.get_attribute('mail')
```

Project details


Download files

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

Files for ooldap, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size ooldap-0.1.1-py2.7.egg (5.5 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size ooldap-0.1.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page