r5902: A rather large change...
[abartlet/samba.git/.git] / source4 / libnet / libnet_rpc.c
index 48f5e345f469429bf745343e429f0381d8c4dd12..97660f4eb5ef9ce5e61ab8f6bb193dca56c950e3 100644 (file)
@@ -98,12 +98,13 @@ static NTSTATUS libnet_rpc_connect_standard(struct libnet_context *ctx, TALLOC_C
                                        r->standard.in.server_name);
 
        status = dcerpc_pipe_connect(&r->standard.out.dcerpc_pipe,
-                                       binding,
-                                       r->standard.in.dcerpc_iface_uuid,
-                                       r->standard.in.dcerpc_iface_version,
-                                       ctx->user.domain_name,
-                                       ctx->user.account_name,
-                                       ctx->user.password); 
+                                    binding,
+                                    r->standard.in.dcerpc_iface_uuid,
+                                    r->standard.in.dcerpc_iface_version,
+                                    lp_netbios_name(),
+                                    ctx->user.domain_name,
+                                    ctx->user.account_name,
+                                    ctx->user.password); 
        if (!NT_STATUS_IS_OK(status)) {
                r->standard.out.error_string = talloc_asprintf(mem_ctx, 
                                                "dcerpc_pipe_connect to pipe %s failed with %s\n",