summaryrefslogtreecommitdiff
path: root/server/main.c
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1997-10-25 17:47:11 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1997-10-25 17:47:11 +0000
commit2b03e82ddfe5797dab4a2811cb2755a2b7cc45b7 (patch)
tree337a1256ea163b161c0f66b3b33fe3d88af74fc0 /server/main.c
parent304bb68ebcb9682d28b41d86d59e9ac5f9d7d4a3 (diff)
ZEPHYR_USES_KERBEROS -> HAVE_KRB4; ZEPHYR_USES_HESIOD -> HAVE_HESIOD
Diffstat (limited to 'server/main.c')
-rw-r--r--server/main.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/server/main.c b/server/main.c
index af0d91c..413bbe3 100644
--- a/server/main.c
+++ b/server/main.c
@@ -91,10 +91,10 @@ unsigned short hm_srv_port; /* host manager server sending port */
char *programname; /* set to the basename of argv[0] */
char myname[MAXHOSTNAMELEN]; /* my host name */
-#ifndef ZEPHYR_USES_HESIOD
+#ifndef HAVE_HESIOD
char list_file[128];
#endif
-#ifdef ZEPHYR_USES_KERBEROS
+#ifdef HAVE_KRB4
char srvtab_file[128];
char my_realm[REALM_SZ];
static char tkt_file[128];
@@ -139,10 +139,10 @@ main(argc, argv)
extern char *optarg;
extern int optind;
-#ifndef ZEPHYR_USES_HESIOD
+#ifndef HAVE_HESIOD
sprintf(list_file, "%s/%s", SYSCONFDIR, SERVER_LIST_FILE);
#endif
-#ifdef ZEPHYR_USES_KERBEROS
+#ifdef HAVE_KRB4
sprintf(srvtab_file, "%s/%s", SYSCONFDIR, ZEPHYR_SRVTAB);
sprintf(tkt_file, "%s/%s", SYSCONFDIR, ZEPHYR_TKFILE);
#endif
@@ -168,7 +168,7 @@ main(argc, argv)
nofork = 1;
break;
case 'k':
-#ifdef ZEPHYR_USES_KERBEROS
+#ifdef HAVE_KRB4
strncpy(my_realm, optarg, REALM_SZ);
#endif
break;
@@ -186,7 +186,7 @@ main(argc, argv)
}
}
-#ifdef ZEPHYR_USES_KERBEROS
+#ifdef HAVE_KRB4
/* if there is no readable srvtab and we are not standalone, there
is no possible way we can succeed, so we exit */
@@ -206,7 +206,7 @@ main(argc, argv)
exit(1);
}
}
-#endif /* ZEPHYR_USES_KERBEROS */
+#endif /* HAVE_KRB4 */
#ifndef DEBUG
if (!nofork)
@@ -297,7 +297,7 @@ main(argc, argv)
/* Reinitialize t_local now that initialization is done. */
gettimeofday(&t_local, NULL);
uptime = NOW;
-#ifdef ZEPHYR_USES_KERBEROS
+#ifdef HAVE_KRB4
timer_set_rel(SWEEP_INTERVAL, sweep_ticket_hash_table, NULL);
#endif
@@ -375,7 +375,7 @@ initialize()
server_init();
-#ifdef ZEPHYR_USES_KERBEROS
+#ifdef HAVE_KRB4
krb_set_tkt_string(tkt_file);
#endif
realm_init();
@@ -502,7 +502,7 @@ bye(sig)
{
server_shutdown(); /* tell other servers */
hostm_shutdown(); /* tell our hosts */
-#ifdef ZEPHYR_USES_KERBEROS
+#ifdef HAVE_KRB4
dest_tkt();
#endif
syslog(LOG_NOTICE, "goodbye (sig %d)", sig);