how to check module return codes?

Papadopoulos Georgios geop at altectelecoms.gr
Mon Mar 31 10:20:52 CEST 2008


Hello all,
 
I am a newbie with freeradius and I have a very newbie question. How do
I check the return code of a module? What I am trying to do is the
following:
 
sql {
    ok = 1
    fail = 1
}
if (sql returned ok) {
    detail_success
    ...
}
elsif (sql returned fail) {
    detail_fail
    ...
}
else {
    detail_error
    ...
}
 
I cannot figure out how to check what sql returned. 
 
Thank you for any help.
 
George
 

Disclaimer
The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20080331/880f71ed/attachment.html>


More information about the Freeradius-Users mailing list