summaryrefslogtreecommitdiffstats
path: root/debian/tests/smbclient-authenticated-share-list
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:31 +0000
commit236cb75e4430569627585a5818d9ce9bc85640f8 (patch)
treef84b5c0335eb76eb9df1e6c2c0004d7d9667c6e4 /debian/tests/smbclient-authenticated-share-list
parentAdding upstream version 2:4.17.12+dfsg. (diff)
downloadsamba-236cb75e4430569627585a5818d9ce9bc85640f8.tar.xz
samba-236cb75e4430569627585a5818d9ce9bc85640f8.zip
Adding debian version 2:4.17.12+dfsg-0+deb12u1.debian/2%4.17.12+dfsg-0+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/smbclient-authenticated-share-list')
-rw-r--r--debian/tests/smbclient-authenticated-share-list18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/tests/smbclient-authenticated-share-list b/debian/tests/smbclient-authenticated-share-list
new file mode 100644
index 0000000..9fcaf43
--- /dev/null
+++ b/debian/tests/smbclient-authenticated-share-list
@@ -0,0 +1,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}"
+