0

我正在使用freeradius2,我想从Accounting-Request 上发送的radius 属性之一中提取数据。

你能告诉我会计部分需要哪些参数,以便我可以执行脚本并提取半径标题吗?

    accounting {
            acct_unique
            detail

        #update request {
           #execute script here
}

            sql_accounting
            attr_filter.accounting_response
    }
4

1 回答 1

2
update request {
    Tmp-String-0 := `/my/script "%{hex:Attribute}"`
}

然后,您的脚本可以解析传递的十六进制并返回格式正确的属性。

于 2013-09-30T20:37:40.700 回答