summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-02-29 12:47:45 +0000
committerVolker Lendecke <vlendec@samba.org>2004-02-29 12:47:45 +0000
commitefd357b732238a95ed38fe75544044f5339f3344 (patch)
treee19d78a6d29cfa0a1ab597fcef0e198883cab631 /source3/utils
parenta92de03d9e2f22c7d8a6361f5d9d93738d9e3409 (diff)
downloadsamba-efd357b732238a95ed38fe75544044f5339f3344.tar.gz
samba-efd357b732238a95ed38fe75544044f5339f3344.tar.bz2
samba-efd357b732238a95ed38fe75544044f5339f3344.zip
Print an informative error message if trying to add/remove members from
something not a group. Volker (This used to be commit 73f26de5c0b6a6b9b78c22016986f3106bce7bfa)
Diffstat (limited to 'source3/utils')
-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;
}