s3: smbd: always set vuid in check_user_ok()
commit42d6dd2f30b6c3b3176bd1f378422a2eb62b1008
authorRalph Boehme <slow@samba.org>
Thu, 22 Mar 2018 07:03:58 +0000 (22 08:03 +0100)
committerRalph Boehme <slow@samba.org>
Thu, 22 Mar 2018 17:26:03 +0000 (22 18:26 +0100)
treef09f22ca77e69d68f564ddeb831d4bc9b9661118
parentdd1f8cdf6bd1fb9c881d96957d709b0f517852bb
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
source3/smbd/uid.c