Skip to content

Instantly share code, notes, and snippets.

@nahuel
Created September 19, 2014 17:55
Show Gist options
  • Save nahuel/95f8e3cf90a953abeafe to your computer and use it in GitHub Desktop.
Save nahuel/95f8e3cf90a953abeafe to your computer and use it in GitHub Desktop.
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