slapd only listening on IPv6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/19/2011 06:11 AM, Ellsworth, Josh wrote:
> I am working on a test 389DS instance and yesterday it started giving me
> trouble. The admin server would not start up correctly. I think that the
> problem is because slapd is not listening on IPv4.
>
> [root at ldaptest ~]# netstat -aunt
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address Foreign Address State
...
> tcp 0 0 :::389 :::* LISTEN

That's normal and workable on a standard Linux host.  Is this a 
Debian/Ubuntu system?  They've changed the default behavior, there.

We're looking at a similar problem on the Courier MTA list.  Richard, I 
think the easy fix to this is to override the system default with 
setsockopt:

        int v6only = 0;
        if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
                       (char *)&on, sizeof(v6only)) == -1)
            perror("setsockopt IPV6_V6ONLY");

Josh, if this is Debian, you should be able to edit 
/etc/sysctl.d/bindv6only.conf and disable the change that Debian made.


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux