huge among of time to bind

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


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


hello,

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 ???

code
------
import ldap
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_ALLOW)
ldap.set_option(ldap.OPT_X_TLS_CACERTDIR,'/etc/ssl/certs/')
l = ldap.initialize('ldaps://newpeople.unige.ch:636')
username='cn=observatoire agent,ou=observatoire,ou=Applications,dc=unige,dc=ch'
password  = "not_copied"

# this is the line which takes 45 secs ?
l.bind_s(username,password,ldap.AUTH_SIMPLE)


thx in advance for any hints .

Ced.

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
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642



More information about the python-ldap mailing list