r6823: Add deletion confirmation / error message.
authorJohn Terpstra <jht@samba.org>
Mon, 16 May 2005 18:51:59 +0000 (18:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:55 +0000 (10:56 -0500)
(This used to be commit 11804521f9cf8cdfb8c1526ea81dfb8a2c16c194)

source3/utils/net_rpc.c

index e982186835a87eb9ae3f18603ac990335b9aa804..46eae155d582cb3f93655791fb44ef86d6986aab 100644 (file)
@@ -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;