summaryrefslogtreecommitdiff
path: root/testsuite/build_farm/basicsmb.fns
blob: 0708e2f89a22faeab69bc974cd8178110ba6e940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
test_smb_conf_setup() {
	cat basicsmb.smb.conf.template | sed "s|PREFIX|$prefix|g" | sed "s|BUILD_FARM|$pwd|g" > $prefix/lib/smb.conf
	echo "Setting up smb.conf:"
	cat $prefix/lib/smb.conf

	echo "127.0.0.1    localhost">$prefix/lib/lmhosts

}

test_smbpasswd() {
	echo "( echo $password ; echo $password; ) | $prefix/bin/smbpasswd -L -s -a $whoami"
	( echo $password ; echo $password; ) | $prefix/bin/smbpasswd -L -s -a $whoami
	status=$?
	if [ $status = 0 ]; then
	    echo "smbpasswd correctly set inital password ($password)"
	else
	    echo "smbpasswd failed to set inital password ($password)! (status $status)"
	    return 1
	fi
	return 0
}