summaryrefslogtreecommitdiff
path: root/source4/winbind/wb_sid2domain.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-14 17:36:23 +1000
committerAndrew Tridgell <tridge@samba.org>2010-09-15 15:39:35 +1000
commitee61568be6bcb217d106c08ec915775c8476ed56 (patch)
tree2b502868d5c59dbac6c1ff50f1bf7ec99b593ae2 /source4/winbind/wb_sid2domain.c
parent0c447e316f17e64becaf70c91006b90de21887df (diff)
downloadsamba-ee61568be6bcb217d106c08ec915775c8476ed56.tar.gz
samba-ee61568be6bcb217d106c08ec915775c8476ed56.tar.bz2
samba-ee61568be6bcb217d106c08ec915775c8476ed56.zip
s4-winbind: use finddcs_cldap() in winbind
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/winbind/wb_sid2domain.c')
-rw-r--r--source4/winbind/wb_sid2domain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/winbind/wb_sid2domain.c b/source4/winbind/wb_sid2domain.c
index b77044ee80..c1cf987131 100644
--- a/source4/winbind/wb_sid2domain.c
+++ b/source4/winbind/wb_sid2domain.c
@@ -84,7 +84,9 @@ struct composite_context *wb_sid2domain_send(TALLOC_CTX *mem_ctx,
if (dom_sid_equal(service->primary_sid, sid) ||
dom_sid_in_domain(service->primary_sid, sid)) {
- ctx = wb_get_dom_info_send(state, service, lpcfg_workgroup(service->task->lp_ctx),
+ ctx = wb_get_dom_info_send(state, service,
+ lpcfg_workgroup(service->task->lp_ctx),
+ lpcfg_realm(service->task->lp_ctx),
service->primary_sid);
if (ctx == NULL) goto failed;
ctx->async.fn = sid2domain_recv_dom_info;