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

James Wood via Freeradius-Users <[email protected]> Wed, 25 Mar 2026 10:44:21 +0000
Newsgroups gmane.comp.freeradius.user
Message-ID <CANHYfLT3gOfNzFcMPFqtzQvBOsi653zUJN3_kSAUf8F9n4diOA@mail.gmail.com>
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/>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html