$prefix/bin/net rpc join oldstyle -S localhost
status=$?
if [ $status = 0 ]; then
- echo "'net rpc join oldstyle' correctly joined the domain ($workgroup)"
+ echo "'net rpc join oldstyle' correctly joined the domain"
else
- echo "'net rpc join oldstyle' failed to join the domain ($workgroup)! (status $status)"
+ echo "'net rpc join oldstyle' failed to join the domain! (status $status)"
return 1
fi
return 0
. basicsmb.fns
test_joindomain() {
- test_joindomain_password="$1"
+ 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 ($workgroup)"
+ echo "'net rpc join' correctly joined the domain"
else
- echo "'net rpc join' failed to join the domain ($workgroup)! (status $status)"
+ echo "'net rpc join' failed to join the domain! (status $status)"
return 1
fi
return 0