moulinette/lib/yunohost_ldap.py
2012-10-06 17:57:51 +02:00

6 lines
144 B
Python

# -*- coding: utf-8 -*-
import ldap
conn = ldap.initialize('ldap://localhost:389')
conn.simple_bind_s("cn=admin,dc=yunohost,dc=org","secret")