-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chan Min Wai wrote:
> Dustin Doris wrote:
> 
> 
>>>>the variable for this script is
>>>>1) the NAS ip (the dhcp object class)
>>>>2) the Client MAC address
>>>>3) the ip address from ippool
>>>>4) the subnet from the ippool
> 

Strange ... I've it solved by this way...

exec test {
        wait = yes
        program = "/bin/bash /usr/local/bin/test %{Calling-Station-id}
%{Nas-Ip-Address}"
        input_pairs = reply
        output_pairs = reply
        }

/usr/local/bin/test
# !/usr/bin/bash
#testing script
printenv > /tmp/exec-program-wait
echo  $FRAMED_IP_ADDRESS $FRAMED_IP_NETMASK > /tmp/radtest
echo $1 >> /tmp/radtest
echo $2 >> /tmp/radtest
exit

cat /tmp/radtest
192.168.0.206 255.255.255.0
00-11-09-5f-a9-8b
192.168.0.16

Interesting :)


Is this the right way?


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCJZzzV0p9slMZLW4RAggkAJ4qMs7KfVPRnVuwgWty7eqwO1SeGwCeMs0F
8+azS1FxBCNDGQPkLKKYpek=
=l8MF
-----END PGP SIGNATURE-----

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

Reply via email to