Revert "s3: Make libnetapi_open_pipe take strings instead of a ndr_interface_table"
[abartlet/samba.git/.git] / source3 / lib / netapi / file.c
index 7ec9f7939d15bd1d6b375cae45d8b14f4ff226d4..0d1bc08ad30215a61cc41992f431ba02650cd123 100644 (file)
@@ -35,7 +35,7 @@ WERROR NetFileClose_r(struct libnetapi_ctx *ctx,
        struct rpc_pipe_client *pipe_cli = NULL;
 
        werr = libnetapi_open_pipe(ctx, r->in.server_name,
-                                  NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION,
+                                  &ndr_table_srvsvc.syntax_id,
                                   &pipe_cli);
        if (!W_ERROR_IS_OK(werr)) {
                goto done;
@@ -129,7 +129,7 @@ WERROR NetFileGetInfo_r(struct libnetapi_ctx *ctx,
        }
 
        werr = libnetapi_open_pipe(ctx, r->in.server_name,
-                                  NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION,
+                                  &ndr_table_srvsvc.syntax_id,
                                   &pipe_cli);
        if (!W_ERROR_IS_OK(werr)) {
                goto done;
@@ -195,7 +195,7 @@ WERROR NetFileEnum_r(struct libnetapi_ctx *ctx,
        }
 
        werr = libnetapi_open_pipe(ctx, r->in.server_name,
-                                  NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION,
+                                  &ndr_table_srvsvc.syntax_id,
                                   &pipe_cli);
        if (!W_ERROR_IS_OK(werr)) {
                goto done;