winbindd: Call set_dc_type_and_flags on the internal domain
commit2e961bf598e58178ce0d4ed5e35553acd882e436
authorAndrew Bartlett <abartlet@samba.org>
Fri, 16 May 2014 06:10:23 +0000 (16 18:10 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 11 Jun 2014 08:18:26 +0000 (11 10:18 +0200)
tree337771214caf5b77e926e36022249d9fce96d3c0
parent791c38282d681c60eaedb47803b9043991f5950d
winbindd: Call set_dc_type_and_flags on the internal domain

This allows the AD DC to be picked up correctly and gives the correct DNS name.

To ensure no confusion, we also always init it with the full DNS name.

It also means that, aside from the BUILTIN domain the initialized
flag is set only in one place, which will help when we add more details
to the domain structure in the future.

This in turn allows kerberos authentication against winbindd on the AD DC.

Andrew Bartlett

Change-Id: Idc829cfe5f2e867c87107b49275b17f294821dcd
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/winbindd_cache.c
source3/winbindd/winbindd_cm.c
source3/winbindd/winbindd_proto.h
source3/winbindd/winbindd_samr.c
source3/winbindd/winbindd_util.c