--- ./radsecproxy.c.org 2011-12-20 12:46:01.678987351 +0100 +++ ./radsecproxy.c 2011-12-20 15:44:24.186577784 +0100 @@ -2690,6 +2690,7 @@ int confclient_cb(struct gconffile **cf, "rewriteattribute", CONF_STR, &conf->confrewriteusername, #if defined(WANT_FTICKS) "fticksVISCOUNTRY", CONF_STR, &conf->fticks_viscountry, + "fticksVISINST", CONF_STR, &conf->fticks_visinst, #endif NULL )) --- ./radsecproxy.h.org 2011-12-20 12:46:01.685654326 +0100 +++ ./radsecproxy.h 2011-12-20 15:43:05.166261843 +0100 @@ -131,6 +131,7 @@ struct clsrvconf { struct list *clients; struct server *servers; char *fticks_viscountry; + char *fticks_visinst; }; #include "tlscommon.h" --- ./fticks.c.org 2011-12-20 12:46:01.678987351 +0100 +++ ./fticks.c 2011-12-20 15:51:30.612937428 +0100 @@ -107,8 +107,13 @@ fticks_log(const struct options *options memset(visinst, 0, sizeof(visinst)); if (options->fticks_reporting == RSP_FTICKS_REPORTING_FULL) { - snprintf((char *) visinst, sizeof(visinst), "VISINST=%s#", - client->conf->name); + if (client->conf->fticks_visinst != NULL ) { + snprintf((char *) visinst, sizeof(visinst), "VISINST=%s#", + client->conf->fticks_visinst); + } else { + snprintf((char *) visinst, sizeof(visinst), "VISINST=%s#", + client->conf->name); + } } memset(macout, 0, sizeof(macout)); --- ./radsecproxy.conf-example.org 2011-12-20 12:46:01.682320839 +0100 +++ ./radsecproxy.conf-example 2011-12-20 16:32:38.963596053 +0100 @@ -36,7 +36,7 @@ # Full -- Do log in F-Ticks format and do log VISINST. # Please note that in order to get F-Ticks logging for a given client, # its matching client configuration block has to contain the -# fticksVISCOUNTRY option. +# fticksVISCOUNTRY option and it can contain the fticksVISINST option. # You can optionally specify FTicksMAC in order to determine if and # how Calling-Station-Id (users Ethernet MAC address) is being logged. --- ./radsecproxy.conf.5.xml.org 2011-12-20 16:26:32.610010659 +0100 +++ ./radsecproxy.conf.5.xml 2011-12-20 16:32:01.411861864 +0100 @@ -479,9 +479,9 @@ blocktype name { certificateNameCheck, matchCertificateAttribute, duplicateInterval, AddTTL, - fticksVISCOUNTRY, rewrite, - rewriteIn, rewriteOut, and - rewriteAttribute. + fticksVISCOUNTRY, fticksVISINST, + rewrite, rewriteIn, + rewriteOut, and rewriteAttribute. We already discussed the host option. The value of type must be one of @@ -543,6 +543,10 @@ blocktype name { FTicksReporting basic option. + The fticksVISINST option overwrites + VISINST value. + + The rewrite option is deprecated. Use rewriteIn instead.