From b3702f5deea81b94fd3b07e0941f1c2c40af7cfc Mon Sep 17 00:00:00 2001 From: Kload Date: Thu, 28 Nov 2013 17:16:18 +0100 Subject: [PATCH] I am Batman --- yunohost.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yunohost.py b/yunohost.py index c0c23bff..c5b3b896 100644 --- a/yunohost.py +++ b/yunohost.py @@ -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'))