mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
I am Batman
This commit is contained in:
parent
7d6722511f
commit
b3702f5dee
1 changed files with 3 additions and 1 deletions
|
@ -269,7 +269,7 @@ class YunoHostLDAP(Singleton):
|
|||
if anonymous:
|
||||
self.conn.simple_bind_s()
|
||||
self.connected = True
|
||||
elif self.connected:
|
||||
elif self.connected and not password:
|
||||
pass
|
||||
else:
|
||||
if password:
|
||||
|
@ -316,6 +316,8 @@ class YunoHostLDAP(Singleton):
|
|||
|
||||
"""
|
||||
try:
|
||||
self.connected = False
|
||||
self.pwd = False
|
||||
self.conn.unbind_s()
|
||||
except:
|
||||
raise YunoHostError(169, _('An error occured during disconnection'))
|
||||
|
|
Loading…
Add table
Reference in a new issue