From 73f26de5c0b6a6b9b78c22016986f3106bce7bfa Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 29 Feb 2004 12:47:45 +0000 Subject: Print an informative error message if trying to add/remove members from something not a group. Volker --- source/utils/net_rpc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/utils') diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c index 2e30a47afaa..a565effeff2 100644 --- a/source/utils/net_rpc.c +++ b/source/utils/net_rpc.c @@ -1379,6 +1379,9 @@ rpc_group_addmem_internals(const DOM_SID *domain_sid, const char *domain_name, } } + d_printf("Can only add members to global or local groups which " + "%s is not\n", argv[0]); + return NT_STATUS_UNSUCCESSFUL; } @@ -1545,6 +1548,9 @@ rpc_group_delmem_internals(const DOM_SID *domain_sid, const char *domain_name, } } + d_printf("Can only delete members from global or local groups which " + "%s is not\n", argv[0]); + return NT_STATUS_UNSUCCESSFUL; } -- cgit