diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-03-15 09:23:24 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-03-15 09:23:24 +0000 |
commit | 47731e5b549bc71371b53ca25c576f0c6be25dd1 (patch) | |
tree | d1a28f7a95b638a97d721872cc4dab3a150ed491 /source3/utils | |
parent | 0800ce3269e0c7a38dba4a53a5e07aee916c75ec (diff) | |
download | samba-47731e5b549bc71371b53ca25c576f0c6be25dd1.tar.gz samba-47731e5b549bc71371b53ca25c576f0c6be25dd1.tar.bz2 samba-47731e5b549bc71371b53ca25c576f0c6be25dd1.zip |
nicer output from "net rpc user add"
(This used to be commit a21ba95897531e7964c9e80a81cd5faa7394db77)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index b19a82f366..42cfd4c647 100644 --- 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; } |