• 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
2. basicsmb.fns
3
4test_joindomain() {
5	test_join_domain_password="$1"
6
7	echo "$prefix/bin/net rpc join -S localhost  -U $whoami%$test_join_domain_password"
8	$prefix/bin/net rpc join -S localhost  -U $whoami%$test_join_domain_password
9	status=$?
10	if [ $status = 0 ]; then
11	    echo "'net rpc join' correctly joined the domain"
12	else
13	    echo "'net rpc join' failed to join the domain! (status $status)"
14	    return 1
15	fi
16	return 0
17}
18
19password=samba
20(test_smb_conf_setup && test_smbpasswd $password ) || exit 1
21
22test_joindomain $password || exit 1
23
24security=DOMAIN
25test_listfilesauth $security  || exit 1
26test_listfilesnpw $security  || exit 1
27
28