The Samba-Bugzilla – Attachment 8721 Details for
Bug 9746
guest ok + force user + force group doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 3.6.next
0001-Fix-bug-9746-guest-ok-force-user-force-group-doesn-t.patch (text/plain), 1.21 KB, created by
Jeremy Allison
on 2013-04-03 19:42:48 UTC
(
hide
)
Description:
git-am fix for 3.6.next
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2013-04-03 19:42:48 UTC
Size:
1.21 KB
patch
obsolete
>From 6cef45b921b1ca2e2fc907f20f96278cf48055b8 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Wed, 3 Apr 2013 12:37:25 -0700 >Subject: [PATCH] Fix bug #9746 - guest ok + force user + force group doesn't > work > >When doing set_conn_force_user_group(), only set the 'guest' bool >passed to make_session_info_from_username() if the user mapped >to is the guest username. > >Otherwise setting : > >guest ok = yes >force user = foo > >doesn't work in a share definition when logging in >as a guest user - the 'guest' bit is overriding the >user being forced when creating the struct auth_session_info >from the username. > >Signed-off-by: Jeremy Allison <jra@samba.org> >--- > source3/smbd/service.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/source3/smbd/service.c b/source3/smbd/service.c >index 6c8c8d3..75a9ec5 100644 >--- a/source3/smbd/service.c >+++ b/source3/smbd/service.c >@@ -690,7 +690,8 @@ NTSTATUS set_conn_force_user_group(connection_struct *conn, int snum) > } > > status = make_serverinfo_from_username( >- conn, fuser, conn->session_info->guest, >+ conn, fuser, >+ strequal(fuser, lp_guestaccount()), > &forced_serverinfo); > if (!NT_STATUS_IS_OK(status)) { > return status; >-- >1.8.1.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 9746
:
8692
|
8720
|
8721
|
8722
|
8723