Correctly setup the conn->share_access based on the current user token.
commit6d7bffa6069ef41c36c40453681372973bba0c86
authorJeremy Allison <jra@samba.org>
Fri, 4 Jan 2013 22:25:55 +0000 (4 14:25 -0800)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 9 Jan 2013 04:29:18 +0000 (9 15:29 +1100)
tree3e679b2761156b0b1084ff695bfdbbd533424ab0
parent5e9eebf5dec60177a680010e011b88ae0ecf26d2
Correctly setup the conn->share_access based on the current user token.

Also use this to set conn->read_only. Cache the share_access in the
struct vuid_cache_entry struct so we only evaluate this once per new
user access on this share.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/uid.c