(RADIATOR) Re: PORTLIMITCHECK modification?

Hugh Irvine hugh at open.com.au
Fri Dec 12 17:44:32 CST 2003


Hello Maciej -

You can already specify the CountQuery in the configuration file with 
the standard code - there is no need to make the changes you show 
below. See section 6.41.1 in the Radiator 3.7.1 reference manual 
("doc/ref.html").

regards

Hugh


On 13/12/2003, at 8:35 AM, Maciej Miechowicz wrote:

> hi hugh
>
> today we run into a problem with the PORTLIMITCHECK module. at the 
> moment it's checking only the DNIS parameter to get the current 
> connections count however for one single case we needed to add also 
> the nas ip address check. after a small modification in the initialize 
> function:
>
> if(!$self->{CountQuery}) {
>   $self->{CountQuery} = "select COUNT(*) from RADONLINE where 
> DNIS='%{Called-Station-Id}'";
> }
>
> instead of  (without checking if the module parameter is set)
>
>   $self->{CountQuery} = "select COUNT from RADONLINE where 
> DNIS='%{Called-Station-Id}'";
>
> now we can pass the CountQuery parameter directly from the config file.
>
> not sure if you'd like to include this change in case somebody runs 
> into the same issue as we did.
>
>
> greetings
>
> Maciej Miechowicz <mac at ifxcorp.com>
> IFX NETWORKS

NB: have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list