Add and modify some of the various tests I have had sitting around here for a
[kai/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 -a -m buildfarm$
10
11         echo $prefix/bin/smbpasswd -L -j TESTWG
12         $prefix/bin/smbpasswd -L -j TESTWG
13         status=$?
14         if [ $status = 0 ]; then
15             echo "smbpasswd correctly joined the domain ($workgroup)"
16         else
17             echo "smbpasswd 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