diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-01-22 23:09:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:44:02 -0500 |
commit | 109d97a38ffdc534f55d5f9ab8484566c918d580 (patch) | |
tree | 3c7a6de0885dfed346b9ce26b5544e8ba08547cb /testprogs/blackbox | |
parent | a00bd47bfa0afeaaf0b8db511f7fed06bb557b6f (diff) | |
download | samba-109d97a38ffdc534f55d5f9ab8484566c918d580.tar.gz samba-109d97a38ffdc534f55d5f9ab8484566c918d580.tar.bz2 samba-109d97a38ffdc534f55d5f9ab8484566c918d580.zip |
r20958: Inspired by the lcov output, check the PASSWD_FILE and
--authentication-file options to smbclient.
Andrew Bartlett
(This used to be commit f85e57a71e639c63d89dd2d4c11632e36d0e8ba6)
Diffstat (limited to 'testprogs/blackbox')
-rwxr-xr-x | testprogs/blackbox/test_smbclient.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/testprogs/blackbox/test_smbclient.sh b/testprogs/blackbox/test_smbclient.sh index 1d28fa2f71..211f0f3c48 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 |