diff --git a/ldaptest.py b/ldaptest.py new file mode 100644 index 0000000..f28fcf6 --- /dev/null +++ b/ldaptest.py @@ -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)