Skip to content

Instantly share code, notes, and snippets.

@etianen
Created April 20, 2017 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etianen/34b2567bc957acaf7ac4d854d6f82f27 to your computer and use it in GitHub Desktop.
Save etianen/34b2567bc957acaf7ac4d854d6f82f27 to your computer and use it in GitHub Desktop.
ldap3.Connection(
ldap3.Server(
"ldap://msldap.uct.ac.za",
allowed_referral_hosts=[("*", True)],
),
user="01421894@wf.uct.ac.za",
password="password",
auto_bind=ldap3.AUTO_BIND_NO_TLS,
raise_exceptions=True,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment