Proxy accounting after query LDAP

Rohaizam Abu Bakar haizam at myjaring.net
Mon Jan 22 09:58:36 CET 2007


I've tried to run from preacct instead of in acounting inside rlm_perl and 
set Proxy-To-Realm  = <proxy_name> but still accounting not been proxied...

##########################
ii) radiusd.conf

perl y5perl {
                module = /usr/local/etc/raddb/y5perl.pl
}

preacct {
.....
y5perl
files
}

i) y5perl.pl

sub preacct {

# some code here
$RAD_REPLY{'Proxy-To-Realm'} = "infranet2";
# where infranet2 is configured in proxy.conf to forward to other server.
}
####################################

How can we set Proxy-To-Realm from rlm_perl??

--haizam


----- Original Message ----- 
From: "Rohaizam Abu Bakar" <haizam at myjaring.net>
To: "FreeRadius users mailing list" <freeradius-users at lists.freeradius.org>
Sent: Monday, January 22, 2007 2:26 PM
Subject: Proxy accounting after query LDAP


> FR: freeradius-1.1.2
> OD: FreeBSD 6.0
>
> trying to query LDAP for certain attribute.. if found, then proxy 
> accounting to other server if not store accounting locally.
> trying using rlm_perl as below:-
>
>
>
> i) radiusd.conf
>
> perl y5perl {
>                module = /usr/local/etc/raddb/y5perl.pl
>        }
>
> accounting {
> ......
> y5perl
> }
>
>
> ii)  y5perl.pl
>
> sub accounting {
>        # For debugging purposes only
>        &log_request_attributes;
>
>        # You can call another subroutine from here
>        &test_call;
>        &wifi_infranet;
>
>        return RLM_MODULE_OK;
> }
>
> sub wifi_infranet {
>
> ## some code to query ldap for attribute A
>
> if (A) {
>
> ## What should i put here to force proxy accounting to other server??
>
> }
>
>
>
> Any other method??
>
> TQ..
>
>
> --haizam
> - List info/subscribe/unsubscribe? See 
> http://www.freeradius.org/list/users.html 




More information about the Freeradius-Users mailing list