Metadata-Version: 1.0
Name: ldapom
Version: 0.9
Summary: A simple ldap object mapper for python
Home-page: https://github.com/f1ori/ldapom
Author: Florian Richter
Author-email: mail@f1ori.de
License: MIT
Description: LDAP object mapper
        ==================
        
        This python module provides a simple LDAP object mapper
        
        License
        -------
        
        MIT, so do what you want, but leave the copyright notice in the code
        
        Github
        ---------
        
        Fork it!
        
        https://github.com/f1ori/ldapom
        
        Usage
        -----
        
        Playing around:
        
            >>> import ldapom
            >>> lc = ldapom.LdapConnection(uri='ldap://localhost:1389', base='dc=example,dc=com', login='cn=admin,dc=example,dc=com', password='admin')
            >>> node = lc.get_ldap_node('cn=f1ori,ou=people,dc=example,dc=com')
            >>> node # just show
            <LdapNode: cn=f1ori,ou=people,dc=example,dc=com>
            >>> node.givenName # show name
            <LdapAttribute: givenName=Richter>
            >>> node.givenName = 'Meier' # change givenname
            >>> node.save() # save all changes
            >>> node.delete() # delete
        
        Create a new ldap node:
        
            >>> node2 = lc.new_ldap_node('cn=newuser,ou=people,dc=example,dc=com')
            >>> node2.objectClass = ['class1', 'class2']
            >>> node2.givenName = 'new'
            >>> node2.save()
        
Keywords: ldap object mapper
Platform: UNKNOWN
