No luck. For some reason unlang does not catch SQL fail return code. Only if there is no failure I see it is evaluating return code it prints in debug mode ++? if (fail) ? Evaluating (fail) -> FALSE But when SQL return really fails it does not evaluate this condition and nothing is printed in debug mode. I even tried without any if statements just to see how to force it not to respond,but the server always returns Access-Reject Tried to replace number 256 with Do-Not-Respond string and still no luck. update control { Response-Packet-Type = Do-Not-Respond } What could be the issue? Thanks again. aland wrote:
leopold wrote:
For my situation since radiusd keeps everything in DB and if ALL databases cannot be contacted the radiusd should not respond at all. Is there any way to force radiusd to drop request and not to respond with Access-Reject?
Try something like this:
authorize { ...
redundant { sql1 sql2 }
if (fail) { update control { Response-Packet-Type = 256 } reject }
... }
That should tell the server "don't respond".
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- View this message in context: http://www.nabble.com/Freeradius-2.1-1%3A-failure-modes-tp22413666p22460041.... Sent from the FreeRadius - User mailing list archive at Nabble.com.