Re: How to activate the accounting sub section in perl script

2008-05-16 Thread Ivan Kalik
>please tell me the simplest way of how to test my accounting queries 

By sending accounting packets. Accounting doesn't work without them.

Ivan Kalik
Kalik Informatika ISP

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: How to activate the accounting sub section in perl script

2008-05-16 Thread johnson elangbam
>add perl to the accouting section in whatever virtual server you are
running,
>enable the accouting part in the perl config (in experimental.conf) and
>ensure you have an accounting subroutine in your perl module

>alan

Hi,
I am a new user in freeradius and this is my first time that I am
configuring freeradius. As advice by Alan I've done all the possible steps
to activate the accounting section.
These are the things I've changes

1. I've added an entry "perl" to the accounting sub section on default file.
2. Entry included of perl { } in module { } sub section in radiusd.conf.
3. And I already had an accounting sub module in my perl script.

Unfortunately I didn't found any execution of my queries
(start_accounting_query and stop_accounting_query),
please tell me the simplest way of how to test my accounting queries to make
it work. or please provide me the simplest accounting query to check the
accounting module if possible.

*here is the log output when it runs in debug mode*

FreeRADIUS Version 2.0.3, for host i686-pc-linux-gnu, built on May  7 2008
at 16:45:53
Copyright (C) 1999-2008 The FreeRADIUS server project and contributors.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License.
Starting - reading configuration files ...
including configuration file /usr/local/etc/raddb/radiusd.conf
including configuration file /usr/local/etc/raddb/clients.conf
including configuration file /usr/local/etc/raddb/snmp.conf
including configuration file /usr/local/etc/raddb/eap.conf
including configuration file /usr/local/etc/raddb/sql.conf
including configuration file /usr/local/etc/raddb/policy.conf
including files in directory /usr/local/etc/raddb/sites-enabled/
including configuration file /usr/local/etc/raddb/sites-enabled/default
including dictionary file /usr/local/etc/raddb/dictionary
main {
prefix = "/usr/local"
localstatedir = "/usr/local/var"
logdir = "/usr/local/var/log/radius"
libdir = "/usr/local/lib"
radacctdir = "/usr/local/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 1024
allow_core_dumps = no
pidfile = "/usr/local/var/run/radiusd/radiusd.pid"
checkrad = "/usr/local/sbin/checkrad"
debug_level = 0
proxy_requests = yes
 security {
max_attributes = 200
reject_delay = 1
status_server = yes
 }
}
 client localhost {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = "testing123"
shortname = "localhost"
nastype = "other"
 }
 client 192.168.1.227 {
require_message_authenticator = no
secret = "johnson"
 }
radiusd:  Loading Realms and Home Servers 
radiusd:  Instantiating modules 
 instantiate {
 Module: Linked to module rlm_exec
 Module: Instantiating exec
  exec {
wait = yes
input_pairs = "request"
shell_escape = yes
  }
 Module: Linked to module rlm_expr
 Module: Instantiating expr
 Module: Linked to module rlm_expiration
 Module: Instantiating expiration
  expiration {
reply-message = "Password Has Expired  "
  }
 Module: Linked to module rlm_logintime
 Module: Instantiating logintime
  logintime {
reply-message = "You are calling outside your allowed timespan  "
minimum-timeout = 60
  }
 }
radiusd:  Loading Virtual Servers 
server {
 modules {
 Module: Checking authenticate {...} for more modules to load
 Module: Linked to module rlm_perl
 Module: Instantiating perl
  perl {
module = "/usr/local/etc/raddb/myperltemp.pl"
func_authorize = "authorize"
func_authenticate = "authenticate"
func_accounting = "accounting"
func_preacct = "preacct"
func_checksimul = "checksimul"
func_detach = "detach"
func_xlat = "xlat"
func_pre_proxy = "pre_proxy"
func_post_proxy = "post_proxy"
func_post_auth = "post_auth"
  }
  perl {
max_clones = 32
start_clones = 32
min_spare_clones = 0
max_spare_clones = 32
cleanup_delay = 5
max_request_per_clone = 0
  }
 Module: Linked to module rlm_digest
 Module: Instantiating digest
 Module: Checking authorize {...} for more modules to load
 Module: Linked to module rlm_preprocess
 Module: Instantiating preprocess
  preprocess {
huntgroups = "/usr/local/etc/raddb/huntgroups"
hints = "/usr/local/etc/raddb/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
  }
 Module: Linked to module rlm_realm
 Module: Instantiating suffix
  realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no

Re: How to activate the accounting sub section in perl script

2008-05-15 Thread A . L . M . Buxey
Hi,
> hi,
>  I am doing my AAA in perl script for radius 2.0.3, can anybody please
> tell how do I activate my accounting subsection in my perl program, I didn't
> find any execution of my queries in the accounting sub section in my perl
> script.

add perl to the accouting section in whatever virtual server you are running,
enable the accouting part in the perl config (in experimental.conf) and
ensure you have an accounting subroutine in your perl module

alan
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: How to activate the accounting sub section in perl script

2008-05-15 Thread Ivan Kalik
List perl in accounting {}. That section is now in sites-enabled/default
or whatever virtual server you are using for accounting.

Ivan Kalik
Kalik Informatika ISP


Dana 15/5/2008, "johnson elangbam" <[EMAIL PROTECTED]> piše:

>hi,
> I am doing my AAA in perl script for radius 2.0.3, can anybody please
>tell how do I activate my accounting subsection in my perl program, I didn't
>find any execution of my queries in the accounting sub section in my perl
>script.
>
>With Regards,
>Johnson Elangbam
>
>

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


How to activate the accounting sub section in perl script

2008-05-15 Thread johnson elangbam
hi,
 I am doing my AAA in perl script for radius 2.0.3, can anybody please
tell how do I activate my accounting subsection in my perl program, I didn't
find any execution of my queries in the accounting sub section in my perl
script.

With Regards,
Johnson Elangbam
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html