Hi, Is it possible to use special character 0x00 – 0x0F in linelog (freeradius 3.0.7)? Example: Start = "%l[special character e.g. \n]%{Acct-Status-Type}[special character e.g. \n]%{Acct-Session-Id}[special character e.g. \n]%{User-Name}" Thx.
On Apr 14, 2015, at 3:19 AM, Peter Balsianok <balsianok.peter@gmail.com> wrote:
Is it possible to use special character 0x00 – 0x0F in linelog (freeradius 3.0.7)? Example: Start = "%l[special character e.g. \n]%{Acct-Status-Type}[special character e.g. \n]%{Acct-Session-Id}[special character e.g. \n]%{User-Name}"
No. In 3.0.8, though, it will be possible. Alan DeKok.
Hi, The version 3.0.8 has been released. Please, how can i use special character 0x00 - 0x0F in linelog ? Thx. On Tue, Apr 14, 2015 at 3:01 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Apr 14, 2015, at 3:19 AM, Peter Balsianok <balsianok.peter@gmail.com> wrote:
Is it possible to use special character 0x00 – 0x0F in linelog (freeradius 3.0.7)? Example: Start = "%l[special character e.g. \n]%{Acct-Status-Type}[special character e.g. \n]%{Acct-Session-Id}[special character e.g. \n]%{User-Name}"
No. In 3.0.8, though, it will be possible.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 23 Apr 2015, at 09:13, Peter Balsianok <balsianok.peter@gmail.com> wrote:
Hi,
The version 3.0.8 has been released. Please, how can i use special character 0x00 - 0x0F in linelog ?
Octal escape sequences may work \000 - \017 -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
It`s not working. linelog configration: linelog log_request { filename = ${logdir}radius.log format = "%t \001 \002 \003 \004 \005 \006 \007 \010" } Debug: (0) log_request: EXPAND /app_log/radius/auth/radius.log (0) log_request: --> /app_log/radius/auth/radius.log (0) log_request: EXPAND %t \001 \002 \003 \004 \005 \006 \007 \010 (0) log_request: --> Thu Apr 23 15:28:40 2015 \001 \002 \003 \004 \005 \006 \007 \010 radius.log: Thu Apr 23 15:28:40 2015 \001 \002 \003 \004 \005 \006 \007 \010 Thx. On Thu, Apr 23, 2015 at 1:57 PM, Arran Cudbard-Bell < a.cudbardb@freeradius.org> wrote:
On 23 Apr 2015, at 09:13, Peter Balsianok <balsianok.peter@gmail.com> wrote:
Hi,
The version 3.0.8 has been released. Please, how can i use special character 0x00 - 0x0F in linelog ?
Octal escape sequences may work
\000 - \017
-Arran
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Apr 23, 2015, at 9:32 AM, Peter Balsianok <balsianok.peter@gmail.com> wrote:
It`s not working.
linelog configration: linelog log_request { filename = ${logdir}radius.log format = "%t \001 \002 \003 \004 \005 \006 \007 \010" }
Put the non-ASCII characters into an attribute, and then use that: Tmp-Octets-0 := 0x01020304 linelog { ... format = "%t &Tmp-Octets-0" } I think that works. Alan DeKok.
Sorry, but no. (0) update request { (0) Tmp-Octets-0 := 0x01020304 (0) } # update request = noop (0) log_request: EXPAND /app_log/radius/auth/radius.log (0) log_request: --> /app_log/radius/auth/radius.log (0) log_request: EXPAND %t %{Tmp-Octets-0} foo (0) log_request: --> Thu Apr 23 16:34:57 2015 0x01020304 foo radius.log: Thu Apr 23 16:34:57 2015 0x01020304 foo On Thu, Apr 23, 2015 at 3:43 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Apr 23, 2015, at 9:32 AM, Peter Balsianok <balsianok.peter@gmail.com> wrote:
It`s not working.
linelog configration: linelog log_request { filename = ${logdir}radius.log format = "%t \001 \002 \003 \004 \005 \006 \007 \010" }
Put the non-ASCII characters into an attribute, and then use that:
Tmp-Octets-0 := 0x01020304
linelog { ... format = "%t &Tmp-Octets-0" }
I think that works.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 23 Apr 2015, at 15:37, Peter Balsianok <balsianok.peter@gmail.com> wrote:
Sorry, but no.
(0) update request { (0) Tmp-Octets-0 := 0x01020304 (0) } # update request = noop (0) log_request: EXPAND /app_log/radius/auth/radius.log (0) log_request: --> /app_log/radius/auth/radius.log (0) log_request: EXPAND %t %{Tmp-Octets-0} foo (0) log_request: --> Thu Apr 23 16:34:57 2015 0x01020304 foo
radius.log: Thu Apr 23 16:34:57 2015 0x01020304 foo
No, it would be: update request { Tmp-Octets-0 := "%t \001\002\003\004" } linelog { format = &Tmp-Octets-0 } But only v3.1.x linelog allows the use of templates as format strings in linelog. The reason why using octal escape sequences in the format string doesn't work, is because the escape function that's used, converts them back to the octal representation. So they go octal -> binary -> octal. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
participants (3)
-
Alan DeKok -
Arran Cudbard-Bell -
Peter Balsianok