mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Properly disconnect from LDAP
This commit is contained in:
parent
927bba777f
commit
ddb66076d4
2 changed files with 6 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,6 +5,7 @@
|
|||
*.egg-info
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
dist
|
||||
build
|
||||
eggs
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue