** Description changed:

  Binary package hint: smbldap-tools
  
  Connecting to IPv6 LDAP servers gives "erreur LDAP: Can't contact master
  ldap server for writing (IO::Socket::INET: connect: Connection refused)
  at /usr/share/perl5/smbldap_tools.pm line 322."
  
  Net::LDAP in Lucid does support IPv6. However this has to be explicitly set, 
and if you do, you also need libio-socket-inet6-perl.
  Once you install that, and change /usr/share/perl5/smbldap_tools.pm like:
  
-         $ldap_master = Net::LDAP->new(
-             "$config{masterLDAP}",
-             inet6 => 1,
-             port    => "$config{masterPort}",
+         $ldap_master = Net::LDAP->new(
+             "$config{masterLDAP}",
+             inet6 => 1,
+             port    => "$config{masterPort}",
  
  Then it works.
  
- However it seems a bit of a kludge to have to manually define inet6
- boolean.
- 
- Looking at 
http://search.cpan.org/~shlomif/IO-Socket-INET6-2.67/lib/IO/Socket/INET6.pm, I 
see that that does 4+6.
- So I guess the long-term solution is to fix Net::LDAP so that it uses only 
INET6.pm, and accepts an optional flag to force address family in case of 
connection problems.
+ Looking around I discovered that the entire state of IPv6 in Perl is, well, 
sub-optimal.
+ It could be fixed at several levels: smbldap-tools, Net::LDAP, or in the Perl 
core.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/729181

Title:
  Can't connect to IPv6 LDAP servers

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to