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

(ITS#6910) Ldap fails to start when duplicate entries are in /etc/hosts



Full_Name: Quanah Gibson-Mount
Version: 2.4.25
OS: Linux 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (75.111.45.108)


If an IP address entry for a host appears more than once in /etc/hosts, slapd
fails to start, complaining the port is already in use.

Failed to start slapd.  Attempting debug start to determine error.
daemon: listen(ldap://zre-ldap002.eng.vmware.com:389, 5) failed errno=98
(Address already in use)

Sample /etc/hosts:
zimbra@zre-ldap002:~$ cat /etc/hosts
127.0.0.1       localhost
10.137.242.52   zre-ldap002.eng.vmware.com      zre-ldap002
10.137.242.52   zre-ldap002.eng.vmware.com      zre-ldap002

It appears that we don't validate whether or not we've already tried to start up
on a given interface...