[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4601) 20 second delay in ldap_initialize on FreeBSD

Content-Type: text/plain;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Wednesday 28 June 2006 22:02, laurens@blankersfamily.com wrote:
> Full_Name: Laurens Blankers
> Version: 2.3.24
> OS: FreeBSD 6.1
> URL:
> Submission from: (NULL) (
> I'm experiencing a 20 second delay in programs that access my OpenLDAP
> directory using the openldap library including courier-authlib and
> nss_ldap.

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.

Buchan Milne
ISP Systems Specialist

Content-Type: application/pgp-signature

Version: GnuPG v1.4.2.2 (GNU/Linux)