mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
net: groupmap cleanup should not delete BUILTIN mappings
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13065 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Oct 2 15:17:00 CEST 2017 on sn-devel-144
This commit is contained in:
committed by
Volker Lendecke
parent
6539cc8a24
commit
064e17c0d6
@ -764,7 +764,9 @@ static int net_groupmap_cleanup(struct net_context *c, int argc, const char **ar
|
||||
printf(_("Group %s is not mapped\n"),
|
||||
maps[i]->nt_name);
|
||||
|
||||
if (!sid_check_is_in_our_sam(&maps[i]->sid)) {
|
||||
if (!sid_check_is_in_our_sam(&maps[i]->sid) &&
|
||||
!sid_check_is_in_builtin(&maps[i]->sid))
|
||||
{
|
||||
printf(_("Deleting mapping for NT Group %s, sid %s\n"),
|
||||
maps[i]->nt_name,
|
||||
sid_string_tos(&maps[i]->sid));
|
||||
|
Reference in New Issue
Block a user