Created
September 19, 2014 17:55
-
-
Save nahuel/95f8e3cf90a953abeafe to your computer and use it in GitHub Desktop.
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
BIND_DN = "cn=read-only-admin,dc=example,dc=com" | |
BIND_PASSWORD = 'password' | |
import simpleldap | |
conn = simpleldap.Connection('ldap.forumsys.com',dn=BIND_DN, password=BIND_PASSWORD) | |
user = conn.get("uid=euler") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment