s3: winbind: Make WBC_AUTH_USER_LEVEL_PAC prime the name2sid cache.
authorJeremy Allison <jra@samba.org>
Tue, 27 Sep 2016 22:04:49 +0000 (15:04 -0700)
committerStefan Metzmacher <metze@samba.org>
Mon, 24 Oct 2016 08:56:11 +0000 (10:56 +0200)
commit2dfbdc589655584ccee8396ecd9ec5b66d9d45cf
treed6ac73494098a237a2faf5156d0bc5d9b257b5a4
parentba1356d7bac51d65818a7842d190689645504dca
s3: winbind: Make WBC_AUTH_USER_LEVEL_PAC prime the name2sid cache.

In addition to priming the netsamlogon cache.

This prevents a winbind AD-DC lookup for something
the PAC already told us.

Note we only do this in the case where the PAC successfully
passed signature verification.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
(cherry picked from commit cf0f28819e771d433af00b3532011de70112b1f8)
source3/winbindd/winbindd_pam.c