s3: winbind: Make WBC_AUTH_USER_LEVEL_PAC prime the name2sid cache.
commit477abfb11eb1e6109dd4f65676ddac23a6f0353a
authorJeremy Allison <jra@samba.org>
Tue, 27 Sep 2016 22:04:49 +0000 (27 15:04 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 20 Oct 2016 08:45:24 +0000 (20 10:45 +0200)
treefcc592e8879225ae0ada4751e2d352c52cf75d99
parent51c6659c8fa50f5d8f33011222e9565a0dd93b34
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