summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-02-29 12:48:29 +0000
committerVolker Lendecke <vlendec@samba.org>2004-02-29 12:48:29 +0000
commit55afdfa77cd2efce116bf27fd98aff9f73feb283 (patch)
tree08316641850cd5b60197dc8f2390a7fa998cde0f
parent3e2e8d2f4d7fea7be34a10dbf4796a8b8edcf8c6 (diff)
downloadsamba-55afdfa77cd2efce116bf27fd98aff9f73feb283.tar.gz
samba-55afdfa77cd2efce116bf27fd98aff9f73feb283.tar.bz2
samba-55afdfa77cd2efce116bf27fd98aff9f73feb283.zip
Print an informative error message if trying to add/remove members from
something not a group. Volker (This used to be commit 9cfc97df456199c22e199831d28597132cf001a8)
-rw-r--r--source3/utils/net_rpc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 2e30a47afa..a565effeff 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/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;
}