...and my code/example shouldn't be taken verbosely. As stated, it's pseudo code... just to show you the sort of logic, comparison and setting of values. You are expected to read unlang man page and then the debug output of radiusd to see if it's working and whether it's working ;) alan