Fix bug #8897 - winbind_krb5_locator only returns one IP address.
commitda87aafb09ab682a9d1329fafbaeb7492d17e815
authorJeremy Allison <jra@samba.org>
Wed, 25 Apr 2012 22:17:09 +0000 (25 15:17 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sat, 30 Jun 2012 11:42:58 +0000 (30 13:42 +0200)
treee876e60f96ac0cbe2022ef5b47c31ff1c5be8081
parentf28fea98458e0b3c3510f02b98177e8c46c12d3c
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)
(cherry picked from commit cf39e013930d29574826f6ad3a259fe47203c000)
nsswitch/winbind_krb5_locator.c