summaryrefslogtreecommitdiffstats
path: root/testprogs
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-01-22 23:09:07 +0000
committerAndrew Bartlett <abartlet@samba.org>2007-01-22 23:09:07 +0000
commit278eda1b219bec35e84915be52e29b9ebffeb3f2 (patch)
tree85007b3acd453ff0f474a09afdfbe2996254a6bc /testprogs
parent7291d0cc95ab2ef99e7b8284c29ce9f84bdc5bfa (diff)
downloadsamba-278eda1b219bec35e84915be52e29b9ebffeb3f2.tar.gz
samba-278eda1b219bec35e84915be52e29b9ebffeb3f2.tar.xz
samba-278eda1b219bec35e84915be52e29b9ebffeb3f2.zip
r20958: Inspired by the lcov output, check the PASSWD_FILE and
--authentication-file options to smbclient. Andrew Bartlett
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/test_smbclient.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/testprogs/blackbox/test_smbclient.sh b/testprogs/blackbox/test_smbclient.sh
index 1d28fa2f713..211f0f3c487 100755
--- a/testprogs/blackbox/test_smbclient.sh
+++ b/testprogs/blackbox/test_smbclient.sh
@@ -97,6 +97,17 @@ echo rm tmpfilex | runcmd "Removing file" || failed=`expr $failed + 1`
echo ls | runcmd "List directory with LANMAN1" -m LANMAN1 || failed=`expr $failed + 1`
echo ls | runcmd "List directory with LANMAN2" -m LANMAN2 || failed=`expr $failed + 1`
-rm -f tmpfile tmpfile-old tmpfilex
+echo ls | testit "Test login with --machine-pass" $VALGRIND bin/smbclient $CONFIGURATION //$SERVER/tmp --machine-pass
+
+echo "password=$PASSWORD\nusername=$USERNAME\ndomain=$DOMAIN" > tmpauthfile
+
+echo ls | testit "Test login with --authentication-file" $VALGRIND bin/smbclient $CONFIGURATION //$SERVER/tmp --authentication-file=tmpauthfile
+
+echo "$PASSWORD" > tmppassfile
+
+echo ls | PASSWD_FILE="tmppassfile" testit "Test login with PASSWD_FILE" $VALGRIND bin/smbclient $CONFIGURATION //$SERVER/tmp -W "$DOMAIN" -U"$USERNAME"
+
+
+rm -f tmpfile tmpfile-old tmpfilex tmpauthfile tmppassfile
exit $failed