s3-auth: Fix system token generation not to dereference pointer as an integer
authorAndrew Bartlett <abartlet@samba.org>
Wed, 13 Jun 2012 23:30:37 +0000 (09:30 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 15 Jun 2012 07:18:32 +0000 (09:18 +0200)
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

index 825de8a2e306d21f670191bea9a1a9c01cc47132..061879f1d6373579e276bc9290b6466cf499bac4 100644 (file)
@@ -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;
 }