summaryrefslogtreecommitdiff
path: root/testsuite/build_farm/basicsmb.fns
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-11-26 02:10:59 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-11-26 02:10:59 +0000
commit8b7434b2a0b8d138cd83e4feeecb9127d729c437 (patch)
treea8f1a3c5e2f4bb9a873caeb5bf72b875c2cf0cb6 /testsuite/build_farm/basicsmb.fns
parent5c7016d5cb6195db705806c14ce31139051465c3 (diff)
downloadsamba-8b7434b2a0b8d138cd83e4feeecb9127d729c437.tar.gz
samba-8b7434b2a0b8d138cd83e4feeecb9127d729c437.tar.bz2
samba-8b7434b2a0b8d138cd83e4feeecb9127d729c437.zip
Fix up the build farm again.
This should get us 'green' for once... Andrew Bartlett (This used to be commit 042b9e3a6332473dc88c36dd7f99428644324ac4)
Diffstat (limited to 'testsuite/build_farm/basicsmb.fns')
-rw-r--r--testsuite/build_farm/basicsmb.fns31
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/build_farm/basicsmb.fns b/testsuite/build_farm/basicsmb.fns
index 5c3ab9b90c..ab866601a3 100644
--- a/testsuite/build_farm/basicsmb.fns
+++ b/testsuite/build_farm/basicsmb.fns
@@ -86,6 +86,37 @@ test_smbpasswd() {
return 0
}
+test_smbpasswd_remote() {
+ test_smbpasswd_password="$1"
+ test_smbpasswd_newpassword="$2"
+ rm -f $prefix/private/smbpasswd
+ echo "( echo $test_smbpasswd_password; echo $test_smbpasswd_newpassword ; echo $test_smbpasswd_newpassword; ) | $prefix/bin/smbpasswd -r localhost -s -U $whoami"
+ ( echo $test_smbpasswd_password; echo $test_smbpasswd_newpassword ; echo $test_smbpasswd_newpassword; ) | $prefix/bin/smbpasswd -r localhost -s -U $whoami
+ status=$?
+ if [ $status = 0 ]; then
+ echo "smbpasswd correctly remotely changed password ($test_smbpasswd_password -> $test_smbpasswd_newpassword)"
+ else
+ echo "smbpasswd failed to remotely changed password ($test_smbpasswd_password -> $test_smbpasswd_newpassword)! (status $status)"
+ return 1
+ fi
+ return 0
+}
+
+test_smbpasswd_local() {
+ test_smbpasswd_newpassword="$2"
+ rm -f $prefix/private/smbpasswd
+ echo "( echo $test_smbpasswd_newpassword ; echo $test_smbpasswd_newpassword; ) | $prefix/bin/smbpasswd -L $whoami"
+ ( echo $test_smbpasswd_newpassword ; echo $test_smbpasswd_newpassword; ) | $prefix/bin/smbpasswd -L $whoami
+ status=$?
+ if [ $status = 0 ]; then
+ echo "smbpasswd correctly locally changed password ($test_smbpasswd_password -> $test_smbpasswd_newpassword)"
+ else
+ echo "smbpasswd failed to locallly changed password ($test_smbpasswd_password -> $test_smbpasswd_newpassword)! (status $status)"
+ return 1
+ fi
+ return 0
+}
+
test_listfilesauth() {
remote_name="$1"
echo $prefix/bin/smbclient//$remote_name/samba -n buildclient -U$whoami%$password -c 'ls'