RE: All attributes in rlm_sql_log or rlm_sql ?
I guess I'm asking is there an unlang equivalent to this snippet from rlm_detail.c. .. /* Write each attribute/value to the log file */ for (pair = packet->vps; pair != NULL; pair = pair->next) { vp_print(outfp, pair); } Dean From: Dean Smith [mailto:dean@eatworms.org.uk] Sent: 10 April 2008 00:14 To: 'freeradius-users@lists.freeradius.org' Subject: All attributes in rlm_sql_log or rlm_sql ? Is there a way of using either rlm_sql_log or the post-auth query within rlm_sql to log all the request and/or reply attributes to mysql ? E.g. I could populate one SQL field with a string of the whole packet (just as you would see in the detail log). I would still add my key attributes to named fields but I would like to record "the rest" of the attributes for later reference without having to define a field for every possible attribute I might see. Clearly I could parse/upload the detail files independently but wanted to check if it was possible within the existing framework. Thanks Dean Smith
Dean Smith wrote:
I guess I’m asking is there an unlang equivalent to this snippet from rlm_detail.c. ..
No. I don't see why it makes sense to log all of the attributes as one big line of text in SQL. If you need that, it shouldn't be hard to write a Perl plugin that does it. Alan DeKok.
participants (2)
-
Alan DeKok -
Dean Smith