Lines Matching refs:self
26 def __init__(self, dir, port, base_dn, admin_rdn, admin_pw):
38 self.dir = dir
39 self.port = port
40 self.ldap_url = "ldap://localhost:" + str(self.port)
41 self.base_dn = base_dn
42 self.admin_rdn = admin_rdn
43 self.admin_dn = admin_rdn + "," + base_dn
44 self.admin_pw = admin_pw
46 def setup(self):
50 def teardown(self):
54 def bind(self):
56 conn = ldap.initialize(self.ldap_url)
57 conn.simple_bind_s(self.admin_dn, self.admin_pw)