Blank value of temporary variable in Unlang

Stefan Paetow Stefan.Paetow at ja.net
Thu Nov 6 14:36:17 CET 2014


On 6 Nov 2014, at 13:08, Mrinal K <sinha.mrinal at gmail.com> wrote:
> I am getting value from the first query 
> 
> Heres my debug log, I have highlighted the required queries 
[snip]
>         expand: %{sql: select ExpiryDate from radcheck where id = '%{My-Local-Int-1}'} -> 

Use "%{sql: select ExpiryDate from radcheck where id = '%{control:My-Local-Int-1}'}"

You have to specify the attribute list that the attribute is from, otherwise it is assumed that the attribute is from the same list you are updating (in this case 'reply').

:-)

Stefan Paetow
Moonshot Industry & Research Liaison Coordinator

t: +44 (0)1235 822 125
gpg: 0x3FCE5142
xmpp: stefanp at jabber.dev.ja.net
skype: stefan.paetow.janet

Janet, the UK’s research and education network.

Janet(UK) is a trading name of Jisc Collections and Janet Limited, a 
not-for-profit company which is registered in England under No. 2881024 
and whose Registered Office is at Lumen House, Library Avenue,
Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238

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


More information about the Freeradius-Users mailing list