#!/bin/sh # this runs a smbclient based authentication tests if [ $# -lt 6 ]; then cat < EOF exit 1 fi SERVER="$1" USERNAME="$2" PASSWORD="$3" MAPTOGUEST="$4" SMBCLIENT="$5" PROTOCOL="$6" SMBCLIENT="$VALGRIND ${SMBCLIENT}" shift 6 ADDARGS="$*" incdir=$(dirname $0)/../../../testprogs/blackbox . $incdir/subunit.sh if [ $PROTOCOL != "SMB3" -a $PROTOCOL != "NT1" ]; then cat <