Skip to main content

Simple access to LDAP Directory Information Tree.

Project description

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

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

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

# show attributes of root-node
root.load_attrs()
print root.attrs

# get childs of root
print root.get_childs()

# get subtree of root
print root.get_subs()

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

LDAP-Hopper-0.1.0.tar.gz (2.4 kB view hashes)

Uploaded Source

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