s3:passdb: don't turn negative cache entries into valid idmappings (bug #9002)
authorStefan Metzmacher <metze@samba.org>
Tue, 19 Jun 2012 15:57:19 +0000 (17:57 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sat, 30 Jun 2012 11:21:09 +0000 (13:21 +0200)
commite19d064b2a23ec083da06fa56af47be694152442
tree6ae2bb36cc213ad4a458d8a25e19a236ce9ba5bc
parenta1a0babdbd89b229a9d539993c2ad3791b654952
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
source3/passdb/lookup_sid.c