summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-12-05 20:40:21 +0100
committerJeremy Allison <jra@samba.org>2010-12-06 20:33:05 +0100
commitcb496c6d243854e309dcff23f832a5f88914b3cf (patch)
treede036890c5057ef84c2e95e688ed87fb299a7d73 /source3
parentb73e4e36f5307316e2896d9731377f4252d0e444 (diff)
downloadsamba-cb496c6d243854e309dcff23f832a5f88914b3cf.tar.gz
samba-cb496c6d243854e309dcff23f832a5f88914b3cf.tar.bz2
samba-cb496c6d243854e309dcff23f832a5f88914b3cf.zip
s3: Fix bug 7843: Expand the local SAMs aliases
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/wb_gettoken.c4
1 files changed, 2 insertions, 2 deletions
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);