From: Kai Blin Date: Wed, 12 Aug 2009 15:47:12 +0000 (+0200) Subject: s3 wbinfo: Only call afs_settoken_str if compiled with WITH_FAKE_KASERVER X-Git-Tag: tevent-0.9.8~304 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=19855ca2bb13c515c5ee1ec495dac7b41b6b1878;p=samba.git s3 wbinfo: Only call afs_settoken_str if compiled with WITH_FAKE_KASERVER --- diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c index fd13c41e4dd..5fe0090567a 100644 --- a/nsswitch/wbinfo.c +++ b/nsswitch/wbinfo.c @@ -1472,6 +1472,7 @@ static bool wbinfo_auth_crap(char *username, bool use_ntlmv2, bool use_lanman) return WBC_ERROR_IS_OK(wbc_status); } +#ifdef WITH_FAKE_KASERVER /* Authenticate a user with a plaintext password and set a token */ static bool wbinfo_klog(char *username) @@ -1531,6 +1532,13 @@ static bool wbinfo_klog(char *username) d_printf("Successfully created AFS token\n"); return true; } +#else +static bool wbinfo_klog(char *username) +{ + d_fprintf(stderr, "No AFS support compiled in.\n"); + return false; +} +#endif /* Print domain users */