winbindd: remove fallback to lookupsid for unknown SIDs
authorRalph Boehme <slow@samba.org>
Fri, 24 Mar 2017 15:46:40 +0000 (16:46 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 11 Apr 2017 23:41:14 +0000 (01:41 +0200)
commitc79a5acf201f1b779a4fc833a45a9ee658f8cb31
treefec565f9357966f1da4cb45e4bf6bfa753974be9
parent32e752e145395c8dbe73c90250ce471ab6744e8b
winbindd: remove fallback to lookupsid for unknown SIDs

In wb_lookupsids_done() if a SID failed with lookupsids(), remove the
hokey retry via lookupsid().

The retry logic with going through the single sids lookup at the end
added a fake domain with an empty string. The wb_lookupsids caller
wb_sids2xids needed this, as it wasn't doing the needed error handling
itself. As wb_sids2xids has been fixed to cope, we can just fail the
lookupsids here.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/wb_lookupsids.c