From 9b4b0e462f28e9bfd35453b4c3091de23ecdbdf4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 5 Dec 2010 20:40:21 +0100 Subject: [PATCH] s3: Fix bug 7843: Expand the local SAMs aliases --- source3/winbindd/wb_gettoken.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/wb_gettoken.c b/source3/winbindd/wb_gettoken.c index ca407b21..f2fbe4c 100644 --- a/source3/winbindd/wb_gettoken.c +++ b/source3/winbindd/wb_gettoken.c @@ -106,7 +106,7 @@ static void wb_gettoken_gotgroups(struct tevent_req *subreq) /* * Expand our domain's aliases */ - domain = find_our_domain(); + domain = find_domain_from_sid_noinit(get_global_sam_sid()); if (domain == NULL) { tevent_req_nterror(req, NT_STATUS_INTERNAL_ERROR); return; @@ -137,7 +137,7 @@ static void wb_gettoken_gotlocalgroups(struct tevent_req *subreq) tevent_req_nterror(req, status); return; } - domain = find_our_domain(); + domain = find_domain_from_sid_noinit(get_global_sam_sid()); if (!wb_add_rids_to_sids(state, &state->num_sids, &state->sids, &domain->sid, num_rids, rids)) { tevent_req_nterror(req, NT_STATUS_NO_MEMORY); -- 1.7.3.2