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
|
||||
|
||||
Reference in New Issue
Block a user