From 9b3cf96fb042429eaf79ede426e406ea1fa32079 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 14 Jun 2012 09:30:37 +1000 Subject: s3-auth: Fix system token generation not to dereference pointer as an integer This continues on from commit caaebb455cf955f66c2f662c53998c480cb2d6c9 which is marked as being part of bug #8944, ldapsam:trusted and ipasam and an additional fix for bug #8567 (0528cb5f3a15b72dcb34ece21a3ffb3e7b8d6eb9). The problem here was that the primary_gid was simply the pointer result of dom_sid_parse_talloc() cast to a uint32_t (found by the IRIX cc on the build farm). Andrew Bartlett --- source3/auth/auth_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/auth') diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 825de8a2e3..061879f1d6 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -804,7 +804,7 @@ static NTSTATUS get_system_info3(TALLOC_CTX *mem_ctx, info3->base.rid = DOMAIN_RID_ADMINISTRATOR; /* Primary gid */ - info3->base.primary_gid = dom_sid_parse_talloc(mem_ctx, SID_NT_SYSTEM); + info3->base.primary_gid = DOMAIN_RID_ADMINS; return NT_STATUS_OK; } -- cgit