mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
8d3501c8e8
(This used to be commit 015924491e
)
28 lines
643 B
Plaintext
28 lines
643 B
Plaintext
|
|
. basicsmb.fns
|
|
|
|
test_joindomain() {
|
|
test_join_domain_password="$1"
|
|
|
|
echo "$prefix/bin/net rpc join -S localhost -U $whoami%$test_join_domain_password"
|
|
$prefix/bin/net rpc join -S localhost -U $whoami%$test_join_domain_password
|
|
status=$?
|
|
if [ $status = 0 ]; then
|
|
echo "'net rpc join' correctly joined the domain"
|
|
else
|
|
echo "'net rpc join' failed to join the domain! (status $status)"
|
|
return 1
|
|
fi
|
|
return 0
|
|
}
|
|
|
|
password=samba
|
|
(test_smb_conf_setup && test_smbpasswd $password ) || exit 1
|
|
|
|
test_joindomain $password || exit 1
|
|
|
|
security=DOMAIN
|
|
test_listfilesauth $security || exit 1
|
|
test_listfilesnpw $security || exit 1
|
|
|