winbindd: handling of failed lookupsids in wb_lookupsids_single_done()
authorRalph Boehme <slow@samba.org>
Fri, 24 Mar 2017 16:06:38 +0000 (17:06 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 11 Apr 2017 23:41:14 +0000 (01:41 +0200)
commit32e752e145395c8dbe73c90250ce471ab6744e8b
tree49dedcf38c611aecc0e6cb5011a5647ea9b7e0b3
parent36e01b6232247abdd2d4ad75f405b328456c1b9e
winbindd: handling of failed lookupsids in wb_lookupsids_single_done()

If lookupsid() failed with NT_STATUS_SOME_NOT_MAPPED or
NT_STATUS_NONE_MAPPED, if we didn't get a domain name, don't add a fake
domain to the lsa_RefDomainList. Just set the domain index in the
translated name to UINT32_MAX.

It's up to callers like wb_sids2xids to handle such failed mappings and
wb_sids2xids_lookupsids_done() has been updated in a previous commit to
deal with it.

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