[fix] Properly disconnect from LDAP

This commit is contained in:
Jérôme Lebleu 2015-07-18 16:28:48 +02:00
parent 927bba777f
commit ddb66076d4
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View file

@ -5,6 +5,7 @@
*.egg-info
*.swp
*.swo
*~
dist
build
eggs

View file

@ -43,6 +43,11 @@ class Authenticator(BaseAuthenticator):
self.userdn = ''
self.authenticate(None)
def __del__(self):
"""Disconnect and free ressources"""
if self.con:
self.con.unbind_s()
## Implement virtual properties