Log control attributes
Hi, Is there any way how to log all control attributes via detail or linelog in the freeradius ? Thx.
On Apr 20, 2015, at 10:36 AM, Peter Balsianok <balsianok.peter@gmail.com> wrote:
Is there any way how to log all control attributes via detail or linelog in the freeradius ?
In the detail file, no. In linelog, yes. Just use "control:Attribute-name" instead of "Attribute-Name" Alan DeKok.
I though something like %Z (in case of request ) in linelog ( write all attributes, doesn`t matter how many attributes are in the control list ). Peter On Mon, Apr 20, 2015 at 4:40 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Apr 20, 2015, at 10:36 AM, Peter Balsianok <balsianok.peter@gmail.com> wrote:
Is there any way how to log all control attributes via detail or linelog in the freeradius ?
In the detail file, no.
In linelog, yes. Just use "control:Attribute-name" instead of "Attribute-Name"
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 21 Apr 2015, at 07:42, Peter Balsianok <balsianok.peter@gmail.com> wrote:
I though something like %Z (in case of request ) in linelog ( write all attributes, doesn`t matter how many attributes are in the control list ).
/** Encode attributes as a series of string attribute/value pairs * * This is intended to serialize one or more attributes as a comma * delimited string. * * Example: "%{pairs:request:}" == "User-Name = 'foo', User-Password = 'bar'" */ static ssize_t pairs_xlat(UNUSED void *instance, REQUEST *request, char const *fmt, char *out, size_t outlen) { -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
Perfect. Thank you very much. Peter On Tue, Apr 21, 2015 at 9:59 AM, Arran Cudbard-Bell < a.cudbardb@freeradius.org> wrote:
On 21 Apr 2015, at 07:42, Peter Balsianok <balsianok.peter@gmail.com> wrote:
I though something like %Z (in case of request ) in linelog ( write all attributes, doesn`t matter how many attributes are in the control list ).
/** Encode attributes as a series of string attribute/value pairs * * This is intended to serialize one or more attributes as a comma * delimited string. * * Example: "%{pairs:request:}" == "User-Name = 'foo', User-Password = 'bar'" */ static ssize_t pairs_xlat(UNUSED void *instance, REQUEST *request, char const *fmt, char *out, size_t outlen) {
-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
participants (3)
-
Alan DeKok -
Arran Cudbard-Bell -
Peter Balsianok