small patch for detail.log module (2.x or 3.x)
hi, small patch for the detail.log in freeRADIUS - this aligns it with the detail module - and ensures that people with IPv6 clients get their directories/files sorted properly rather than all stuff from IPv6 clients going into the same single files --- detail.log 2012-02-27 13:54:12.000000000 +0000 +++ /tmp/detail.log 2012-05-02 10:17:24.000000000 +0100 @@ -15,7 +15,7 @@ # in the 'authorize' section, below. # detail auth_log { - detailfile = ${radacctdir}/%{Client-IP-Address}/auth-detail-%Y%m%d + detailfile = ${radacctdir}/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d # # This MUST be 0600, otherwise anyone can read @@ -37,7 +37,7 @@ # in the 'post-auth' section, below. # detail reply_log { - detailfile = ${radacctdir}/%{Client-IP-Address}/reply-detail-%Y%m%d + detailfile = ${radacctdir}/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d detailperm = 0600 } @@ -49,7 +49,7 @@ # in the 'pre-proxy' section, below. # detail pre_proxy_log { - detailfile = ${radacctdir}/%{Client-IP-Address}/pre-proxy-detail-%Y%m%d + detailfile = ${radacctdir}/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d # # This MUST be 0600, otherwise anyone can read @@ -69,7 +69,7 @@ # in the 'post-proxy' section, below. # detail post_proxy_log { - detailfile = ${radacctdir}/%{Client-IP-Address}/post-proxy-detail-%Y%m%d + detailfile = ${radacctdir}/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d detailperm = 0600 } alan
participants (1)
-
alan buxey