Remove logfile stuff.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2663 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
16
kdc/config.c
16
kdc/config.c
@@ -42,7 +42,6 @@
|
|||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
static char *config_file;
|
static char *config_file;
|
||||||
char *logfile;
|
|
||||||
int loglevel = -2;
|
int loglevel = -2;
|
||||||
int require_preauth = 1;
|
int require_preauth = 1;
|
||||||
char *keyfile;
|
char *keyfile;
|
||||||
@@ -58,10 +57,6 @@ static struct getargs args[] = {
|
|||||||
"config-file", 'c', arg_string, &config_file,
|
"config-file", 'c', arg_string, &config_file,
|
||||||
"location of config file", "file"
|
"location of config file", "file"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"log-file", 'l', arg_string, &logfile,
|
|
||||||
"location of log file", "file"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"log-level", 0, arg_integer, &loglevel,
|
"log-level", 0, arg_integer, &loglevel,
|
||||||
"level of logging"
|
"level of logging"
|
||||||
@@ -109,15 +104,6 @@ configure(int argc, char **argv)
|
|||||||
if(krb5_config_parse_file(config_file, &cf))
|
if(krb5_config_parse_file(config_file, &cf))
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
if(logfile == NULL){
|
|
||||||
p = krb5_config_get_string (cf,
|
|
||||||
"kdc",
|
|
||||||
"log-file",
|
|
||||||
NULL);
|
|
||||||
if(p)
|
|
||||||
logfile = strdup(p);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(loglevel == -2){
|
if(loglevel == -2){
|
||||||
p = krb5_config_get_string (cf,
|
p = krb5_config_get_string (cf,
|
||||||
"kdc",
|
"kdc",
|
||||||
@@ -162,8 +148,6 @@ configure(int argc, char **argv)
|
|||||||
|
|
||||||
krb5_config_file_free (cf);
|
krb5_config_file_free (cf);
|
||||||
end:
|
end:
|
||||||
if(logfile == NULL)
|
|
||||||
logfile = "kdc.log";
|
|
||||||
if(loglevel == -2)
|
if(loglevel == -2)
|
||||||
loglevel = 0;
|
loglevel = 0;
|
||||||
if(require_preauth == -1)
|
if(require_preauth == -1)
|
||||||
|
Reference in New Issue
Block a user