It appears that the first time we see a uid/gid that winbind can't map,
commitc4d05e8e1fc776dd9c528513346256cf35c9f226
authorDan Sledz <dan.sledz@isilon.com>
Tue, 3 Mar 2009 00:42:37 +0000 (2 16:42 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 3 Mar 2009 00:42:37 +0000 (2 16:42 -0800)
treef8f7a9913d2ee24213715670f5d89ba0ba9afefa
parent3480224cef289ef0915787d735cd79adad4815fe
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.
source/passdb/lookup_sid.c