From e3901c1d5c959f963664a885692c2e34c32afede Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 5 Mar 2013 16:23:06 -0800 Subject: [PATCH] Fix bug #9637 - Renaming directories as guest user in security share mode doesn't work. Ensure guest is treated consistently when creating a auth_serversupplied_info struct. Signed-off-by: Jeremy Allison --- source3/auth/auth_util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 47a8a09..0e1f437 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -925,7 +925,11 @@ NTSTATUS make_serverinfo_from_username(TALLOC_CTX *mem_ctx, result->nss_token = true; result->guest = is_guest; - status = create_local_token(result); + if (is_guest) { + status = make_server_info_guest(mem_ctx, &result); + } else { + status = create_local_token(result); + } if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(result); -- 1.8.1.3