#include <unistd.h>
#include <com_err.h>
+#ifdef HAVE_KRB4
#include <krb.h>
+#endif
EXEC SQL INCLUDE sqlca;
return MR_DOWN;
}
- status = krb_get_svc_in_tkt(REG_SVR_PRINCIPAL, REG_SVR_INSTANCE,
- krb_realmofhost(hostname), MOIRA_SNAME,
- shorthostname, 3, KEYFILE);
- if (status)
- status += ERROR_TABLE_BASE_krb;
- else
- status = mr_krb5_auth("reg_svr");
+ status = mr_krb5_auth("reg_svr");
if (status)
{
com_err(whoami, status, "authenticating to moira");