diff options
author | venaas <venaas> | 2007-06-13 11:01:50 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-06-13 11:01:50 +0000 |
commit | 545da42b057ce323d592cf556f5d448b1fd6625a (patch) | |
tree | 8e9fe86577ad8e3f3a96f40c2b6993e24740cf6e | |
parent | 1ebcdd0a5faad9460a4a599e6f47312019cf8d58 (diff) |
fixed syslog url syntax, updated example config and manpage
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@130 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r-- | debug.c | 2 | ||||
-rw-r--r-- | radsecproxy.c | 2 | ||||
-rw-r--r-- | radsecproxy.conf-example | 4 | ||||
-rw-r--r-- | radsecproxy.conf.5 | 4 |
4 files changed, 7 insertions, 5 deletions
@@ -70,6 +70,8 @@ int debug_set_destination(char *dest) { } if (!strncasecmp(dest, "x-syslog://", 11)) { dest += 11; + if (*dest == '/') + dest++; if (*dest) { for (i = 0; facstrings[i]; i++) if (!strcasecmp(dest, facstrings[i])) diff --git a/radsecproxy.c b/radsecproxy.c index 779e9f4..4851b28 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -2298,7 +2298,7 @@ int main(int argc, char **argv) { options.logdestination = NULL; else { if (!options.logdestination) - options.logdestination = "x-syslog://"; + options.logdestination = "x-syslog:///"; debug_set_destination(options.logdestination); } diff --git a/radsecproxy.conf-example b/radsecproxy.conf-example index 854bb95..4a0457c 100644 --- a/radsecproxy.conf-example +++ b/radsecproxy.conf-example @@ -17,8 +17,8 @@ # Or logging with Syslog. LOG_DAEMON used if facility not specified # The supported facilities are LOG_DAEMON, LOG_MAIL, LOG_USER and # LOG_LOCAL0, ..., LOG_LOCAL7 -#LogDestination x-syslog:// -#LogDestination x-syslog://log_local2 +#LogDestination x-syslog:/// +#LogDestination x-syslog:///log_local2 #If we have TLS clients or servers we must define at least one tls block. #You can name them whatever you like and then reference them by name when diff --git a/radsecproxy.conf.5 b/radsecproxy.conf.5 index 7145830..b19ebb3 100644 --- a/radsecproxy.conf.5 +++ b/radsecproxy.conf.5 @@ -1,4 +1,4 @@ -.TH radsecproxy.conf 5 "7 June 2007" +.TH radsecproxy.conf 5 "13 June 2007" .SH "NAME" radsecproxy.conf - Radsec proxy configuration file @@ -80,7 +80,7 @@ syslog with facility \fBLOG_DAEMON\fR. Using this option you can specify another syslog facility, or you may specify that logging should be to a particular file, not using syslog. The value must be either a \fIfile\fR or \fIsyslog\fR URL. The file URL is the standard one, specifying a local file that should be used. For -syslog, you must do use the following URL syntax: \fBx-syslog://FACILITY\fR where +syslog, you must use the syntax: \fBx-syslog:///FACILITY\fR where \fBFACILITY\fR must be one of \fBLOG_DAEMON\fR, \fBLOG_MAIL\fR, \fBLOG_USER\fR, \fBLOG_LOCAL0\fR, \fBLOG_LOCAL1\fR, \fBLOG_LOCAL2\fR, \fBLOG_LOCAL3\fR, \fBLOG_LOCAL4\fR, \fBLOG_LOCAL5\fR, \fBLOG_LOCAL6\fR or \fBLOG_LOCAL7\fR. You may |