Fix bug #8897 - winbind_krb5_locator only returns one IP address.
authorJeremy Allison <jra@samba.org>
Wed, 25 Apr 2012 22:17:09 +0000 (15:17 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 7 May 2012 16:22:33 +0000 (18:22 +0200)
commitcf39e013930d29574826f6ad3a259fe47203c000
treefc353c8111beba0c3cee784af016239fe0431fed
parentd9377cc6fd0db9fa00ffd6b47cb48036779221ae
Fix bug #8897 - winbind_krb5_locator only returns one IP address.

Reported by Dina_Fine@Dell.com.

Don't ask the DC for an IP list when locating kdc's. Ask for the
name and use getaddrinfo to get all possible addresses instead.
(cherry picked from commit 56b0ec0e91f9af0eb6c109fc1cc300ad5fee3fe6)
nsswitch/winbind_krb5_locator.c