Line | |
---|
1 |
|
---|
2 | . basicsmb.fns
|
---|
3 |
|
---|
4 | test_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 |
|
---|
19 | password=samba
|
---|
20 | (test_smb_conf_setup && test_smbpasswd $password ) || exit 1
|
---|
21 |
|
---|
22 | test_joindomain $password || exit 1
|
---|
23 |
|
---|
24 | security=DOMAIN
|
---|
25 | test_listfilesauth $security || exit 1
|
---|
26 | test_listfilesnpw $security || exit 1
|
---|
27 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.