Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

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