Added Kerberos4 support patches from Johan Hedin <johanh@fusion.kth.se>
[sfrench/samba-autobuild/.git] / source / auth / pass_check.c
index edb4c9729049421e3cbd1eb060c638164a29658f..d847407bbb4c6272a7de8ed6c06dc4630f7e3c8e 100644 (file)
@@ -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,