#include "../lib/util/tevent_ntstatus.h"
#include "librpc/gen_ndr/ndr_epmapper_c.h"
#include "../librpc/gen_ndr/ndr_dssetup.h"
+#include "../librpc/gen_ndr/ndr_mgmt.h"
+#include "../librpc/gen_ndr/ndr_dnsserver.h"
#include "../libcli/auth/schannel.h"
#include "../libcli/auth/netlogon_creds_cli.h"
#include "auth_generic.h"
NTSTATUS status = NT_STATUS_OK;
struct dcerpc_call *call;
struct tevent_req *subreq;
- struct dcerpc_presentation *pres[1];
+ struct dcerpc_presentation *pres[4];
ev = samba_tevent_context_init(frame);
if (ev == NULL) {
call = dcerpc_call_allocate(frame, cli->assoc, NULL, NULL);
- pres[0] = cli->pres;
+ pres[1] = cli->pres;
+ pres[0] = dcerpc_presentation_allocate(frame, cli->conn,
+ cli->table,
+ &ndr_table_mgmt.syntax_id);
+ //&ndr_transfer_syntax_ndr64);
+ pres[2] = dcerpc_presentation_allocate(frame, cli->conn,
+ &ndr_table_mgmt,
+ &ndr_transfer_syntax_ndr);
+ pres[3] = dcerpc_presentation_allocate(frame, cli->conn,
+ &ndr_table_dnsserver,
+ &ndr_transfer_syntax_ndr64);
subreq = dcerpc_do_bind_send(frame, ev, cli->conn, call,
cli->sec, ARRAY_SIZE(pres), pres);
struct dcerpc_binding_handle *h;
struct rpccli_bh_state *hs;
+ c->table = table;
+
h = dcerpc_binding_handle_create(c,
&rpccli_bh_ops,
object,