The Samba-Bugzilla – Attachment 8722 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 master and 4.0.next
0001-Fix-bug-9746-guest-ok-force-user-force-group-doesn-t.patch (text/plain), 1.60 KB, created by
Jeremy Allison
on 2013-04-03 20:42:18 UTC
(
hide
)
Description:
git-am fix for master and 4.0.next
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2013-04-03 20:42:18 UTC
Size:
1.60 KB
patch
obsolete
>From eac3f03cb4877bb5ea02747ba1e2afc4bbc29cd3 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Wed, 3 Apr 2013 13:41:44 -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 | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > >diff --git a/source3/smbd/service.c b/source3/smbd/service.c >index 4fe3809..2f96820 100644 >--- a/source3/smbd/service.c >+++ b/source3/smbd/service.c >@@ -448,7 +448,6 @@ NTSTATUS set_conn_force_user_group(connection_struct *conn, int snum) > char *fuser; > char *sanitized_username; > struct auth_session_info *forced_serverinfo; >- bool guest; > > fuser = talloc_string_sub(conn, lp_force_user(talloc_tos(), snum), "%S", > lp_const_servicename(snum)); >@@ -456,11 +455,9 @@ NTSTATUS set_conn_force_user_group(connection_struct *conn, int snum) > return NT_STATUS_NO_MEMORY; > } > >- guest = security_session_user_level(conn->session_info, NULL) < SECURITY_USER; >- > status = make_session_info_from_username( > conn, fuser, >- guest, >+ 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