https://bugs.openldap.org/show_bug.cgi?id=9199
Bug ID: 9199 Summary: Disable IPv6 makes listener work on IP address but hostname or localhost Product: OpenLDAP Version: 2.4.49 Hardware: All OS: Linux Status: UNCONFIRMED Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: st-wong@cuhk.edu.hk Target Milestone: ---
Hi,
We're compiling 2.4.49 on CentOS8.
Make test fails at "test000-rootdse" with error Can't contact LDAP server. Debug log shows error "Address already in use".
We're quite sure the port (9011) is not in use.
Starting slapd with test command verified the error:
../servers/slapd/slapd -f testrun/slapd.1.conf -h ldap://localhost:9011
Found that it's okay to start slapd if listener URL is using IP address instead.
Checked ldap_url_parse* call may not work as expected with V6 disabled (configure option --disable-ipv6).
Re-do configuration and make without "--disable-ipv6" works as expected.
Would you help? Thanks.
https://bugs.openldap.org/show_bug.cgi?id=9199
--- Comment #1 from Michael Ströder michael@stroeder.com --- I had a similar issue on a openSUSE Linux where getent hosts localhost started to return ::1 instead of 127.0.0.1. ISC dhcpd could not connect to slapd anymore even though it's listening on :::389 (according to netstat -tulpn).
https://bugs.openldap.org/show_bug.cgi?id=9199
--- Comment #2 from Ryan Tandy ryan@openldap.org --- I wonder if the patch for #8376 fixes this?
https://bugs.openldap.org/show_bug.cgi?id=9199
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- This indicates that you have an IPv6 mapping for localhost in your /etc/hosts file.
https://bugs.openldap.org/show_bug.cgi?id=9199
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED