and this set option ? ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT,ldap.OPT_X_TLS_NEVER)
HTH Laszlo Nagy a écrit : > By the way, I already tried the set_option function, but I still get the > same error. > > <snip> > import ldap > import local > > ldap.set_option(ldap.OPT_X_TLS_ALLOW,1) > ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT,0) > ldap.set_option(ldap.OPT_X_TLS_CERTFILE,local.LDAP_CACERTFILE) > ldap.set_option(ldap.OPT_X_TLS_CACERTFILE,local.LDAP_CACERTFILE) > > def getnewconnection(logindc,password): > conn = ldap.initialize(local.LDAP_SERVER_URL) > conn.simple_bind_s(logindc,password) > return conn > > if __name__ == '__main__': > conn = getnewconnection(local.LDAP_MANAGER_DC,local.LDAP_MANAGER_PWD) > print conn > > </snip> > -- http://mail.python.org/mailman/listinfo/python-list