It appears that the first time we see a uid/gid that winbind can't map,
authorDan Sledz <dan.sledz@isilon.com>
Tue, 3 Mar 2009 00:50:19 +0000 (16:50 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 3 Mar 2009 00:50:19 +0000 (16:50 -0800)
commitbe1dfff02d562e42a7847bd02fed8538630d3f41
tree7df538c4a9491e649d7658ec2f6bd66ca4e67f34
parentdeb73e87b29d59610ab16a8eb021728e782ac8b8
It appears that the first time we see a uid/gid that winbind can't map,
we end up returning the null sid instead of falling back to the legacy
code.  Next time through the code we'll hit the negative cache and do
the right thing, but we still fail the first time.

If we fail the winbind id to sid mapping, call the legacy version.  This
catches the case where we don't have a negative cache entry for the mapping.
This is better than returning the NULL sid to the caller.
source3/passdb/lookup_sid.c