+ldaptest
This commit is contained in:
parent
8160d01471
commit
0a1ccadda2
1 changed files with 8 additions and 0 deletions
8
ldaptest.py
Normal file
8
ldaptest.py
Normal 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)
|
Loading…
Reference in a new issue