Fetch the SID of the user we are running as and send with the common
[Samba/nascimento.git] / testsuite / build_farm / basicsmb-domainsec-nt4.test
blob4e68acabec51840d531b28ae1cb019cd6c92f296
1 . basicsmb.fns
3 test_joindomain_nt4() {
5         echo $prefix/bin/smbpasswd -L -a -m buildfarm$
6         $prefix/bin/smbpasswd -L -a -m buildfarm$
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
20 password=samba
21 security=DOMAIN
22 (test_smb_conf_setup && test_smbpasswd $password ) || exit 1
24 test_joindomain_nt4 $password || exit 1
26 test_listfilesauth $security  || exit 1
27 test_listfilesnpw $security  || exit 1