From 58b8f72af68eaba567a273904dcc07c01dc3b00d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 4 Oct 2006 15:05:00 +0000 Subject: r19064: This code block is already #ifdef'ed by WITH_ADS which should imply HAVE_KRB5. If WITH_ADS does not imply KRB5, we have to fix that. Lets see what the build farm thinks about this. Volker (This used to be commit 27b063078dff0d8c5eb552dd73825f6858d04e4b) --- source3/nsswitch/winbindd_cm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c index 43a2e286a1..a9f6ea3000 100644 --- a/source3/nsswitch/winbindd_cm.c +++ b/source3/nsswitch/winbindd_cm.c @@ -782,7 +782,7 @@ static BOOL dcip_to_name( const char *domainname, const char *realm, namecache_store(name, 0x20, 1, &ip_list); DEBUG(10,("dcip_to_name: flags = 0x%x\n", (unsigned int)ads->config.flags)); -#ifdef HAVE_KRB5 + if ((ads->config.flags & ADS_KDC) && ads_sitename_match(ads)) { /* We're going to use this KDC for this realm/domain. If we are using sites, then force the krb5 libs @@ -796,7 +796,7 @@ static BOOL dcip_to_name( const char *domainname, const char *realm, saf_store( domainname, name); saf_store( realm, name); } -#endif + ads_destroy( &ads ); return True; } -- cgit