level cleared

This commit is contained in:
root 2012-10-25 20:44:28 +02:00
parent e57bb88717
commit 411304311a

View file

@ -223,7 +223,6 @@ class YunoHostLDAP(Singleton):
raise YunoHostError(125, _("Interrupted")) raise YunoHostError(125, _("Interrupted"))
self.level = self.level+1 self.level = self.level+1
print self.level
try: try:
self.conn.simple_bind_s('cn=admin,' + self.base, self.pwd) self.conn.simple_bind_s('cn=admin,' + self.base, self.pwd)
except ldap.INVALID_CREDENTIALS: except ldap.INVALID_CREDENTIALS:
@ -244,7 +243,6 @@ class YunoHostLDAP(Singleton):
""" """
try: try:
print 'WIN !'
self.conn.unbind_s() self.conn.unbind_s()
except: except:
raise YunoHostError(169, _('An error occured during disconnection')) raise YunoHostError(169, _('An error occured during disconnection'))