<AD join failed>Samba not able to join AD-Domain in Pure IPv6

Jeremy Allison jra at samba.org
Mon May 16 13:06:20 MDT 2011


On Sun, May 15, 2011 at 11:44:20PM -0700, okmanoj wrote:
> Dear Samba-Team,
> 
> While testing samba, I found my samba client (3.5.8, 3.3.15) not able to
> join windows 2008 server if Only IPv6 address are enabled on server (IPv4
> address is disabled from "Local Area Connection property").
> 
> I hope this is not new issue, however while debugging  this issue i found in
> many place samba is considering only IPv4 address (not IPv6) for example
> lib/util_sock.c (open_udp_socket(), interpret_addr())

That's not true. Check out this snippit from v3-5-test inside open_udp_socket().

1383         res = socket(ss.ss_family, SOCK_DGRAM, 0);
1384         if (res == -1) {
1385                 return -1;
1386         }
1387 
1388 #if defined(HAVE_IPV6)
1389         if (ss.ss_family == AF_INET6) {
1390                 struct sockaddr_in6 *psa6;
1391                 psa6 = (struct sockaddr_in6 *)&ss;
1392                 psa6->sin6_port = htons(port);
1393                 if (psa6->sin6_scope_id == 0
1394                                 && IN6_IS_ADDR_LINKLOCAL(&psa6->sin6_addr)) {
1395                         setup_linklocal_scope_id(
1396                                 (struct sockaddr *)&ss);
1397                 }
1398         }
1399 #endif

Also note that interpret_addr() is a specifically IPv4-only function,
only used in the IPv4-only code inside nmbd (NetBIOS-only code).

AFAIK all of 3.5.8 is completely IPv6 enabled and working.

> Currently I am try to debug this issue, meanwhile If samba members can help
> me identifying any setting required for this issue it will be great and save
> re-work.
> 
> Please do let me know if logs are required (however it is very easy to
> reproduce) 

Please open a bug against 3.5.8 at bugzilla.samba.org and attach
level 10 logs there.

Thanks !

Jeremy.


More information about the samba-technical mailing list