Created
May 16, 2017 22:40
-
-
Save mfilipe/f07e199441e439b99700b8af3f3dc107 to your computer and use it in GitHub Desktop.
pyldap test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ldap | |
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_ALLOW) | |
conn = ldap.initialize('ldaps://ldap.company.com:636') | |
conn.protocol_version = ldap.VERSION2 | |
conn.simple_bind_s('[email protected]', 'password') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment