summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-08-12 17:47:12 +0200
committerKai Blin <kai@samba.org>2009-08-18 19:53:41 +0200
commit19855ca2bb13c515c5ee1ec495dac7b41b6b1878 (patch)
treeac05c091faf39a01e997cfb37d26ae628558cacc /nsswitch
parent182c667b176834a19338fb3e1ea392d5e7320d06 (diff)
downloadsamba-19855ca2bb13c515c5ee1ec495dac7b41b6b1878.tar.gz
samba-19855ca2bb13c515c5ee1ec495dac7b41b6b1878.tar.bz2
samba-19855ca2bb13c515c5ee1ec495dac7b41b6b1878.zip
s3 wbinfo: Only call afs_settoken_str if compiled with WITH_FAKE_KASERVER
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wbinfo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c
index fd13c41e4d..5fe0090567 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 */