Complex conditions have been checked in.

Arran Cudbard-Bell A.Cudbard-Bell at sussex.ac.uk
Sat May 26 18:20:07 CEST 2007


> switch users {
>     case ok {
>           update response {
>                 Reply-Message = "User Found in Users"
>           }
>     }
>     case noop {
>           update response {
>                 Reply-Message = "User Not Found in Users"
>           }
>     }
>
>
>   
Or probably far easier

users
switch %{return}{
         case ok {

          update response {
                Reply-Message = "User Found in Users"
          }
    }
    case noop {
          update response {
                Reply-Message = "User Not Found in Users"
          }
}

Where return is expanded to the return code of the last executed module.




More information about the Freeradius-Devel mailing list