r21633: First real fix from me found during the bug hunt.
commit256f36dce3e3a39798b2ad38fa3123669d670597
authorGerald Carter <jerry@samba.org>
Thu, 1 Mar 2007 14:44:25 +0000 (1 14:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:18 +0000 (10 12:18 -0500)
tree885b686b7b82a13c57bc49b7be63dad29f5ed132
parent82dc19f844af65a8815c629e4ec1f354d208a53f
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.
source/nsswitch/winbindd_ads.c