<br><div class="gmail_quote"><div><font color="#3366ff">Hi,</font></div>
<div><font color="#3366ff"></font>&nbsp;</div>
<div><font color="#3366ff">I need your help to verify that I am in the right track for Radiator installation on Windows 2003 &amp; using PostgreSQL.</font></div>
<div><font color="#3366ff"></font>&nbsp;</div>
<div><font color="#3366ff">I have 3 observations below, pls scroll down.</font></div>
<div><font color="#3366ff"></font>&nbsp;</div>
<div><font color="#3366ff">1. Below is my radiator.cfg</font></div>
<div>&nbsp;</div>
<div>#----------------------------------------------------------------------------------------------------</div>
<div># windows.cfg<br>#<br># Example Radiator configuration file.<br># This very simple file will allow you to get started with <br># a simple system on Windows. You can then add and change features.<br># We suggest you start simple, prove to yourself that it<br>

# works and then develop a more complicated configuration.<br>#<br># This example is expected to be installed in <br>#&nbsp;&nbsp; c:\Program Files\Radiator\radius.cfg<br># It will authenticate from a standard users file in<br>#&nbsp;&nbsp; c:\Program Files\Radiator\users<br>

# it will log debug and other messages to<br>#&nbsp;&nbsp; c:\Program Files\Radiator\logfile<br># and log accounting to a file in<br>#&nbsp;&nbsp; c:\Program Files\Radiator\detail<br># (of course you can change all these by editing this config file if you wish)<br>

#<br># It will accept requests from any client and try to handle requests<br># for any realm.<br># And it will print out what its doing in great detail to the log file.<br>#<br># See radius.cfg for more complete examples of features and<br>

# syntax, and refer to the reference manual for a complete description<br># of all the features and syntax.<br>#<br># You should consider this file to be a starting point only<br># $Id: windows.cfg,v 1.1 2003/03/27 09:41:28 mikem Exp $</div>


<div>Foreground<br>LogStdout<br>LogDir&nbsp;&nbsp;c:/Program Files/Radiator<br>DbDir&nbsp;&nbsp;c:/Program Files/Radiator</div>
<div># This will log at DEBUG level: very verbose<br># User a lower trace level in production systems, typically use 3<br>Trace &nbsp;&nbsp;4</div>
<div># You will probably want to add other Clients to suit your site,<br># one for each NAS you want to work with. This will work<br># at least with radpwtst running on the local machine<br>&lt;Client DEFAULT&gt;<br>&nbsp;Secret&nbsp;mysecret<br>

&nbsp;DupInterval 0<br>&lt;/Client&gt;</div>
<div>&nbsp;</div>
<div># Authenticate all realms with this<br>&lt;Realm DEFAULT&gt;<br>&nbsp;&lt;AuthBy SQL&gt;<br>&nbsp;&nbsp;DBSource dbi:Pg:dbname=radiator<br>&nbsp;&nbsp;DBUsername sa<br>&nbsp;&nbsp;DBAuth vision2020<br>&nbsp;&nbsp;AuthSelect select PASSWORD from SUBSCRIBERS \<br>

&nbsp;&nbsp;where USERNAME=%0<br>&nbsp;# store accounting records in RADUSAGEyyyymm table<br>&nbsp;AccountingTable ACCOUNTING</div>
<div>&nbsp;# maybe update if this is a duplicate<br>&nbsp;AcctInsertQuery update or insert into %0 (%1) values (%2)</div>
<div>&nbsp;# Log all accounting to a single log file in LogDir<br>&nbsp;AcctFailedLogFileName %L/misseddetails&nbsp;&nbsp;<br>&nbsp;&nbsp;<br>&nbsp;&lt;/AuthBy&gt;</div>
<div>&lt;/Realm&gt;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><font color="#3366ff">2. Next, I run &quot;perl radpwtst -user mikem -password frjhjlkhlo&quot; and got the log below.</font></div>
<div><font color="#3366ff">I still wondering why I do not see any SQL statement like SELECT, INSERT in the log.</font></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Sat Jun 14 02:53:19 2008: DEBUG: Finished reading configuration file &#39;C:\Program Files\Radiator\radius.cfg&#39;<br>Sat Jun 14 02:53:19 2008: DEBUG: Reading dictionary file &#39;c:/Program Files/Radiator/dictionary&#39;<br>

Sat Jun 14 02:53:19 2008: DEBUG: Creating authentication port <a href="http://0.0.0.0:1645" target="_blank">0.0.0.0:1645</a><br>Sat Jun 14 02:53:19 2008: DEBUG: Creating accounting port <a href="http://0.0.0.0:1646" target="_blank">0.0.0.0:1646</a><br>
Sat Jun 14 02:53:19 2008: NOTICE: Server started: Radiator 4.2 on MYCBJ01T600022 (LOCKED)<br>
Sat Jun 14 02:53:53 2008: DEBUG: Packet dump:<br>*** Received from <a href="http://127.0.0.1" target="_blank">127.0.0.1</a> port 2471 ....<br>Code:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Accounting-Request<br>Identifier: 154<br>Authentic:&nbsp; d&lt;241&gt;&lt;165&gt;&lt;201&gt;{&lt;197&gt;&lt;214&gt;W+&lt;234&gt;d&lt;27&gt;WT&lt;145&gt;]<br>

Attributes:<br>&nbsp;User-Name = &quot;mikem&quot;<br>&nbsp;Service-Type = Framed-User<br>&nbsp;NAS-IP-Address = <a href="http://203.63.154.1" target="_blank">203.63.154.1</a><br>&nbsp;NAS-Identifier = &quot;<a href="http://203.63.154.1" target="_blank">203.63.154.1</a>&quot;<br>

&nbsp;NAS-Port = 1234<br>&nbsp;NAS-Port-Type = Async<br>&nbsp;Acct-Session-Id = &quot;00001234&quot;<br>&nbsp;Acct-Status-Type = Start<br>&nbsp;Called-Station-Id = &quot;123456789&quot;<br>&nbsp;Calling-Station-Id = &quot;987654321&quot;<br>&nbsp;Acct-Delay-Time = 0</div>


<div>Sat Jun 14 02:53:53 2008: DEBUG: Handling request with Handler &#39;Realm=DEFAULT&#39;<br>Sat Jun 14 02:53:53 2008: DEBUG:&nbsp; Adding session for mikem, <a href="http://203.63.154.1" target="_blank">203.63.154.1</a>, 1234<br>
Sat Jun 14 02:53:53 2008: DEBUG: Handling with Radius::AuthSQL: <br>
Sat Jun 14 02:53:53 2008: DEBUG: Handling accounting with Radius::AuthSQL<br>Sat Jun 14 02:53:53 2008: DEBUG: AuthBy SQL result: ACCEPT, <br>Sat Jun 14 02:53:53 2008: DEBUG: Accounting accepted<br>Sat Jun 14 02:53:53 2008: DEBUG: Packet dump:<br>

*** Sending to <a href="http://127.0.0.1" target="_blank">127.0.0.1</a> port 2471 ....<br>Code:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Accounting-Response<br>Identifier: 154<br>Authentic:&nbsp; d&lt;241&gt;&lt;165&gt;&lt;201&gt;{&lt;197&gt;&lt;214&gt;W+&lt;234&gt;d&lt;27&gt;WT&lt;145&gt;]<br>

Attributes:</div>
<div>Sat Jun 14 02:53:53 2008: DEBUG: Packet dump:<br>*** Received from <a href="http://127.0.0.1" target="_blank">127.0.0.1</a> port 2471 ....<br>Code:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Accounting-Request<br>Identifier: 155<br>Authentic:&nbsp; &lt;27&gt;&lt;225&gt;&lt;9&gt;&lt;214&gt;&lt;29&gt;&lt;254&gt;&lt;200&gt;&lt;247&gt;&lt;197&gt;&lt;172&gt;&lt;195&gt;&#39;9&lt;186&gt;&quot;&lt;166&gt;<br>

Attributes:<br>&nbsp;User-Name = &quot;mikem&quot;<br>&nbsp;Service-Type = Framed-User<br>&nbsp;NAS-IP-Address = <a href="http://203.63.154.1" target="_blank">203.63.154.1</a><br>&nbsp;NAS-Identifier = &quot;<a href="http://203.63.154.1" target="_blank">203.63.154.1</a>&quot;<br>

&nbsp;NAS-Port = 1234<br>&nbsp;NAS-Port-Type = Async<br>&nbsp;Acct-Session-Id = &quot;00001234&quot;<br>&nbsp;Acct-Status-Type = Stop<br>&nbsp;Called-Station-Id = &quot;123456789&quot;<br>&nbsp;Calling-Station-Id = &quot;987654321&quot;<br>&nbsp;Acct-Delay-Time = 0<br>

&nbsp;Acct-Session-Time = 1000<br>&nbsp;Acct-Input-Octets = 20000<br>&nbsp;Acct-Output-Octets = 30000</div>
<div>Sat Jun 14 02:53:53 2008: DEBUG: Handling request with Handler &#39;Realm=DEFAULT&#39;<br>Sat Jun 14 02:53:53 2008: DEBUG:&nbsp; Deleting session for mikem, <a href="http://203.63.154.1" target="_blank">203.63.154.1</a>, 1234<br>
Sat Jun 14 02:53:53 2008: DEBUG: Handling with Radius::AuthSQL: <br>
Sat Jun 14 02:53:53 2008: DEBUG: Handling accounting with Radius::AuthSQL<br>Sat Jun 14 02:53:53 2008: DEBUG: AuthBy SQL result: ACCEPT, <br>Sat Jun 14 02:53:53 2008: DEBUG: Accounting accepted<br>Sat Jun 14 02:53:53 2008: DEBUG: Packet dump:<br>

*** Sending to <a href="http://127.0.0.1" target="_blank">127.0.0.1</a> port 2471 ....<br>Code:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Accounting-Response<br>Identifier: 155<br>Authentic:&nbsp; &lt;27&gt;&lt;225&gt;&lt;9&gt;&lt;214&gt;&lt;29&gt;&lt;254&gt;&lt;200&gt;&lt;247&gt;&lt;197&gt;&lt;172&gt;&lt;195&gt;&#39;9&lt;186&gt;&quot;&lt;166&gt;<br>

Attributes:<br></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><font color="#3366ff">3. After that, I check PostgreSQL log and only see the following entry which I believe call from Radiator.</font></div>
<div><font color="#3366ff">And still wondering why no new records created in Accounting table</font></div>
<div>&nbsp;</div>
<div>2008-06-14 02:56:24 LOG:&nbsp; statement: SELECT count(*) FROM public.accounting WHERE false<br>2008-06-14 02:56:24 LOG:&nbsp; duration: 0.000 ms<br>2008-06-14 02:56:24 LOG:&nbsp; QUERY STATISTICS</div>
</div><br>