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

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



--nextPart1299675.20FYdLRtQJ
Content-Type: text/plain;
  charset="iso-8859-6"
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) (80.126.13.231)
>
>
> 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=
ay=20
be able to see (by running ldapsearch under something like strace) where th=
e=20
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=
ds
> 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 =
20
> 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=
e,=20
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.

=2D-=20
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)

--nextPart1299675.20FYdLRtQJ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBEo9UUrJK6UGDSBKcRAhi/AJ4ipRDKhV7Zs+TxE8TYYUz22UUY1ACghawl
Grl4rzLOObZ//2GwhUuzTe8=
=Ptaw
-----END PGP SIGNATURE-----

--nextPart1299675.20FYdLRtQJ--