mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
test gssapi/kerberos only when compiled with gssapi support
This commit is contained in:
@@ -23,12 +23,18 @@ srcdir=${srcdir:-.}
|
|||||||
PORT=10500
|
PORT=10500
|
||||||
PORT2=10501
|
PORT2=10501
|
||||||
PORT_OCSERV=443
|
PORT_OCSERV=443
|
||||||
|
|
||||||
#this test can only be run as root
|
#this test can only be run as root
|
||||||
id|grep root >/dev/null 2>&1
|
id|grep root >/dev/null 2>&1
|
||||||
if [ $? != 0 ];then
|
if [ $? != 0 ];then
|
||||||
exit 77
|
exit 77
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
$SERV --version|grep gssapi >/dev/null 2>&1
|
||||||
|
if [ $? != 0 ];then
|
||||||
|
exit 77
|
||||||
|
fi
|
||||||
|
|
||||||
stop_all() {
|
stop_all() {
|
||||||
$DOCKER stop test_ocserv_client_kerberos
|
$DOCKER stop test_ocserv_client_kerberos
|
||||||
$DOCKER rm test_ocserv_client_kerberos
|
$DOCKER rm test_ocserv_client_kerberos
|
||||||
|
|||||||
@@ -22,6 +22,11 @@ SERV="${SERV:-../src/ocserv}"
|
|||||||
srcdir=${srcdir:-.}
|
srcdir=${srcdir:-.}
|
||||||
PORT=4449
|
PORT=4449
|
||||||
|
|
||||||
|
$SERV --version|grep gssapi >/dev/null 2>&1
|
||||||
|
if [ $? != 0 ];then
|
||||||
|
exit 77
|
||||||
|
fi
|
||||||
|
|
||||||
. `dirname $0`/common.sh
|
. `dirname $0`/common.sh
|
||||||
|
|
||||||
echo "Testing local backend with gssapi... "
|
echo "Testing local backend with gssapi... "
|
||||||
|
|||||||
Reference in New Issue
Block a user