From 19855ca2bb13c515c5ee1ec495dac7b41b6b1878 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Wed, 12 Aug 2009 17:47:12 +0200 Subject: [PATCH] s3 wbinfo: Only call afs_settoken_str if compiled with WITH_FAKE_KASERVER --- nsswitch/wbinfo.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c index fd13c41e4dd6..5fe0090567aa 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 */ -- 2.34.1