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
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
LDAP-Hopper-0.1.1.tar.gz
(2.4 kB
view hashes)