Skip to content

Commit

Permalink
Merge remote-tracking branch 'maja/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Nordberg committed Dec 22, 2011
2 parents d7ffa57 + 2c70584 commit 68d8511
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
7 changes: 6 additions & 1 deletion fticks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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#",
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));
Expand Down
1 change: 1 addition & 0 deletions radsecproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2690,6 +2690,7 @@ int confclient_cb(struct gconffile **cf, void *arg, char *block, char *opt, char
"rewriteattribute", CONF_STR, &conf->confrewriteusername,
#if defined(WANT_FTICKS)
"fticksVISCOUNTRY", CONF_STR, &conf->fticks_viscountry,
"fticksVISINST", CONF_STR, &conf->fticks_visinst,
#endif
NULL
))
Expand Down
11 changes: 8 additions & 3 deletions radsecproxy.conf.5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,9 @@ blocktype name {
<literal>certificateNameCheck</literal>,
<literal>matchCertificateAttribute</literal>,
<literal>duplicateInterval</literal>, <literal>AddTTL</literal>,
<literal>fticksVISCOUNTRY</literal>, <literal>rewrite</literal>,
<literal>rewriteIn</literal>, <literal>rewriteOut</literal>, and
<literal>rewriteAttribute</literal>.
<literal>fticksVISCOUNTRY</literal>, <literal>fticksVISINST</literal>,
<literal>rewrite</literal>, <literal>rewriteIn</literal>,
<literal>rewriteOut</literal>, and <literal>rewriteAttribute</literal>.

We already discussed the <literal>host</literal> option. The
value of <literal>type</literal> must be one of
Expand Down Expand Up @@ -543,6 +543,11 @@ blocktype name {
clients eligible to F-Ticks logging as defined by the
<literal>FTicksReporting</literal> basic option.
</para>
<para>
The <literal>fticksVISINST</literal> option overwrites
the default <literal>VISINST</literal> value taken from the client
block name.
</para>
<para>
The <literal>rewrite</literal> option is deprecated. Use
<literal>rewriteIn</literal> instead.
Expand Down
1 change: 1 addition & 0 deletions radsecproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ struct clsrvconf {
struct list *clients;
struct server *servers;
char *fticks_viscountry;
char *fticks_visinst;
};

#include "tlscommon.h"
Expand Down

0 comments on commit 68d8511

Please sign in to comment.