access to multiple value from rlm_exec

Dmitry Goncharov dmitry.son.of.anatoly at gmail.com
Mon Aug 4 14:59:07 CEST 2008


Hi!

please help me, how can access to multiple value from rlm_exec?
radius receive packet such this:
Mon Aug  4 16:32:06 2008
        Acct-Session-Id = "55E86035000A015A"
        Cisco-AVPair = "client-mac-address=0050.0430.4c23"
        Framed-Protocol = PPP
        Framed-IP-Address = xx.xx.xx.xx
        User-Name = "xxxx"
        Cisco-AVPair = "connect-progress=LAN Ses Up"
        Acct-Session-Time = 22796
        Acct-Input-Octets = 2565126
        Acct-Output-Octets = 23229624
        Acct-Input-Packets = 23808
        Acct-Output-Packets = 25356
        Acct-Authentic = RADIUS
        Acct-Status-Type = Interim-Update
        NAS-Port-Type = Virtual
        Cisco-NAS-Port = "0/0/1/570"
        NAS-Port = 0
        Service-Type = Framed-User
        NAS-IP-Address = xx.xx.xx.xx
        Acct-Delay-Time = 0
        Client-IP-Address = xx.xx.xx.xx
        Acct-Unique-Session-Id = "2252af4ea3eae1d8"
        Timestamp = 1217853126

however, from rlm_exec, printenv show:

ACCT_INPUT_OCTETS=5545038
CLIENT_IP_ADDRESS=xx.xx.xx.xx
NAS_PORT_TYPE=Virtual
FRAMED_PROTOCOL=PPP
SERVICE_TYPE=Framed-User
ACCT_STATUS_TYPE=Interim-Update
ACCT_INPUT_PACKETS=26107
ACCT_SESSION_ID="55E860350009FEC8"
ACCT_OUTPUT_OCTETS=13415143
NAS_PORT=0
ACCT_SESSION_TIME=24230
ACCT_AUTHENTIC=RADIUS
FRAMED_IP_ADDRESS=xx.xx.xx.xx
NAS_IP_ADDRESS=xx.xx.xx.xx
USER_NAME="xxxxxx"
CISCO_NAS_PORT="0/0/1/555"
ACCT_OUTPUT_PACKETS=25996
CISCO_AVPAIR="connect-progress=LAN Ses Up"
ACCT_UNIQUE_SESSION_ID="3ca7cb358d495772"
ACCT_DELAY_TIME=0

in first example, value  Cisco-AVPair exist twice, in second - once.
i`m use freeradius-1.1.6,

-- 
Dmitry, son of Anatoly



More information about the Freeradius-Users mailing list