s3:passdb: don't turn negative cache entries into valid idmappings (bug #9002)
commitb193272b055b858fd3b14ba0d35a5096ab0f07bc
authorStefan Metzmacher <metze@samba.org>
Tue, 19 Jun 2012 15:57:19 +0000 (19 17:57 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 24 Jul 2012 19:32:46 +0000 (24 21:32 +0200)
treef559bb0f3d1b49c497322673ed77924c8d6e8935
parentdbe86be6f24681a314e6e1b5089e6540548f603a
s3:passdb: don't turn negative cache entries into valid idmappings (bug #9002)

It's typical that some file operations set a NTACL, which tries
sid2uid() before sid2gid(), this will create a negative cache entry.

Negative SID2UID entries cause that a valid SID2GID mapping is ignored
and the group is ignored in the UNIX Token.

metze
(cherry picked from commit e19d064b2a23ec083da06fa56af47be694152442)
source3/passdb/lookup_sid.c