New LDAP connection pool that does locking

This commit is contained in:
Rob Crittenden
2007-10-08 16:18:38 -04:00
parent 60ce1db581
commit eddc5d4e42
2 changed files with 64 additions and 25 deletions

View File

@@ -265,10 +265,11 @@ class IPAdmin(SimpleLDAPObject):
def set_proxydn(self, proxydn):
self.proxydn = proxydn
def set_krbccache(self, krbccache):
def set_krbccache(self, krbccache, principal):
if krbccache is not None:
os.environ["KRB5CCNAME"] = krbccache
self.sasl_interactive_bind_s("", sasl_auth)
self.principal = principal
self.proxydn = None
def getEntry(self,*args):