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

Re: getaddrinfo and network crash (ITS#2443)



At 07:31 AM 4/14/2003, eric.gerbier@meteo.fr wrote:
>Full_Name: eric gerbier
>Version: 2.0.21 and more
>OS: linux
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (137.129.151.43)
>
>
>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 ?

In short, no.  The getaddrinfo(3) function doesn't provide a
timeout parameter.  However, I note that your operating system
may provide a mechanism to control the timeout used.  That is,
you likely can adjust your host configuration to avoid this
problem.

This issue will be closed as the requested change is not
possible.


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