9 lines
253 B
Python
9 lines
253 B
Python
|
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)
|