s3:winbindd: don't turn negative cache entries into valid idmappings (bug #9002)
commitf07890af7039f4196ac26aaad7017658f43bac98
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:49 +0000 (24 21:32 +0200)
tree3b2f49f8d4d40c4f23d580f3053c7bffe3c718cc
parentb193272b055b858fd3b14ba0d35a5096ab0f07bc
s3:winbindd: 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 65cc848fde9e383afa0c9eff78e66d6cd57aea18)
source3/winbindd/winbindd_sids_to_xids.c