All attributes in rlm_sql_log or rlm_sql ?

Dean Smith dean at eatworms.org.uk
Thu Apr 10 20:18:36 CEST 2008


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 at eatworms.org.uk] 
Sent: 10 April 2008 00:14
To: 'freeradius-users at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20080410/9f140121/attachment.html>


More information about the Freeradius-Users mailing list