mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
full-test: set PORT_OCSERV
This commit is contained in:
@@ -26,6 +26,7 @@ if [ $? != 0 ];then
|
|||||||
exit 77
|
exit 77
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PORT_OCSERV=5551
|
||||||
CONFIG="tcp"
|
CONFIG="tcp"
|
||||||
IMAGE=ocserv-test1
|
IMAGE=ocserv-test1
|
||||||
IMAGE_NAME=test_ocserv
|
IMAGE_NAME=test_ocserv
|
||||||
@@ -112,6 +113,7 @@ printf "#\!/bin/sh\n" >echo-admin$TMP
|
|||||||
printf "echo root" >>echo-admin$TMP
|
printf "echo root" >>echo-admin$TMP
|
||||||
printf "\n" >>echo-admin$TMP
|
printf "\n" >>echo-admin$TMP
|
||||||
chmod 755 echo-admin$TMP
|
chmod 755 echo-admin$TMP
|
||||||
|
setsid ssh -T -F config$TMP root@192.168.1.1 occtl show users
|
||||||
setsid ssh -T -F config$TMP root@192.168.1.1 occtl show user test >out$TMP 2>&1
|
setsid ssh -T -F config$TMP root@192.168.1.1 occtl show user test >out$TMP 2>&1
|
||||||
cat out$TMP
|
cat out$TMP
|
||||||
rm -f echo-admin$TMP
|
rm -f echo-admin$TMP
|
||||||
|
|||||||
Reference in New Issue
Block a user