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

Dustin Doris wrote:
> On Wed, 2 Mar 2005, Chan Min Wai wrote:
> 
> 
>>-----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?
>>
> 
> 
> That will work, good idea.

Will Post a better version which will also have the remove of dhcpd
there... So hold for a while.. :)

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

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

iD8DBQFCMm68V0p9slMZLW4RAjrwAJ9JAMXZ/VycgXlGzKa6yvV1LewFzACfaEun
06gT5B7CBJXVivv7+ERpu94=
=iMCr
-----END PGP SIGNATURE-----

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

Reply via email to