X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/2c0dfed5194f8639c512faa887442eb98cf70f11..HEAD:/update/auth_002.c diff --git a/update/auth_002.c b/update/auth_002.c index 18cc73ea..5f1e6c5e 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 + send_int(conn, MR_NO_KRB4); +#endif }