5bf3305516a9303f6d6812db4232c6ac59c7d780
[samba.git] / testsuite / build_farm / basicsmb-domainsec-nt4.test
1 if [ $whoami != "root" ]; then
2         exit 0;
3 fi
4
5 . basicsmb.fns
6
7 test_joindomain_nt4() {
8
9         smbpasswd -L -a -m buildfarm$
10
11         echo $prefix/bin/net rpc join oldstyle -S localhost
12         $prefix/bin/net rpc join oldstyle -S localhost
13         status=$?
14         if [ $status = 0 ]; then
15             echo "'net rpc join oldstyle' correctly joined the domain ($workgroup)"
16         else
17             echo "'net rpc join oldstyle' failed to join the domain ($workgroup)! (status $status)"
18             return 1
19         fi
20         return 0
21 }
22
23 password=samba
24 security=DOMAIN
25 (test_smb_conf_setup && test_smbpasswd $password ) || exit 1
26
27 test_joindomain_nt4 $password || exit 1
28
29 test_listfilesauth $security  || exit 1
30 test_listfilesnpw $security  || exit 1
31