Subversion Repositories ALCASAR

Rev

Rev 789 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 789 Rev 790
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-logout.sh 789 2012-01-10 22:05:05Z richard $
2
# $Id: alcasar-logout.sh 790 2012-01-12 23:23:59Z richard $
3
 
3
 
4
# alcasar-logout.sh
4
# alcasar-logout.sh
5
# by Richard REY
5
# by Rexy
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
8
# Déconnexion d'un ou de tous les usagers
8
# Déconnexion d'un ou de tous les usagers
9
# One user (or all users) disconnect
9
# One user (or all users) disconnect
10
 
10
 
11
macallowed_file="/usr/local/etc/alcasar-macallowed"
11
macallowed_file="/usr/local/etc/alcasar-macallowed"
12
radiussecret="ci0wkfI9"
12
radiussecret=""
13
OLDIFS=$IFS
13
OLDIFS=$IFS
14
IFS=$'\n'
14
IFS=$'\n'
15
 
15
 
16
usage="Usage: alcasar-logout.sh {user_name} | {all}"
16
usage="Usage: alcasar-logout.sh {user_name} | {all}"
17
nb_args=$#
17
nb_args=$#