Subversion Repositories ALCASAR

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
1 root 1
#/bin/sh
2
# deconnexion d'un usager
3
 
4
radiussecret=""
5
 
6
usage="Usage: alcasar-logout.sh nom_d'usager"
7
nb_args=$#
8
args=$1
9
if [ $nb_args -eq 0 ]
10
then
11
	nb_args=1
12
	args="-h"
13
fi
14
case $args in
15
	-\? | -h* | --h*)
16
		echo "$usage"
17
		exit 0
18
		;;
19
	*)
20
		echo "User-Name = $args" | /usr/bin/radclient 127.0.0.1:3799 40 $radiussecret
21
		;;
22
esac
23