# $OpenBSD: addrmatch.sh,v 1.3 2010/02/09 04:57:36 djm Exp $ # Placed in the Public Domain. tid="address match" mv $OBJ/sshd_proxy $OBJ/sshd_proxy_bak run_trial() { user="$1"; addr="$2"; host="$3"; expected="$4"; descr="$5" verbose "test $descr for $user $addr $host" result=`${SSHD} -f $OBJ/sshd_proxy -T \ -C user=${user},addr=${addr},host=${host} | \ awk '/^passwordauthentication/ {print $2}'` if [ "$result" != "$expected" ]; then fail "failed for $user $addr $host: expected $expected, got $result" fi } cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy cat >>$OBJ/sshd_proxy <