Reputation: 7126
i am using freeradius2, i would like to extract data from one of the radius attribute which is sent on Accounting-Request.
can you advise what parameters needs to be in the accounting section so that i can execute a script and extract the radius headers?
accounting {
acct_unique
detail
#update request {
#execute script here
}
sql_accounting
attr_filter.accounting_response
}
Upvotes: 0
Views: 2510
Reputation: 6065
update request {
Tmp-String-0 := `/my/script "%{hex:Attribute}"`
}
Your script can then parse the hexits which get passed and return a correctly formatted attribute.
Upvotes: 3