Second part of fix for bug 8953 - winbind can hang as nbt_getdc() has no timeout.
commite360b953eff11b62749220aed0b2e0dd1a5d97c4
authorHerb Lewis <hlewis@panasas.com>
Tue, 29 May 2012 23:38:53 +0000 (29 16:38 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 22 Jun 2012 19:49:41 +0000 (22 21:49 +0200)
tree5a3c4cc222fdb3a80ebf104db35ec1a7c4bb00eb
parentd2a03ca2a432b54d5c681d4cf5999ed7d1d93609
Second part of fix for bug 8953 - winbind can hang as nbt_getdc() has no timeout.

If we're running with SEC_ADS and we don't get a cldap response from
the server when querying its name, don't fall back to NetBIOS requests
as they're unlikely to succeed.

Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit b0a17d803dea133146ac9ee1a25c87fea7bd4cd8)
source3/winbindd/winbindd_cm.c