winbindd: Use idmap cache in xids2sids
authorVolker Lendecke <vl@samba.org>
Tue, 27 Dec 2016 10:19:17 +0000 (10:19 +0000)
committerUri Simchoni <uri@samba.org>
Tue, 27 Dec 2016 23:06:41 +0000 (00:06 +0100)
commit91d027554e414f371b3237110d1c92033d929992
treef6e6b483dcde0d5db6d2b915e7ae6f9dd3601757
parentf7f49a2354c99d95a302f070fe3aa97a949063c8
winbindd: Use idmap cache in xids2sids

Typically smbd should have looked into the idmap cache itself before
contacting winbind. But winbind has internal users of this API (getpwuid
and getgrgid for example), and those need to use the cache too.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12484

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Wed Dec 28 00:06:41 CET 2016 on sn-devel-144
source3/winbindd/wb_xids2sids.c