mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
tests: fixed unreliable password entry in radius tests
This commit is contained in:
@@ -75,11 +75,11 @@ $ECHO_E "test" >pass-radius$TMP
|
||||
$OPENCONNECT $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-radius$TMP &
|
||||
PID=$!
|
||||
|
||||
rm -f pass-radius$TMP
|
||||
|
||||
#wait for openconnect
|
||||
sleep 5
|
||||
|
||||
rm -f pass-radius$TMP
|
||||
|
||||
# The client IP depends on the username so it shouldn't change.
|
||||
ping -w 5 192.168.55.1
|
||||
if test $? != 0;then
|
||||
|
||||
@@ -56,14 +56,14 @@ fi
|
||||
|
||||
echo "Trying with correct password"
|
||||
echo "test" >pass-radius$TMP
|
||||
$OPENCONNECT $IP:$PORT_OCSERV -u testtime --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-radius$TMP &
|
||||
$OPENCONNECT $IP:$PORT_OCSERV -u testtime --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 <pass-radius$TMP &
|
||||
PID=$!
|
||||
|
||||
rm -f pass-radius$TMP
|
||||
|
||||
#wait for openconnect
|
||||
sleep 5
|
||||
|
||||
rm -f pass-radius$TMP
|
||||
|
||||
# The client IP depends on the username so it shouldn't change.
|
||||
ping -w 5 192.168.66.1
|
||||
if test $? != 0;then
|
||||
|
||||
Reference in New Issue
Block a user