move config and log files out of /var/heimdal
This commit is contained in:
parent
8edf0a98a0
commit
0acd5e96a9
|
@ -35,7 +35,7 @@
|
|||
#include <getarg.h>
|
||||
#include <parse_bytes.h>
|
||||
|
||||
RCSID("$Id: config.c,v 1.2 2000/08/06 18:42:19 thorpej Exp $");
|
||||
RCSID("$Id: config.c,v 1.3 2000/09/10 19:29:44 joda Exp $");
|
||||
|
||||
static char *config_file; /* location of kdc config file */
|
||||
|
||||
|
@ -250,7 +250,7 @@ configure(int argc, char **argv)
|
|||
usage(1);
|
||||
|
||||
if(config_file == NULL)
|
||||
config_file = HDB_DB_DIR "/kdc.conf";
|
||||
config_file = _PATH_KDC_CONF;
|
||||
|
||||
if(krb5_config_parse_file(config_file, &cf))
|
||||
cf = NULL;
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* $Id: kdc_locl.h,v 1.2 2000/08/06 18:42:19 thorpej Exp $
|
||||
* $Id: kdc_locl.h,v 1.3 2000/09/10 19:29:44 joda Exp $
|
||||
*/
|
||||
|
||||
#ifndef __KDC_LOCL_H__
|
||||
|
@ -73,6 +73,9 @@ extern int enable_524;
|
|||
extern krb5_boolean enable_kaserver;
|
||||
#endif
|
||||
|
||||
#define _PATH_KDC_CONF "/etc/kdc.conf"
|
||||
#define DEFAULT_LOG_DEST "0-1/FILE:/var/log/kdc.log"
|
||||
|
||||
extern struct timeval now;
|
||||
#define kdc_time (now.tv_sec)
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include "kdc_locl.h"
|
||||
RCSID("$Id: log.c,v 1.1.1.2 2000/08/02 19:58:55 assar Exp $");
|
||||
RCSID("$Id: log.c,v 1.2 2000/09/10 19:29:44 joda Exp $");
|
||||
|
||||
static krb5_log_facility *logf;
|
||||
|
||||
|
@ -51,7 +51,7 @@ kdc_openlog(krb5_config_section *cf)
|
|||
krb5_addlog_dest(context, logf, *p);
|
||||
krb5_config_free_strings(s);
|
||||
}else
|
||||
krb5_addlog_dest(context, logf, "0-1/FILE:" HDB_DB_DIR "/kdc.log");
|
||||
krb5_addlog_dest(context, logf, DEFAULT_LOG_DEST);
|
||||
krb5_set_warn_dest(context, logf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue