1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/source4/dsdb/samdb
Tim Beale 8a105af76c dsdb: Split out construct_generic_token_groups() so we can reuse it
construct_generic_token_groups() currently works out the entire group
membership for a user, including the primaryGroupID. We want to do the
exact same thing for the msDS-ResultantPSO constructed attribute.
However, construct_generic_token_groups() currently adds the resulting
SIDs to the LDB search result, which we don't want to do for
msDS-ResultantPSO.

This patch splits the bulk of the group SID calculation work out into
a separate function that we can reuse for msDS-ResultantPSO. basically
this is just a straight move of the existing code. The only real change
is the TALLOC_CTX is renamed (tmp_ctx --> mem_ctx) and now passed into
the new function (so freeing it if an error conditions is hit is now
done in the caller).

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
2018-05-11 06:01:24 +02:00
..
ldb_modules dsdb: Split out construct_generic_token_groups() so we can reuse it 2018-05-11 06:01:24 +02:00
cracknames.c s4:samdb: Add FALL_THROUGH statements in cracknames.c 2018-03-01 04:37:42 +01:00
samdb_privilege.c s4-auth Remove event context from privilage database handling 2010-12-21 15:10:38 +11:00
samdb.c samdb: Add remote address to connect 2018-05-10 20:02:23 +02:00
samdb.h samdb: Add transaction id control 2018-05-10 20:02:23 +02:00