r21633: First real fix from me found during the bug hunt.
authorGerald Carter <jerry@samba.org>
Thu, 1 Mar 2007 14:44:25 +0000 (14:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:18 +0000 (12:18 -0500)
commita4db672e26811e2ece0cb91f0cc181d3e271eb68
tree1758ab4c77ab965ba47d9dce2921d07deada4092
parent5f246689612bae257ebd01a226c360abac977d1e
r21633: First real fix from me found during the bug hunt.

ads_cached_connection() does not call get_dc_name()
before ads_connect() and therefore does not setup
the environment to look at krb5.conf.DOMAIN file
before sending the TGT request.  The failure I'm seeing
occurs ni a multi-DC domain where we get back preuath
failed after we just joined the domain.
(This used to be commit 256f36dce3e3a39798b2ad38fa3123669d670597)
source3/nsswitch/winbindd_ads.c