mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
r5234: Do not use the "Local Unix Group"-default description for all kinds of
group-mappings. Guenther (This used to be commit 2556e6570ec8074bb67827f95eb365800c5c9827)
This commit is contained in:
parent
150b30a669
commit
da4ae764b2
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user