Second part of fix for bug 8953 - winbind can hang as nbt_getdc() has no timeout.
authorHerb Lewis <hlewis@panasas.com>
Tue, 29 May 2012 23:38:53 +0000 (16:38 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 31 May 2012 19:05:03 +0000 (21:05 +0200)
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>
source3/winbindd/winbindd_cm.c

index 9b04abab610b68cf69444a7c7ef6f86bc359f27b..7d7244ad1fe03d3898778ce466a6513845087962 100644 (file)
@@ -1185,6 +1185,7 @@ static bool dcip_to_name(TALLOC_CTX *mem_ctx,
                }
 
                ads_destroy( &ads );
+               return false;
        }
 #endif