net rpc did not inform you if no smbd is running.
I never liked the error message (!) Success! when we established a trust.
Volker
if (NT_STATUS_IS_OK(nt_status)) {
return nt_status;
} else {
- DEBUG(1,("Cannot connect to server. Error was %s\n",
- nt_errstr(nt_status)));
+ d_printf("Could not connect to server %s\n", server_name);
/* Display a nicer message depending on the result */
talloc_destroy(mem_ctx);
- DEBUG(0, ("Success!\n"));
+ d_printf("Trust to domain %s established\n", domain_name);
return 0;
}