Inspired by the lcov output, check the PASSWD_FILE and
authorabartlet <abartlet@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 22 Jan 2007 23:09:07 +0000 (23:09 +0000)
committerabartlet <abartlet@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 22 Jan 2007 23:09:07 +0000 (23:09 +0000)
--authentication-file options to smbclient.

Andrew Bartlett

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@20958 0c0555d6-39d7-0310-84fc-f1cc0bd64818

testprogs/blackbox/test_smbclient.sh

index 1d28fa2f713945c56356b4cf23f41a6e9346f8cb..211f0f3c48797ea88bd66b4be4e2e17c0257bef8 100755 (executable)
@@ -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