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)
committerJeremy Allison <jra@samba.org>
Wed, 28 Sep 2016 17:02:26 +0000 (19:02 +0200)
commitcf0f28819e771d433af00b3532011de70112b1f8
tree17102e1a5a162d0da7263a0fa9f845e82f0fe3b2
parentf92590d10aaf9a289b5f6aac8ffc79129b83a517
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>
source3/winbindd/winbindd_pam.c