v4 how to insert reply attributes in the radpostauth sql query?

James Wood james.wood at purplewifi.com
Wed Mar 25 10:44:21 UTC 2026


I'm playing around with v4 and one thing I can't get working is how to
insert all of the mapped reply attributes when I insert into the SQL
radpostauth table.

Just before we perform the insert, I am trying to get all of the reply
attributes we're sending as described here:

https://www.freeradius.org/documentation/freeradius-server/4.0.0/reference/xlat/pairs/print.html

&control.Tmp-String-9 := "%pairs.print(reply.[*])"

and then referencing the tmp string on the query.

I get:

%pairs.print(reply.[*])
^: Unresolved expansion functions are not allowed here

Any thoughts? If this isn't the right way, please advise how I can get
these reply attributes into a string ready for the sql insert.

Thanks

James

-- 


Visit purple.ai <https://purple.ai/>

Purple on LinkedIn 
<https://uk.linkedin.com/company/purple-wifi>

Email disclaimer 
<http://www.purple.ai/email-disclaimer/>


More information about the Freeradius-Users mailing list