If you would like to disable a user why not to use the Auth-Type := Reject which is natively available in freeradius. I don't think it is necessary to re-invent the wheel.<br><br>Regards<br>Suman<br><br><div class="gmail_quote">
On Thu, Oct 27, 2011 at 11:07 PM, JennyBlunt <span dir="ltr"><<a href="mailto:jennyshoehorn@me.com">jennyshoehorn@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello<br>
<br>
What's the best approach regarding custom mysql queries? I'd like to check<br>
if a user is blocked whilst authorising..<br>
<br>
Have tried to add something like this to my dictionary file:<br>
<br>
ATTRIBUTE       User-Disabled-Attr      3002    integer<br>
<br>
And then putting a 1 / 0 in to radcheck against the user.<br>
<br>
What's the best way to do this kind of request? Is it better to write a<br>
lookup somewhere else?<br>
<br>
Thanks<br>
<br>
J<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://freeradius.1045715.n5.nabble.com/Custom-MySQL-Queries-tp4943692p4943692.html" target="_blank">http://freeradius.1045715.n5.nabble.com/Custom-MySQL-Queries-tp4943692p4943692.html</a><br>

Sent from the FreeRadius - User mailing list archive at Nabble.com.<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</font></blockquote></div><br>