s3: auth: Use wbcAuthenticateUserEx to prime the caches.
authorJeremy Allison <jra@samba.org>
Tue, 27 Sep 2016 00:07:44 +0000 (17:07 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 28 Sep 2016 20:45:27 +0000 (22:45 +0200)
commitccfba2537d0ea081fbeeee0feecf8e2774850300
treecfef4094d740a398aab6b516e1f8285c9fcc01c2
parentcf0f28819e771d433af00b3532011de70112b1f8
s3: auth: Use wbcAuthenticateUserEx to prime the caches.

Idea by Volker - use WBC_AUTH_USER_LEVEL_PAC to pass
the PAC to winbind from smbd on auth, this allows
winbind to prime the user info via netsamlogon_cache_store()
and the name2sid cache *before* smbd looks up the user.

Note that as this is merely a cache prime having
winbind not available is not an error.

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>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Sep 28 22:45:27 CEST 2016 on sn-devel-144
source3/auth/auth_generic.c