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 | a21ba95897531e7964c9e80a81cd5faa7394db77 (patch) | |
tree | e28fe086b9eb356b1217425db1d1a70394ecb492 | |
parent | 1ad1a025b3fe5aeff5adf685f47c9cc05ef80e40 (diff) | |
download | samba-a21ba95897531e7964c9e80a81cd5faa7394db77.tar.gz samba-a21ba95897531e7964c9e80a81cd5faa7394db77.tar.xz samba-a21ba95897531e7964c9e80a81cd5faa7394db77.zip |
nicer output from "net rpc user add"
-rw-r--r-- | source/utils/net_rpc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c index b19a82f366b..42cfd4c647c 100644 --- a/source/utils/net_rpc.c +++ b/source/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; } |