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