From ada1af41ea6a62ee89d43ffe5fa3ff415ea1129b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 18 May 2009 14:26:37 -0700 Subject: Fix SAMR server for winbindd access. Ensure we allow MAX_ACCESS to be mapped to what we're giving Everyone. Jeremy. --- source3/rpc_server/srv_samr_nt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index dabdc964c5a..09b97b2b39d 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -243,8 +243,8 @@ static void map_max_allowed_access(const NT_USER_TOKEN *token, } *pacc_requested &= ~MAXIMUM_ALLOWED_ACCESS; - /* At least try for generic read. */ - *pacc_requested = GENERIC_READ_ACCESS; + /* At least try for generic read|execute - Everyone gets that. */ + *pacc_requested = GENERIC_READ_ACCESS|GENERIC_EXECUTE_ACCESS; /* root gets anything. */ if (geteuid() == sec_initial_uid()) { -- cgit