Hello all,
I know the script need to be define in the exec {}
And the script before users login is put into post-auth, what about the
script after users logout or Just before users logout?
Anyone have any idea?
Below is the script that someone help me to control dhcp with radius...
To remove is easy Just set name and then keyin remove.
==================================
# !/usr/bin/bash
tr=`which tr`
omshell=`which omshell`
IPADD=$FRAMED_IP_ADDRESS
NETMASK=$FRAMED_IP_NETMASK
MACADD=`echo $1| tr - :| tr [:upper:] [:lower:]`
NASADD=$2
echo $IPADD $NETMASK $MACADD $NASADD >> /tmp/radtest
#creating a file to execute a value with omshell
cat << ! > /tmp/radtest.add
server 202.73.8.65
port 5901
connect
new host
set name = "$MACADD"
set hardware-address = $MACADD
set hardware-type = 1
set ip-address = $IPADD
create
!
omshell < /tmp/radtest.add
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html