1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

s3:winbind: Include local groups in _wbint_QueryGroupList

This is needed for GETGRENT to show also e.g. BUILTIN/users.
Otherwise the test_membership_user (local.nss.membership) would fail.

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Pavel Filipenský 2023-02-27 17:03:32 +01:00 committed by Andreas Schneider
parent f116cda34f
commit 783c9d2237

View File

@ -541,6 +541,21 @@ NTSTATUS _wbint_QueryGroupList(struct pipes_struct *p,
include_local_groups = true;
}
break;
case ROLE_DOMAIN_MEMBER:
/*
* This is needed for GETGRENT to show also e.g. BUILTIN/users.
* Otherwise the test_membership_user (smbtorture
* local.nss.membership) would fail (getgrouplist() would
* reports BUILTIN/users).
*/
if (domain->internal) {
/*
* we want to include local groups
* for BUILTIN and LOCALSAM
*/
include_local_groups = true;
}
break;
default:
/*
* We might include local groups in more