s4-winbind: use finddcs_cldap() in winbind
[kamenim/samba.git] / source4 / winbind / wb_sid2domain.c
index b77044ee8042ee95290b691f2666bcbd4690d846..c1cf98713183065426bd05447ed9d6f973a06a18 100644 (file)
@@ -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;