py-ldap question
Laszlo Nagy
gandalf at designaproduct.biz
Tue Dec 12 08:24:28 EST 2006
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>
More information about the Python-list
mailing list