3 # this tests a full audit share with bad VFS
4 # names will not allow connection.
5 # BUG: https://bugzilla.samba.org/show_bug.cgi?id=15098
9 Usage: $0 SERVER SHARE USERNAME PASSWORD SMBCLIENT
19 SMBCLIENT="$VALGRIND ${SMBCLIENT}"
21 incdir=$(dirname "$0")/../../../testprogs/blackbox
22 . "$incdir/subunit.sh"
26 $SMBCLIENT //"$SERVER"/"$SHARE" -U"$USERNAME"%"$PASSWORD" -c "ls" | grep "tree connect failed: NT_STATUS_UNSUCCESSFUL" >/dev/null 2>&1
29 testit "Cannot connect to share $SHARE" can_connect || failed=$((failed + 1))