8fbe59e0e13dc8e9129dd434b04c65c20fc99f07
[people/teissler/ipfire-2.x.git] / config / ovpn / verify
1 #!/bin/sh
2 if [ $1 -eq 0 ]; then
3 name2=`echo $2`
4 name3=${name2##*/}
5 name4=${name3##*CN=}
6 clientdisabled=`/bin/grep -iwc off,.*,$name4 /var/ipfire/ovpn/ovpnconfig`
7 if [ "$clientdisabled" = "1" ]; then
8 exit 1
9 fi
10 exit 0
11 fi
12 exit 0