*** ldapdriver.py.original 2012-01-04 21:19:31.782637410 +0100 --- ldapdriver.py 2012-01-04 21:28:19.871283181 +0100 *************** *** 123,130 **** --- 123,133 ---- return inner def connect(self): + self.ldap.set_option(self.ldap.OPT_X_TLS_REQUIRE_CERT, self.ldap.OPT_X_TLS_NEVER) try: self.conn = self.ldap.initialize(self.url) + self.conn.set_option(self.ldap.OPT_PROTOCOL_VERSION, 3) + self.conn.set_option(self.ldap.OPT_X_TLS,self.ldap.OPT_X_TLS_DEMAND) self.conn.simple_bind_s(self.user, self.password) except self.ldap.SERVER_DOWN: self.conn = None