git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0c5800
)
s3-auth: Fix system token generation not to dereference pointer as an integer
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 13 Jun 2012 23:30:37 +0000
(09:30 +1000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source3/auth/auth_util.c
b/source3/auth/auth_util.c
index 825de8a2e306d21f670191bea9a1a9c01cc47132..061879f1d6373579e276bc9290b6466cf499bac4 100644
(file)
--- 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;
}