s3:smbd: s/event_add_fd/tevent_add_fd and s/EVENT_FD_/TEVENT_FD_
[Samba/gebeck_regimport.git] / testsuite / build_farm / basicsmb-domainsec.test
blobeb0a5c81aa1a180147e0fe012b0d146e731cb1f7
2 . basicsmb.fns
4 test_joindomain() {
5         test_join_domain_password="$1"
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
19 password=samba
20 (test_smb_conf_setup && test_smbpasswd $password ) || exit 1
22 test_joindomain $password || exit 1
24 security=DOMAIN
25 test_listfilesauth $security  || exit 1
26 test_listfilesnpw $security  || exit 1