September 2011
Beginner to intermediate
344 pages
8h 6m
English
The if statement itself is not very complex. It has the following format:
if(condition){
...
}The condition part can become complex due to its many possibilities.
We will now look at the return code of a module and use this code to compare against the specified condition. Each module in FreeRADIUS is required to return a code after it is called. The value of this code can subsequently be used as a conditional check in the if statement.
This exercise uses the if condition to reject an Access-Request if the user is not in the users file.
sites-available/default virtual server under the FreeRADIUS configuration ...Read now
Unlock full access