git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
182c667
)
s3 wbinfo: Only call afs_settoken_str if compiled with WITH_FAKE_KASERVER
author
Kai Blin
<kai@samba.org>
Wed, 12 Aug 2009 15:47:12 +0000
(17:47 +0200)
committer
Kai Blin
<kai@samba.org>
Tue, 18 Aug 2009 17:53:41 +0000
(19:53 +0200)
nsswitch/wbinfo.c
patch
|
blob
|
history
diff --git
a/nsswitch/wbinfo.c
b/nsswitch/wbinfo.c
index fd13c41e4dd6352eb68d9ff1fadd2c2148754532..5fe0090567aa0da34f7b2e544649ec69e2f5d6d4 100644
(file)
--- 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 */