From cb496c6d243854e309dcff23f832a5f88914b3cf Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 5 Dec 2010 20:40:21 +0100 Subject: s3: Fix bug 7843: Expand the local SAMs aliases --- source3/winbindd/wb_gettoken.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/wb_gettoken.c b/source3/winbindd/wb_gettoken.c index 5755ffa077..d1c8285b89 100644 --- a/source3/winbindd/wb_gettoken.c +++ b/source3/winbindd/wb_gettoken.c @@ -107,7 +107,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; @@ -138,7 +138,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); -- cgit