%Z variable or otherwise

Arran Cudbard-Bell a.cudbardb at freeradius.org
Tue Feb 2 16:20:54 CET 2016


> On Feb 2, 2016, at 10:02 AM, Louis Munro <lmunro at inverse.ca> wrote:
> 
> Hello,
> 
> There used to be a %Z variable which held the whole request in FR 2 and older.
> I understand that it’s gone in FR 3.
> 
> Is there a way to get the same behaviour in 3.xx with another variable or some other unlang way?
> 
> I used to send it to a database (with the sql post-auth query) indexed by username / calling station-id so I could look up the exact request after the fact and see all attributes sent by the NAS. ‘%Z’ allowed me to insert it in the database without having to know in advance what attributes would be sent.
> 
> Thank you for your help,


%{pairs:<attribute reference>}

e.g.

%{pairs:&request:[*]}

Would get you the request list.

-Arran
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20160202/d90c3797/attachment.sig>


More information about the Freeradius-Users mailing list