From 8cca8079ce79ae331151f26a23af8acb85bbb3ba 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 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 47a8a09..12e48b5 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -925,11 +925,15 @@ 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); - return status; + if (!NT_STATUS_IS_OK(status)) { + TALLOC_FREE(result); + return status; + } } *presult = talloc_steal(mem_ctx, result); -- 1.8.1.3