summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorMaja Gorecka-Wolniewicz <mgw@puma.uci.umk.pl>2011-11-22 09:52:53 +0100
committerMaja Gorecka-Wolniewicz <mgw@puma.uci.umk.pl>2011-11-22 09:52:53 +0100
commitb5bdc1d887a519de1d96d6da4534fbbe1210ee2d (patch)
tree40b81f6b53e3fb65cb3f74ce513e7bcebf81498a /radsecproxy.c
parentc17e44da367ce2cf17c73342477387192aeab54e (diff)
F-Ticks logging changes
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 303aba4..ef27f0f 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -1668,7 +1668,7 @@ void replyh(struct server *server, unsigned char *buf) {
}
#if defined(WANT_FTICKS)
- if (msg->code == RAD_Access_Accept || msg->code == RAD_Access_Reject)
+ if (msg->code == RAD_Access_Accept || msg->code == RAD_Access_Reject)
if (options.fticks_reporting && from->conf->fticks_viscountry != NULL)
fticks_log(&options, from, msg, rqout);
#endif
@@ -3082,6 +3082,7 @@ void getmainconfig(const char *configfile) {
#endif
"Rewrite", CONF_CBK, confrewrite_cb, NULL,
#if defined(WANT_FTICKS)
+ "FTicksSyslogFacility", CONF_STR, &options.ftickssyslogfacility,
"FTicksReporting", CONF_STR, &fticks_reporting_str,
"FTicksMAC", CONF_STR, &fticks_mac_str,
"FTicksKey", CONF_STR, &fticks_key_str,
@@ -3239,8 +3240,18 @@ int radsecproxy_main(int argc, char **argv) {
options.loglevel = loglevel;
else if (options.loglevel)
debug_set_level(options.loglevel);
- if (!foreground)
+ if (!foreground) {
debug_set_destination(options.logdestination ? options.logdestination : "x-syslog:///");
+#if defined(WANT_FTICKS)
+ if (options.ftickssyslogfacility) {
+ debug(DBG_WARN, "FTicksSyslogFacility is %s ", options.ftickssyslogfacility);
+ debug_set_ftickssyslogfacility(options.ftickssyslogfacility);
+ free(options.ftickssyslogfacility);
+ } else {
+ debug(DBG_INFO, "FTicksSyslogFacility not set");
+ }
+#endif
+ }
free(options.logdestination);
if (!list_first(clconfs))