git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84de81b
)
s3-net: print error when "net rpc changetrustpw" has failed.
author
Günther Deschner
<gd@samba.org>
Mon, 5 Oct 2009 11:01:53 +0000
(13:01 +0200)
committer
Günther Deschner
<gd@samba.org>
Mon, 5 Oct 2009 11:01:53 +0000
(13:01 +0200)
Guenther
source3/utils/net_rpc.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_rpc.c
b/source3/utils/net_rpc.c
index b4505347b1f0e1aa7d497fa528190214f41d4e3a..be971d8555d25610b113080f6cc18b00621b4c6f 100644
(file)
--- a/
source3/utils/net_rpc.c
+++ b/
source3/utils/net_rpc.c
@@
-239,8
+239,16
@@
static NTSTATUS rpc_changetrustpw_internals(struct net_context *c,
int argc,
const char **argv)
{
+ NTSTATUS status;
+
+ status = trust_pw_find_change_and_store_it(pipe_hnd, mem_ctx, c->opt_target_workgroup);
+ if (!NT_STATUS_IS_OK(status)) {
+ d_fprintf(stderr, _("Failed to change machine account password: %s\n"),
+ nt_errstr(status));
+ return status;
+ }
- return
trust_pw_find_change_and_store_it(pipe_hnd, mem_ctx, c->opt_target_workgroup)
;
+ return
NT_STATUS_OK
;
}
/**