moulinette/lib/yunohost_ldap.py

7 lines
144 B
Python
Raw Normal View History

2012-10-06 17:57:08 +02:00
# -*- coding: utf-8 -*-
import ldap
conn = ldap.initialize('ldap://localhost:389')
conn.simple_bind_s("cn=admin,dc=yunohost,dc=org","secret")