Rev 40 | Blame | Last modification | View Log
#/bin/sh
# $Id: alcasar-logout.sh 63 2010-04-08 19:56:10Z franck $
# deconnexion d'un usager
radiussecret=""
usage="Usage: alcasar-logout.sh nom_d'usager"
nb_args=$#
args=$1
if [ $nb_args -eq 0 ]
then
nb_args=1
args="-h"
fi
case $args in
-\? | -h* | --h*)
echo "$usage"
exit 0
;;
*)
echo "User-Name = $args" | /usr/bin/radclient 127.0.0.1:3799 40 $radiussecret
;;
esac