How to log sites-available/default variables

Gerald Vogt vogt at spamcop.net
Tue May 19 11:55:57 CEST 2015


This should be in sites-available/default:

         #
         #  If you want to have a log of authentication replies,
         #  un-comment the following line, and enable the
         #  'detail reply_log' module.
#       reply_log

Un-comment it to log replies.

The detail configuration for the reply_log is in mods-available/detail.log.

The auth-detail file is generated in the authorize section. It logs 
requests, not replies.

Gerald



On 19/05/15 11:01, mdii wrote:
>>
>> Hi,
>>> * Hi,
>> *> >* In my sites-available/default file I set a post-proxy variable that is
>> *>* added to the proxy-reply:
>> *> >* > post-proxy {
>> *>* >
>> *>*      update reply {
>> *>* >            Filter-Id := `/usr/sbin/ldap_get_group_info.sh %{User-Name}`
>> *>* >       }
>> *>* >
>> *>* }
>> *>* >
>> *> >* I'm trying to add the Filter-Id value into the auth-detail-<date> file, is
>> *>* it possible?
>> *
>> everything gets logged - but i reckon you are calling the detail module BEFORE you've done
>> this update reply call.....
>>
>> alan
>>
>>
> Thanks for your answer Alan,
>
> How exactly it's logged? How can I add the Filter-Id information to the log?
>
> My auth-detail-20150518 log file looks like:
>
>      Mon May 18 06:46:16 2015
>      Packet-Type = Access-Request
>      User-Name = "user at domain.com"
>      Acct-Session-Id = "1431935176I23fkb"
>      NAS-IP-Address = 127.0.0.1
>      NAS-Identifier = "Localhost"
>      NAS-Port = 0
>      Calling-Station-Id = "1115551212"
>      Message-Authenticator = 0x2a9e87211fd9ce73f6e6faf739da0732
>
> I've tried to play with the "Log" section in the radius.conf file but it
> didn't change nothing. I imagine it could be in the modules/detail.log but
> I couldn't find any info of how to set this up...
>
>
> thanks again,
> Marc
>
> <freeradius-users%40lists.freeradius.org?Subject=Re%3A%20How%20to%20log%20sites-available/default%20variables&In-Reply-To=%3C20150519063917.GB955%40lboro.ac.uk%3E>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>


More information about the Freeradius-Users mailing list