Subversion Repositories ALCASAR

Rev

Rev 1790 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1790 Rev 1794
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-profil.sh 1790 2016-02-07 16:10:13Z franck $
2
# $Id: alcasar-profil.sh 1794 2016-02-24 08:43:29Z franck $
3
 
3
 
4
# alcasar-profil.sh
4
# alcasar-profil.sh
5
# by Richard REY
5
# by Richard REY
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
 
Line 112... Line 112...
112
						fi
112
						fi
113
					exit 0
113
					exit 0
114
				fi
114
				fi
115
				done
115
				done
116
		done
116
		done
117
		/usr/bin/htdigest $DIR_KEY/key_only_$profil $HOSTNAME $account
117
		/usr/bin/htdigest $DIR_KEY/key_only_$profil "ALCASAR Control Center (ACC)" $account
118
		concat
118
		concat
119
		list
119
		list
120
		;;
120
		;;
121
	--del|-d)
121
	--del|-d)
122
		# suppression d'un compte
122
		# suppression d'un compte
Line 152... Line 152...
152
			tmp_account=`cat $DIR_KEY/key_only_$i | cut -d':' -f1`
152
			tmp_account=`cat $DIR_KEY/key_only_$i | cut -d':' -f1`
153
			for j in $tmp_account
153
			for j in $tmp_account
154
				do
154
				do
155
				if [ "$j" = "$account" ]
155
				if [ "$j" = "$account" ]
156
					then
156
					then
157
					/usr/bin/htdigest $DIR_KEY/key_only_$i $HOSTNAME $account
157
					/usr/bin/htdigest $DIR_KEY/key_only_$i "ALCASAR Control Center (ACC)" $account
158
				fi
158
				fi
159
				done
159
				done
160
		done
160
		done
161
		concat
161
		concat
162
		;;
162
		;;