Changeset 738 for branches/samba-3.5.x/source3/lib/util_sid.c
- Timestamp:
- Nov 12, 2012, 7:10:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/lib/util_sid.c
r583 r738 685 685 DOM_SID **user_sids, 686 686 size_t *num_user_sids, 687 bool include_user_group_rid, 688 bool skip_ressource_groups) 687 bool include_user_group_rid) 689 688 { 690 689 NTSTATUS status; … … 739 738 } 740 739 741 /* Copy 'other' sids. We need to do sid filtering here to 742 prevent possible elevation of privileges. See: 743 744 http://www.microsoft.com/windows2000/techinfo/administration/security/sidfilter.asp 745 */ 740 /* SID filtering should only be handled by the domain controller on a 741 trust by trust basis, and is counter-indicated for forests. Since 742 native AD return all Domain Local groups as other SIDs, then this 743 must not filter them when parsing INFO3 responses such that the 744 list is identical to the tokenGroups LDAP query. 745 */ 746 746 747 747 for (i = 0; i < info3->sidcount; i++) { 748 749 if (skip_ressource_groups &&750 (info3->sids[i].attributes & SE_GROUP_RESOURCE)) {751 continue;752 }753 754 748 status = add_sid_to_array(mem_ctx, info3->sids[i].sid, 755 749 &sid_array, &num_sids);
Note:
See TracChangeset
for help on using the changeset viewer.