From b5c736d0f0131a66629ebb35ce713c0d79a41fd5 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Mon, 16 May 2005 18:51:59 +0000 Subject: [PATCH] r6823: Add deletion confirmation / error message. (This used to be commit 11804521f9cf8cdfb8c1526ea81dfb8a2c16c194) --- source3/utils/net_rpc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index e982186835a..46eae155d58 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; -- 2.34.1