Custom MySQL Queries

Tim Sylvester tim.sylvester at networkradius.com
Thu Oct 27 21:59:11 CEST 2011


I usually add Auth-Type := Reject to the radcheck table to disable a user.
You remove the entry to enable the user.

Tim

> -----Original Message-----
> From: freeradius-users-
> bounces+tim.sylvester=networkradius.com at lists.freeradius.org
> [mailto:freeradius-users-
> bounces+tim.sylvester=networkradius.com at lists.freeradius.org] On Behalf
> Of JennyBlunt
> Sent: Thursday, October 27, 2011 10:37 AM
> To: freeradius-users at lists.freeradius.org
> Subject: Custom MySQL Queries
> 
> Hello
> 
> What's the best approach regarding custom mysql queries? I'd like to check
if
> a user is blocked whilst authorising..
> 
> Have tried to add something like this to my dictionary file:
> 
> ATTRIBUTE       User-Disabled-Attr      3002    integer
> 
> And then putting a 1 / 0 in to radcheck against the user.
> 
> What's the best way to do this kind of request? Is it better to write a
lookup
> somewhere else?
> 
> Thanks
> 
> J
> 
> --
> View this message in context:
> http://freeradius.1045715.n5.nabble.com/Custom-MySQL-Queries-
> tp4943692p4943692.html
> Sent from the FreeRadius - User mailing list archive at Nabble.com.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html




More information about the Freeradius-Users mailing list