Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. host all all 10.0.0.0/8 ldap ldapserver=10.10.10.10 ldapport=389 ldaptls=0 ldapprefix="uid=DOMAIN" ldapsuffix="ou=All Users,dc=ad,dc=example,dc=com"
  2.  
  3. tls_configuration = None
  4. use_ssl = False
  5. server = Server('ldaps://10.10.10.10:389', use_ssl, tls_configuration)
  6. bind_user='DOMAINmyname'
  7. bind_password='mypassword'
  8. conn = Connection(server, bind_user, bind_password)
  9. conn.bind()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement