summaryrefslogtreecommitdiff
path: root/testsuite/build_farm/basicsmb-domainsec-nt4.test
blob: 5bf3305516a9303f6d6812db4232c6ac59c7d780 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
if [ $whoami != "root" ]; then
	exit 0;
fi

. basicsmb.fns

test_joindomain_nt4() {

	smbpasswd -L -a -m buildfarm$

	echo $prefix/bin/net rpc join oldstyle -S localhost
        $prefix/bin/net rpc join oldstyle -S localhost
	status=$?
	if [ $status = 0 ]; then
	    echo "'net rpc join oldstyle' correctly joined the domain ($workgroup)"
	else
	    echo "'net rpc join oldstyle' failed to join the domain ($workgroup)! (status $status)"
	    return 1
	fi
	return 0
}

password=samba
security=DOMAIN
(test_smb_conf_setup && test_smbpasswd $password ) || exit 1

test_joindomain_nt4 $password || exit 1

test_listfilesauth $security  || exit 1
test_listfilesnpw $security  || exit 1