Thanks Suman,
I put the following in the sites-enabled/default file under the authorize
section and it worked!

update request {
                #Huntgroup-Name := "%{sql:SELECT `groupname` FROM
`radhuntgroup` WHERE nasipaddress='%{NAS-IP-Address}'}"
                Huntgroup-Name := "%{sql:SELECT `groupname` FROM
`radhuntgroup` WHERE rtrmac='%{Called-Station-Id}'}"
                }

                if ( "%{Huntgroup-Name}" == HotspotA ) {
                update control{
                Login-Time := Al1900-2100
                }

Now, to write a query to pull in Login-Time Corresponding to the NAS from
the database !

Thanks again for showing the way.

--
View this message in context: 
http://freeradius.1045715.n5.nabble.com/Enforcing-Login-Time-on-NAS-tp4845142p4845336.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to