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

getaddrinfo and network crash (ITS#2443)

Full_Name: eric gerbier
Version: 2.0.21 and more
OS: linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

I use openldap for linux authentification.
My PAM configuration is : first check ldap server (pam_ldap), then use local
files (pam_unix).
But I have a problem when the network crash, with ldap server name : the
getadddrinfo call (in ldap_connect_to_host function, os-ip.c source file) is
very long (does not seem to use any configurable timeout), in fact too long for
pam, so I cannot connect to my computer.

Is there any way to have a timeout in this call to avoid this problem ?

I have an old version, but I had a look in last stable openldap release (2.1.17)
and the code was unchanged.