bug in source3/winbindd/winbindd_sids_to_xids.c
authorHerb Lewis <hlewis@panasas.com>
Fri, 10 Jun 2011 06:17:11 +0000 (23:17 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 14 Jun 2011 17:44:25 +0000 (19:44 +0200)
commitbad9f4781133583811420768ebcea9a28597cb7a
tree83057a48e2526c693eb21a2604f842bbd2d5a5d5
parent531edfdd1924bfb2ef486820f7f5787098bd953a
bug in source3/winbindd/winbindd_sids_to_xids.c

I'm having trouble getting my system setup to do submits right now but
I discovered a bug in the subject file that causes winbindd lookup sids
command to assign incorrect unix ids. The change to sid_peek_rid fixes
the case where you call lookup sids with sids s1 s2 s3 which cause them
to be cached. then call with s1 s2 s4 and s4 will get the unix id of s1.

The other change fixes the case where a sid that was not translated
gets a value returned instead of being listed as unmapped.

Could someone review this and push to master and 3.6 for me?

Fix bug #8216 (winbind returns wrong results with sids2xids).
source3/winbindd/winbindd_sids_to_xids.c