r26333: No more global_loadparm in finddcs.
[samba.git] / source4 / winbind / wb_dom_info.c
index 99538bfb0017e4776fb6762dca7e3bcc4cc05d45..e53e3d827b3c9ecfc725b31cc8248634cfe3a6b6 100644 (file)
@@ -67,7 +67,8 @@ struct composite_context *wb_get_dom_info_send(TALLOC_CTX *mem_ctx,
        dom_sid = dom_sid_dup(mem_ctx, sid);
        if (dom_sid == NULL) goto failed;
 
-       ctx = finddcs_send(mem_ctx, domain_name, NBT_NAME_LOGON, 
+       ctx = finddcs_send(mem_ctx, lp_netbios_name(service->task->lp_ctx),
+                          domain_name, NBT_NAME_LOGON, 
                           dom_sid, 
                           lp_name_resolve_order(service->task->lp_ctx), 
                           service->task->event_ctx,