[Date Prev][Date Next]
Re: (ITS#4601) 20 second delay in ldap_initialize on FreeBSD
On Wednesday 28 June 2006 22:02, email@example.com wrote:
> Full_Name: Laurens Blankers
> Version: 2.3.24
> OS: FreeBSD 6.1
> Submission from: (NULL) (18.104.22.168)
> I'm experiencing a 20 second delay in programs that access my OpenLDAP
> directory using the openldap library including courier-authlib and
Please test instead with OpenLDAP software, such as ldapsearch. Also, you m=
be able to see (by running ldapsearch under something like strace) where th=
delay is (note the network connection done just before the delay).
> I have tracked down the problem to the ldap_initialize in the openldap
> library. The first time this function is called it takes exactly 20 secon=
> to return. After this delay the connection is established successfully
> using the output from ldap_initialize. The second time ldap_initialize is
> called within the same process it seems to return immediately. During the
> 20 seconds there is not network activity.
> Needless to say this problem is slightly annoying because it result in a =
> second wait after every login.
This sounds like you are having DNS timeouts. You should provide some=20
information about your set-up, for example whether the LDAP server is remot=
whether you are accessing it via a hostname or via the IP address etc etc.
I don't think anyone generally experiences any problems like this due to=20
libldap, so I think this is a configuration problem, this bug should most=20
likely be closed.
ISP Systems Specialist
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v22.214.171.124 (GNU/Linux)
-----END PGP SIGNATURE-----