s3: smbd: always set vuid in check_user_ok()
commit5260dbc6e380762a83ef98fa68b058030204ddb7
authorRalph Boehme <slow@samba.org>
Thu, 22 Mar 2018 07:03:58 +0000 (22 08:03 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Jul 2018 08:54:01 +0000 (26 10:54 +0200)
treef00c65525f4a1e4c8ec03d868fc2e8897f93e7c2
parent50e461549f456959caee56fdea92a73a67c9040e
s3: smbd: always set vuid in check_user_ok()

A SMB session reauth will have invalidated conn->vuid via
conn_clear_vuid_caches().

Ensure conn->vuid always has the vuid of the current user in
check_user_ok().

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13351

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Mar 22 18:26:04 CET 2018 on sn-devel-144

(cherry picked from commit 42d6dd2f30b6c3b3176bd1f378422a2eb62b1008)

Autobuild-User(v4-7-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-7-test): Thu Jul 26 10:54:01 CEST 2018 on sn-devel-144
source3/smbd/uid.c