winbindd: Add a cache of the samr and lsa handles for the passdb domain
authorAndrew Bartlett <abartlet@samba.org>
Wed, 21 Mar 2018 07:43:10 +0000 (20:43 +1300)
committerKarolin Seeger <kseeger@samba.org>
Mon, 14 May 2018 07:58:07 +0000 (09:58 +0200)
commit7557c5df797df4d5a0b42bdc7cffc5c02cc5a6a8
treefe31690a07003367b1e36f82c16f979ea68359ba
parent54c537a0eebc8a4450cc71b25b605719f44e2af0
winbindd: Add a cache of the samr and lsa handles for the passdb domain

This domain is very close, in AD DC configurations over a internal ncacn_np pipe
and otherwise in the same process via C linking.  It is however very expensive
to re-create the binding handle per SID->name lookup, so keep a cache.

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

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit d418d0ca33afb41a793a2fff19ca68871aa5e9ef)
source3/winbindd/winbindd_samr.c