summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-06-14 09:30:37 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-06-15 09:18:32 +0200
commit9b3cf96fb042429eaf79ede426e406ea1fa32079 (patch)
treec00409680babbe277cc9151bea234ea777a2bf41 /source3/auth
parentf0c58007588f1e6346f378a13c9d881c25eabbd8 (diff)
downloadsamba-9b3cf96fb042429eaf79ede426e406ea1fa32079.tar.gz
samba-9b3cf96fb042429eaf79ede426e406ea1fa32079.tar.bz2
samba-9b3cf96fb042429eaf79ede426e406ea1fa32079.zip
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
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c2
1 files changed, 1 insertions, 1 deletions
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;
}