def __init__(self, uri, dn, password, storage=None, filterstr=None, **kwargs): """ Set up our object by creating a search client, connecting, and binding. """ if storage is not None: self.data = shelve.open(storage) self.uuid_dn = shelve.open(storage + 'uuid_dn') self.dn_attrs = shelve.open(storage + 'dn_attrs') self.using_shelve = True else: self.data = {} self.uuid_dn = {} self.dn_attrs = {} self.using_shelve = False self.data['cookie'] = None self.present = [] self.refresh_done = False self.filterstr = filterstr SimpleLDAPObject.__init__(self, uri, **kwargs) self.simple_bind_s(dn, password)
def __init__(self, uri): # Init the ldap connection SimpleLDAPObject.__init__(self, uri)
def __init__(self, uri): # Init the ldap connection SimpleLDAPObject.__init__(self, uri)