Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ssl
- import ldap3
- server = ldap3.Server(host='domaincontroller.example.com', port=636,
- use_ssl=True, tls=tls_configuration,
- get_info=ldap3.ALL)
- con = ldap3.Connection(server, version=3,
- auto_bind=True,
- raise_exceptions=True,
- user='EXAMPLE\username',
- password='MySecret',
- authentication=ldap3.NTLM)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement