christian-hawk / ldaphelper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ldaphelper

Build Status codecov

Wanna try to make it a little easier

from ldaphelper import LdapConnection(), User

user = 'cn=directory manager'
password = 'amazingpassword'

con = LdapConnection(user,password)
ldp_user = User(con)

user = {
    "uuid" : "johndoe",
    "password" : "strongpassword,
    "mail" : "john.doe@ldaphelper.org",
    "givenName" : "John",
    "sn" : "Doe"
}

added_user = ldp_user.add_user(user)

About

License:MIT License


Languages

Language:Python 100.0%