From 4e9b2cc30a8e414e09a1961f4f8071187c6ad938 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 15 Jul 2012 14:38:18 +1000 Subject: [PATCH] s3-auth Use correct RID for domain guests primary group This was incorrect in commit 9dd7e7fc2d6d1aa7f3c3b741ac134e087ce808fd as the RID was from the BUILTIN domain, but this creates a guest account token for the real domain. Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Thu Jul 19 05:56:28 CEST 2012 on sn-devel-104 Fix bug #9067 - Domain Guest have wrong primary group RID. (cherry picked from commit 5c0a169275ccf046190a0d08d93fc37e6b9bcf75) --- source3/auth/auth_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index cb1d319f95d..fc93641fd3b 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -734,7 +734,7 @@ static NTSTATUS get_guest_info3(TALLOC_CTX *mem_ctx, info3->base.rid = DOMAIN_RID_GUEST; /* Primary gid */ - info3->base.primary_gid = BUILTIN_RID_GUESTS; + info3->base.primary_gid = DOMAIN_RID_GUESTS; TALLOC_FREE(pwd); return NT_STATUS_OK; -- 2.11.4.GIT