diff options
author | Günther Deschner <gd@samba.org> | 2005-02-04 22:27:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:55:34 -0500 |
commit | da4ae764b2c460826c5706c6cc8d38485eba2756 (patch) | |
tree | c27115e408c271574af0907464cc5f9dfa2db17f /source3/utils | |
parent | 150b30a669b6d6b56a41a82999d3a34b6427560c (diff) | |
download | samba-da4ae764b2c460826c5706c6cc8d38485eba2756.tar.gz samba-da4ae764b2c460826c5706c6cc8d38485eba2756.tar.bz2 samba-da4ae764b2c460826c5706c6cc8d38485eba2756.zip |
r5234: Do not use the "Local Unix Group"-default description for all kinds of
group-mappings.
Guenther
(This used to be commit 2556e6570ec8074bb67827f95eb365800c5c9827)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_groupmap.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c index c6391a65fe..158c006d1c 100644 --- a/source3/utils/net_groupmap.c +++ b/source3/utils/net_groupmap.c @@ -277,8 +277,22 @@ static int net_groupmap_add(int argc, const char **argv) sid_to_string(string_sid, &sid); } - if (!ntcomment[0]) - fstrcpy(ntcomment, "Local Unix group"); + if (!ntcomment[0]) { + switch (sid_type) { + case SID_NAME_WKN_GRP: + fstrcpy(ntcomment, "Wellknown Unix group"); + break; + case SID_NAME_DOM_GRP: + fstrcpy(ntcomment, "Domain Unix group"); + break; + case SID_NAME_ALIAS: + fstrcpy(ntcomment, "Local Unix group"); + break; + default: + fstrcpy(ntcomment, "Unix group"); + break; + } + } if (!ntgroup[0] ) fstrcpy( ntgroup, unixgrp ); |