X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/0ea7f4a0e18af1fe2b08865d8472f7b0aab220b5..cb974713c2dde56749592d21c0da2a5ad3092400:/update/auth_002.c diff --git a/update/auth_002.c b/update/auth_002.c index 18cc73ea..2500ead6 100644 --- a/update/auth_002.c +++ b/update/auth_002.c @@ -15,14 +15,18 @@ #include #include +#ifdef HAVE_KRB4 #include +#endif RCSID("$Header$"); static char service[] = "rcmd"; static char master[] = "sms"; static char qmark[] = "???"; +#ifdef HAVE_KRB4 extern des_cblock session; +#endif /* * authentication request auth_002: @@ -39,6 +43,7 @@ extern des_cblock session; void auth_002(int conn, char *str) { +#ifdef HAVE_KRB4 char aname[ANAME_SZ], ainst[INST_SZ], arealm[REALM_SZ]; AUTH_DAT ad; char *p, *first, *data; @@ -126,4 +131,7 @@ auth_failed: com_err(whoami, code, "auth for %s.%s@%s failed", ad.pname, ad.pinst, ad.prealm); send_int(conn, code); +#else + return MR_NO_KRB4; +#endif }