Skip to content

Python recipes

Jeff Stafford edited this page May 19, 2018 · 1 revision

This is a "recipe book" of things that can be done using the ezldap Python API. These examples all assume that you've imported the ezldap package like so:

import ezldap

You must run ezldap config on the command-line before the package will work.

Bind to a directory

Anonymous bind:

connection = ezldap.Connection('ldap://localhost')

Bind as a user:

connection = ezldap.auto_bind()
Clone this wiki locally