in gen.py [0:0]
def __init__(self, url, binddn, bindpw): # Easy to front-load client handle creation. It will lazy connect. self.handle = ldap.initialize(url) self.handle.simple_bind_s(binddn, bindpw)