summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>2005-05-16 18:51:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:55 -0500
commitb5c736d0f0131a66629ebb35ce713c0d79a41fd5 (patch)
tree7009d7860c7ae218774ec41ed0112c22b0654bcb
parentd101da235bebfedc773e2f1be824df926891cc1a (diff)
downloadsamba-b5c736d0f0131a66629ebb35ce713c0d79a41fd5.tar.gz
samba-b5c736d0f0131a66629ebb35ce713c0d79a41fd5.tar.bz2
samba-b5c736d0f0131a66629ebb35ce713c0d79a41fd5.zip
r6823: Add deletion confirmation / error message.
(This used to be commit 11804521f9cf8cdfb8c1526ea81dfb8a2c16c194)
-rw-r--r--source3/utils/net_rpc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index e982186835..46eae155d5 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -663,6 +663,11 @@ static NTSTATUS rpc_user_del_internals(const DOM_SID *domain_sid,
}
/* Display results */
+ if (!NT_STATUS_IS_OK(result)) {
+ d_printf("Failed to delete user account - %s\n", nt_errstr(result));
+ } else {
+ d_printf("Deleted user account\n");
+ }
done:
return result;