summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-11 11:27:40 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-12 15:25:52 +0100
commit07a28b1923bee35c365972e4c5935de8637d412b (patch)
tree05c5b1f549ab6fed29382866d5ca2e368e2335bf
parent02c61f520cfd5bea83ab18a4877c978f448fa4d3 (diff)
downloadsamba-07a28b1923bee35c365972e4c5935de8637d412b.tar.gz
samba-07a28b1923bee35c365972e4c5935de8637d412b.tar.bz2
samba-07a28b1923bee35c365972e4c5935de8637d412b.zip
s4:libnet/libnet_share.c: make use of dcerpc_binding_handle stubs
metze
-rw-r--r--source4/libnet/libnet_share.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/libnet/libnet_share.c b/source4/libnet/libnet_share.c
index e9ad83db36..7c9121b139 100644
--- a/source4/libnet/libnet_share.c
+++ b/source4/libnet/libnet_share.c
@@ -89,7 +89,7 @@ NTSTATUS libnet_ListShares(struct libnet_context *ctx,
s.out.info_ctr = &info_ctr;
s.out.totalentries = &totalentries;
- status = dcerpc_srvsvc_NetShareEnumAll(c.out.dcerpc_pipe, mem_ctx, &s);
+ status = dcerpc_srvsvc_NetShareEnumAll_r(c.out.dcerpc_pipe->binding_handle, mem_ctx, &s);
if (!NT_STATUS_IS_OK(status)) {
r->out.error_string = talloc_asprintf(mem_ctx,
@@ -144,7 +144,7 @@ NTSTATUS libnet_AddShare(struct libnet_context *ctx,
s.in.info = &info;
s.in.server_unc = talloc_asprintf(mem_ctx, "\\\\%s", r->in.server_name);
- status = dcerpc_srvsvc_NetShareAdd(c.out.dcerpc_pipe, mem_ctx, &s);
+ status = dcerpc_srvsvc_NetShareAdd_r(c.out.dcerpc_pipe->binding_handle, mem_ctx, &s);
if (!NT_STATUS_IS_OK(status)) {
r->out.error_string = talloc_asprintf(mem_ctx,
@@ -192,7 +192,7 @@ NTSTATUS libnet_DelShare(struct libnet_context *ctx,
s.in.server_unc = talloc_asprintf(mem_ctx, "\\\\%s", r->in.server_name);
s.in.share_name = r->in.share_name;
- status = dcerpc_srvsvc_NetShareDel(c.out.dcerpc_pipe, mem_ctx, &s);
+ status = dcerpc_srvsvc_NetShareDel_r(c.out.dcerpc_pipe->binding_handle, mem_ctx, &s);
if (!NT_STATUS_IS_OK(status)) {
r->out.error_string = talloc_asprintf(mem_ctx,
"srvsvc_NetShareDel '%s' on server '%s' failed"