dsdb: Ensure "authenticated users" is processed for group memberships
commit5da10d8dba8d4d83112f78d7364edb60121be099
authorAndrew Bartlett <abartlet@samba.org>
Sat, 29 Dec 2012 04:13:54 +0000 (29 15:13 +1100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 28 Jan 2013 08:22:38 +0000 (28 09:22 +0100)
tree5602b72bcf54b7aa2a742daa6e2b097fc586e036
parent66e22b4f3fa46c88abf2a0da8f047e209c552d05
dsdb: Ensure "authenticated users" is processed for group memberships

This change moves the addition of "Authenticated Users" from the very end of the
token processing to the start.  The reason is that we need to see if
"Authenticated Users" is a member of other builtin groups, just as we
would for any other SID.  This picks up the "Pre-Windows 2000 Compatible Access"
group, which is in turn often used in ACLs on LDAP objects.

Without this change, the eventual token does not contain S-1-5-32-554
and users other than "Administrator" are unable to read uidNumber
(in particular).

Andrew Bartlett

Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 8f078cdf247476fad511bb6d7e00c8654fd26e85)
source4/auth/session.c
source4/dsdb/common/util_groups.c
source4/dsdb/samdb/samdb.c