Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import ssl
  2. import ldap3
  3.  
  4. server = ldap3.Server(host='domaincontroller.example.com', port=636,
  5. use_ssl=True, tls=tls_configuration,
  6. get_info=ldap3.ALL)
  7. con = ldap3.Connection(server, version=3,
  8. auto_bind=True,
  9. raise_exceptions=True,
  10. user='EXAMPLE\username',
  11. password='MySecret',
  12. authentication=ldap3.NTLM)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement