• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/samba-3.0.25b/testsuite/build_farm/
1. basicsmb.fns
2
3test_joindomain_nt4() {
4
5	echo $prefix/bin/smbpasswd -L -a -m buildfarm$
6	$prefix/bin/smbpasswd -L -a -m buildfarm$
7
8	echo $prefix/bin/net rpc oldjoin -S localhost
9        $prefix/bin/net rpc oldjoin -S localhost
10	status=$?
11	if [ $status = 0 ]; then
12	    echo "'net rpc oldjoin' correctly joined the domain"
13	else
14	    echo "'net rpc oldjoin' failed to join the domain! (status $status)"
15	    return 1
16	fi
17	return 0
18}
19
20password=samba
21security=DOMAIN
22(test_smb_conf_setup && test_smbpasswd $password ) || exit 1
23
24test_joindomain_nt4 $password || exit 1
25
26test_listfilesauth $security  || exit 1
27test_listfilesnpw $security  || exit 1
28
29