mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
tests: verify that groupname is read correctly when in kerberos auth
This commit is contained in:
@@ -6,6 +6,15 @@ if [ "$REASON" != "connect" ];then
|
||||
else
|
||||
echo $STATS_BYTES_IN >/tmp/disconnect/not-ok
|
||||
fi
|
||||
elif [ "$REASON" = "connect" ];then
|
||||
rm -f /tmp/disconnect/group-ok
|
||||
|
||||
if test "$GROUPNAME" != "testuser";then
|
||||
echo "Groupname failed: $GROUPNAME" >/tmp/group-not-ok
|
||||
exit 1;
|
||||
else
|
||||
echo "Groupname ok: $GROUPNAME" >/tmp/group-ok
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -158,7 +158,7 @@ rekey-method = ssl
|
||||
# DEVICE, IP_REAL (the real IP of the client), IP_LOCAL (the local IP
|
||||
# in the P-t-P connection), IP_REMOTE (the VPN IP of the client),
|
||||
# ID (a unique numeric ID); REASON may be "connect" or "disconnect".
|
||||
#connect-script = /usr/bin/myscript
|
||||
connect-script = /usr/bin/myscript
|
||||
disconnect-script = /usr/bin/myscript
|
||||
|
||||
# UTMP
|
||||
|
||||
Reference in New Issue
Block a user