#include "librpc/gen_ndr/samr.h"
#include "lib/messaging/irpc.h"
#include "libcli/finddcs.h"
+#include "param/param.h"
struct get_dom_info_state {
struct composite_context *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,
- dom_sid, lp_name_resolve_order(), service->task->event_ctx,
+ ctx = finddcs_send(mem_ctx, lp_netbios_name(service->task->lp_ctx),
+ lp_nbt_port(service->task->lp_ctx),
+ domain_name, NBT_NAME_LOGON,
+ dom_sid,
+ lp_iconv_convenience(service->task->lp_ctx),
+ lp_resolve_context(service->task->lp_ctx),
+ service->task->event_ctx,
service->task->msg_ctx);
if (ctx == NULL) goto failed;