Hello,
I'm using the ldap module under Windows. This is the error that I get:
import ldap
l = ldap.initialize(ldaps://neptunus.msnet:636)
l.simple_bind_s(cn=gandalf,ou=Users,dc=neptunus,dc=msnet,gandalf)
l.search_s(ou=AddressBooks,dc=neptunus,dc=msnet, ldap.SCOPE_SUBTREE,
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)
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)
Laszlo Nagy wrote:
l = ldap.initialize(ldaps://neptunus.msnet:636)
[..]
ldap.SERVER_DOWN: {'info': 'error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', 'desc':
Can't contact LDAP server}
I think that I need to specify to the openldap client to trust the