diff options
Diffstat (limited to 'source3/utils/net_sam.c')
-rw-r--r-- | source3/utils/net_sam.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/utils/net_sam.c b/source3/utils/net_sam.c index 2ee9a91b70..f1cb0a4167 100644 --- a/source3/utils/net_sam.c +++ b/source3/utils/net_sam.c @@ -1220,10 +1220,12 @@ static int net_sam_addmem(struct net_context *c, int argc, const char **argv) if ((grouptype == SID_NAME_ALIAS) || (grouptype == SID_NAME_WKN_GRP)) { if ((membertype != SID_NAME_USER) && + (membertype != SID_NAME_ALIAS) && (membertype != SID_NAME_DOM_GRP)) { - d_fprintf(stderr, _("%s is a local group, only users " - "and domain groups can be added.\n" - "%s is a %s\n"), argv[0], argv[1], + d_fprintf(stderr, _("Can't add %s: only users, domain " + "groups and domain local groups " + "can be added. %s is a %s\n"), + argv[0], argv[1], sid_type_lookup(membertype)); return -1; } |