<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=008470608-31032008>Hello
all,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=008470608-31032008></SPAN></FONT> </DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial size=2>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:</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial size=2>sql
{</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial size=2>
ok = 1</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008> <FONT face=Arial
size=2>fail = 1</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial size=2>if (sql returned ok)
{</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial size=2>
detail_success</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008> <FONT face=Arial
size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial size=2>elsif (sql returned
fail) {</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial size=2>
detail_fail</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008> <FONT face=Arial
size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial size=2>else
{</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008> <FONT face=Arial
size=2>detail_error</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008> <FONT face=Arial
size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial size=2>I cannot figure out
how to check what sql returned. </FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial size=2>Thank you for any
help.</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial
size=2>George</FONT></SPAN></DIV>
<DIV><SPAN class=008470608-31032008><FONT face=Arial
size=2></FONT></SPAN> </DIV></BODY><!--[object_id=#altectelecoms.gr#]--><FONT face=Tahoma size=2><FONT color=#0000ff>
<H1><FONT face="Arial Greek" color=#c0c0c0 size=2><SPAN lang=EN-GB>Disclaimer</SPAN></FONT></H1>
<P class=MsoNormal style="MARGIN: 5pt 0cm; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US">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 </SPAN><SPAN lang=EN-GB style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US">the</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US"> 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</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US"> </SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US">guaranteed to be secure or error-free as information could be</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US"> </SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US">intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.</SPAN><SPAN lang=EN-GB style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P></FONT></FONT></HTML>