I tried this, but ran into another basic issue. How to collect the results of an SQL query into an array? for example: Tmp-String-0 = "%{sql:SELECT `logintime`,`hotspotname`,`rtrmac` FROM `hotspotview` WHERE `status`='UP'}" doesnt give me an array. The unlang manual does mention arrays but with this caveat:- /%{Attribute-Name[index]} Reference the N'th occurance of the given attribute. The syntax %{<list>:Attribute-Name[index]} may also be used. The indexes start at zero. This feature is NOT available for non-attribute dynamic translations, like %{sql:...}./ -- View this message in context: http://freeradius.1045715.n5.nabble.com/Enforcing-Login-Time-on-NAS-tp484514... Sent from the FreeRadius - User mailing list archive at Nabble.com.