git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0800ce3
)
nicer output from "net rpc user add"
author
Andrew Tridgell
<tridge@samba.org>
Fri, 15 Mar 2002 09:23:24 +0000
(09:23 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 15 Mar 2002 09:23:24 +0000
(09:23 +0000)
(This used to be commit
a21ba95897531e7964c9e80a81cd5faa7394db77
)
source3/utils/net_rpc.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_rpc.c
b/source3/utils/net_rpc.c
index b19a82f366b5bbd3e18cc0fae579db37ca837450..42cfd4c647c2a726200a19dc8b7cfe07c6f75cfe 100644
(file)
--- a/
source3/utils/net_rpc.c
+++ b/
source3/utils/net_rpc.c
@@
-358,6
+358,12
@@
static NTSTATUS rpc_user_add_internals(const DOM_SID *domain_sid, struct cli_sta
}
done:
+ if (!NT_STATUS_IS_OK(result)) {
+ d_printf("Failed to add user %s - %s\n", acct_name,
+ get_nt_error_msg(result));
+ } else {
+ d_printf("Added user %s\n", acct_name);
+ }
return result;
}