문제

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
    }
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top