s3: smbd: always set vuid in check_user_ok()
commitb336179c60631b26da6b0ea5472d919c990c1198
authorRalph Boehme <slow@samba.org>
Thu, 22 Mar 2018 07:03:58 +0000 (22 08:03 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Aug 2018 10:56:32 +0000 (13 12:56 +0200)
treec66d0cbd13dc0d9efba08413d8ffaa702d317483
parentc5680ba4b27b35d403cceb6f34cd383352292428
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)
source3/smbd/uid.c