develooper Front page | perl.ldap | Postings from March 2011

Re: IO::Socket and IPv6

Thread Previous | Thread Next
From:
Quanah Gibson-Mount
Date:
March 2, 2011 16:38
Subject:
Re: IO::Socket and IPv6
Message ID:
8660F7F434CD83C6F2069225@[192.168.1.2]
--On Tuesday, March 01, 2011 2:01 PM -0800 Quanah Gibson-Mount 
<quanah@zimbra.com> wrote:

> --On Tuesday, March 01, 2011 1:46 PM -0800 Quanah Gibson-Mount
> <quanah@zimbra.com> wrote:
>
>> If I move the 10.11.12.13 address prior to all of the IPv6 pieces, it
>> works fine.  Other IPv4 tools work without issue.  So if you see weird
>> behavior out of Net::LDAP on IPv6 enabled systems even if you are only
>> dealing with IPv4, this may be the cause.
>
> To clarify slightly -- It has to do with the hostname.  Specifying a URI
> of ldap://<hostname>:389/ fails.  Specifying a URI with the IPv4 address
> works.  So something is broken in how IO::Socket is determining the IPv4
> address for the hostname.

After a bit of debugging, the root problem is Perl's implementation of 
inet_aton.  I've filed a bug with Perl core.

--Quanah


--

Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About