summaryrefslogtreecommitdiffstats
path: root/debian/tests/smbclient-authenticated-share-list
blob: 9fcaf436ee3da584a93c18024e04289cb3bcdec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -x
set -e

. debian/tests/util

username="smbtest$$"
password="$$"

add_user "${username}" "${password}"

echo "Testing with incorrect password: must fail"
smbclient -L localhost -U "${username}"%wrongpass && exit 1

echo "Testing with correct password: must work"
smbclient -L localhost -U "${username}"%"${password}"