This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Simple access to LDAP Directory Information Tree.

Project Description
===========
LDAP-Hopper
===========

LDAP-Hopper is a simplistic Python binding for accessing an LDAP Directory
Information Tree(DIT).

#!/usr/bin/env python
from ldap_hopper import Cursor

# access the root-node
server = 'localhost'
base_dn = 'dc=example,dc=org'
bind_dn = 'cn=admin,dc=example,dc=org'
bind_pw = 'secret'
root = Cursor(server, base_dn, bind_dn, bind_pw)

# show attributes of root-node
print root.attrs

# get childs of root
print root.childs

# get subtree of root
print root.subs

# Filter uid objects from all subs
print filter(lambda x: x['uid'], root.subs)

# add child node
new_child = {
'objectClass': ['organizationalUnit'],
'ou': ['padawans'],
}
new_node = root.add_child('ou=node_1,dc=example,dc=org', new_child)
new_node = root.add_child('ou=node_2', new_child) # will auto-expand self.dn
print new_node

# search for an object
root.search('ou', new_node['ou']) # no scope defaults to onelevel
root.search('ou', new_node['ou'], ldap.SCOPE_SUBTREE) # default can be overwritten

# delete child node
node_1.delete()


=========
Resources
=========

Source: https://github.com/baccenfutter/ldap_hopper
PyPi : https://pypi.python.org/pypi/LDAP-Hopper/
Release History

Release History

This version
History Node

3.2.0

History Node

3.0.1

History Node

0.3.0

History Node

0.2.6

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
LDAP-Hopper-3.2.0.tar.gz (4.4 kB) Copy SHA256 Checksum SHA256 Source Dec 23, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting