summaryrefslogtreecommitdiffstats
path: root/source3/auth/pass_check.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-26 03:30:15 +0000
committerJeremy Allison <jra@samba.org>1998-09-26 03:30:15 +0000
commitb053652d490c8b37084797a64f14cdd44ff82578 (patch)
tree1b6ea6fd570456d436cc4a45955d99726766f5c5 /source3/auth/pass_check.c
parent1ea570da834fa72c88dd35a86fdf68ae5ecbeb19 (diff)
downloadsamba-b053652d490c8b37084797a64f14cdd44ff82578.tar.gz
samba-b053652d490c8b37084797a64f14cdd44ff82578.tar.xz
samba-b053652d490c8b37084797a64f14cdd44ff82578.zip
Added Kerberos4 support patches from Johan Hedin <johanh@fusion.kth.se>
Jeremy. (This used to be commit 548634915f21f774b7efb06f138c8fb7bc089daa)
Diffstat (limited to 'source3/auth/pass_check.c')
-rw-r--r--source3/auth/pass_check.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/auth/pass_check.c b/source3/auth/pass_check.c
index edb4c972904..d847407bbb4 100644
--- a/source3/auth/pass_check.c
+++ b/source3/auth/pass_check.c
@@ -542,6 +542,8 @@ static BOOL krb5_auth(char *user,char *password)
#endif /* KRB5_AUTH */
#ifdef KRB4_AUTH
+#include <krb.h>
+
/*******************************************************************
check on Kerberos authentication
********************************************************************/
@@ -555,7 +557,7 @@ static BOOL krb4_auth(char *user,char *password)
}
(void) slprintf(tkfile, sizeof(tkfile) - 1, "/tmp/samba_tkt_%d",
- getpid());
+ (int)getpid());
krb_set_tkt_string(tkfile);
if (krb_verify_user(user, "", realm,