+ldaptest

This commit is contained in:
Nico Schottelius 2020-02-20 11:56:47 +01:00
parent 8160d01471
commit 0a1ccadda2

8
ldaptest.py Normal file
View file

@ -0,0 +1,8 @@
import ldap3
from ldap3 import Server, Connection, ObjectDef, Reader, ALL
import os
server = Server("ldaps://ldap1.ungleich.ch")
conn = Connection(server, 'cn=Nico Schottelius,ou=users,dc=ungleich,dc=ch', os.environ['PW'], auto_bind=True)
print(conn)