huge among of time to bind

Cedric Briner brinerlist at
Fri Jul 7 14:06:53 CEST 2006

model name      : Intel(R) Pentium(R) 4 CPU 2.40GHz


It takes about 45 seconds to bind to an ldap server using this code.
``top'' shows that in works a 100 % percent of its capacities during
this 45 sec. I also checked the network usage without seeing any big
transfer of data (using the gnome applet to watch the resources)

Am I doing something wrong in this code ???

import ldap
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_ALLOW)
l = ldap.initialize('ldaps://')
username='cn=observatoire agent,ou=observatoire,ou=Applications,dc=unige,dc=ch'
password  = "not_copied"

# this is the line which takes 45 secs ?

thx in advance for any hints .


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

More information about the python-ldap mailing list