Use simple_bind_s instead of bind_s

This commit is contained in:
Yuriy Taraday
2011-06-24 15:26:15 +04:00
parent 61bbfacf32
commit d7bf56edff

View File

@@ -125,7 +125,7 @@ class LDAPWrapper(object):
def connect(self):
try:
self.conn = self.ldap.initialize(self.url)
self.conn.bind_s(self.user, self.password)
self.conn.simple_bind_s(self.user, self.password)
except self.ldap.SERVER_DOWN:
self.conn = None
raise