* $Source$
* $Header$
*/
+/* (c) Copyright 1988 by the Massachusetts Institute of Technology. */
+/* For copying and distribution information, please see the file */
+/* <mit-copyright.h>. */
#ifndef lint
static char *rcsid_auth_001_c = "$Header$";
#endif lint
+#include <mit-copyright.h>
#include <stdio.h>
#include <strings.h>
-#include "gdb.h"
-#include "smsu_int.h"
+#include <gdb.h>
#include "kludge.h"
#include <krb.h>
#include <netinet/in.h>
extern CONNECTION conn;
int code;
extern char *PrincipalHostname();
-static char sms[] = "sms";
+static char service[] = "rcmd";
+static char master[] = "sms";
static char qmark[] = "???";
/*
ticket_st.mbz = 0;
ticket_st.length = MAX_STRING_SIZE(data);
bcopy(STRING_DATA(data), ticket_st.dat, MAX_STRING_SIZE(data));
- code = rd_ap_req(&ticket_st, sms,
+ code = krb_rd_req(&ticket_st, service,
PrincipalHostname(host), 0,
&ad, "/etc/srvtab");
if (code) {
if (get_krbrlm(realm,0))
realm[0] = '\0';
code = EPERM;
- if (strcmp(sms, ad.pname))
+ if (strcmp(master, ad.pname))
goto auth_failed;
if (ad.pinst[0] != '\0')
goto auth_failed;