chage switch result

Ana Gallardo Gómez anaougu at gmail.com
Wed Aug 22 14:02:45 CEST 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120822/f85df349/attachment.html>


More information about the Freeradius-Users mailing list