Hello,
I'm using FreeRADIUS Version 2.1.10 and I would like to know if I can change the swith result to make something like that:
/etc/freeradius/sites-enable/default
...
switch "%{Realm}" {
case 'a' {
sql {
fail = 5
}
}
case 'b' {
ldap {
fail = 5
}
}
case {
update reply {
Codigo-Reject = Error-Dominio
reject
}
}
}
if (fail) {
update reply {
Codigo-Reject = Imposible-Contactar-Backend
}
reject
}
elsif (notfound) {
update reply {
Codigo-Reject = Usuario-Desconocido
}
reject
}
...
Actually, if for example, sql return notfound, I can set Codigo-Reject = Usuario-Desconocido, but if sql return fail, switch return and I stop procesing the authorize section.
Thank you in advance