[Samba] winbind and ipv6

Jeremy Allison jra at samba.org
Thu Jun 23 11:49:47 MDT 2011


On Fri, Jun 10, 2011 at 10:22:27AM +0600, Eugene M. Zheganin wrote:
> Hi.
> 
> FreeBSD 8.2-RELEASE
> Samba 3.4.9
> security = ads
> 
> Samba as domain member. Controllers on Win2008 R2.
> When using IPv4 all is fine.
> 
> Today I added IPv6 on controllers, winbind stopped working when using IPv6.
> I.e. when
> 
> password server = <NAME>, which resolves to AAAA, winbind says
> 
> ===Cut===
> # wbinfo -t
> checking the trust secret via RPC calls failed
> error code was NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND (0xc0000233)
> Could not check secret
> ===Cut===
> 
> when I set password server to IPv4 address, all is fine again.
> Before you will start to blame me for lack of IPv6 connectivity, I
> want to say that IPv6 is working in this LAN for about half-a-year.
> Samba server can ping6 domains controller.
> Furthermore, when issuing kinit I see in tcpdump that it gets
> tickets by using ipv6. Samba is used by squid to authenticate users
> on this server. Users are succesfully connecting to squid via IPv6.
> Disturbing strings in log:
> 
> ===Cut===
> [2011/06/09 22:13:58,  3] winbindd/winbindd_cm.c:1597(connection_ok)
>   connection_ok: Connection to HQ-GC.norma.com for domain SOFTLAB is
> not connected
> [2011/06/09 22:13:58,  0] libads/kerberos.c:693(print_kdc_line)
>   print_kdc_line: can't resolve name for kdc with non-default port
> [fd00::32d]. Error hostname nor servname provided, or not known
>   .cm_prepare_connection: Unknown error: 0
> [2011/06/09 22:13:58,  0] libads/kerberos.c:693(print_kdc_line)
>   print_kdc_line: can't resolve name for kdc with non-default port
> [fd00::32d]. Error hostname nor servname provided, or not known
>   .cm_prepare_connection: Unknown error: 0
> [2011/06/09 22:13:58,  0] libads/kerberos.c:693(print_kdc_line)
>   print_kdc_line: can't resolve name for kdc with non-default port
> [fd00::32d]. Error hostname nor servname provided, or not known
> ===Cut===
> (lots of these)

Ok, we only get into this message when the following is true:

if (port != 0 && port != DEFAULT_KRB5_PORT)

- which means the port is being resolved as a strange
value. Can you reproduce with a debug level 10 log which
should tell you what port it's tring to use ?

That might give a hint as to what is the problem.

Jeremy.


More information about the samba mailing list