summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_srvsvc.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-01 20:21:52 +0100
committerVolker Lendecke <vl@samba.org>2009-11-08 00:28:36 +0100
commit70c698fd547c4bc19cf77693608bbb34acac40b5 (patch)
tree84f145cb65e7dc14d3cd461c9289f3c92459353b /source3/rpcclient/cmd_srvsvc.c
parentbe88a126ea50ea7e41583f402013c63234305e48 (diff)
downloadsamba-70c698fd547c4bc19cf77693608bbb34acac40b5.tar.gz
samba-70c698fd547c4bc19cf77693608bbb34acac40b5.tar.bz2
samba-70c698fd547c4bc19cf77693608bbb34acac40b5.zip
s3: Do not directly reference the ndr_table_* in rpcclient
Diffstat (limited to 'source3/rpcclient/cmd_srvsvc.c')
-rw-r--r--source3/rpcclient/cmd_srvsvc.c65
1 files changed, 52 insertions, 13 deletions
diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c
index 10017fa19b..bea498202a 100644
--- a/source3/rpcclient/cmd_srvsvc.c
+++ b/source3/rpcclient/cmd_srvsvc.c
@@ -873,19 +873,58 @@ struct cmd_set srvsvc_commands[] = {
{ "SRVSVC" },
- { "srvinfo", RPC_RTYPE_WERROR, NULL, cmd_srvsvc_srv_query_info, &ndr_table_srvsvc.syntax_id, NULL, "Server query info", "" },
- { "netshareenum",RPC_RTYPE_WERROR, NULL, cmd_srvsvc_net_share_enum, &ndr_table_srvsvc.syntax_id, NULL, "Enumerate shares", "" },
- { "netshareenumall",RPC_RTYPE_WERROR, NULL, cmd_srvsvc_net_share_enum_all, &ndr_table_srvsvc.syntax_id, NULL, "Enumerate all shares", "" },
- { "netsharegetinfo",RPC_RTYPE_WERROR, NULL, cmd_srvsvc_net_share_get_info, &ndr_table_srvsvc.syntax_id, NULL, "Get Share Info", "" },
- { "netsharesetinfo",RPC_RTYPE_WERROR, NULL, cmd_srvsvc_net_share_set_info, &ndr_table_srvsvc.syntax_id, NULL, "Set Share Info", "" },
- { "netfileenum", RPC_RTYPE_WERROR, NULL, cmd_srvsvc_net_file_enum, &ndr_table_srvsvc.syntax_id, NULL, "Enumerate open files", "" },
- { "netremotetod",RPC_RTYPE_WERROR, NULL, cmd_srvsvc_net_remote_tod, &ndr_table_srvsvc.syntax_id, NULL, "Fetch remote time of day", "" },
- { "netnamevalidate", RPC_RTYPE_WERROR, NULL, cmd_srvsvc_net_name_validate, &ndr_table_srvsvc.syntax_id, NULL, "Validate sharename", "" },
- { "netfilegetsec", RPC_RTYPE_WERROR, NULL, cmd_srvsvc_net_file_get_sec, &ndr_table_srvsvc.syntax_id, NULL, "Get File security", "" },
- { "netsessdel", RPC_RTYPE_WERROR, NULL, cmd_srvsvc_net_sess_del, &ndr_table_srvsvc.syntax_id, NULL, "Delete Session", "" },
- { "netsessenum", RPC_RTYPE_WERROR, NULL, cmd_srvsvc_net_sess_enum, &ndr_table_srvsvc.syntax_id, NULL, "Enumerate Sessions", "" },
- { "netdiskenum", RPC_RTYPE_WERROR, NULL, cmd_srvsvc_net_disk_enum, &ndr_table_srvsvc.syntax_id, NULL, "Enumerate Disks", "" },
- { "netconnenum", RPC_RTYPE_WERROR, NULL, cmd_srvsvc_net_conn_enum, &ndr_table_srvsvc.syntax_id, NULL, "Enumerate Connections", "" },
+ { "srvinfo", RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_srv_query_info,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION,
+ NULL, "Server query info", "" },
+ { "netshareenum",RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_net_share_enum,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION, NULL,
+ "Enumerate shares", "" },
+ { "netshareenumall",RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_net_share_enum_all,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION, NULL,
+ "Enumerate all shares", "" },
+ { "netsharegetinfo",RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_net_share_get_info,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION, NULL,
+ "Get Share Info", "" },
+ { "netsharesetinfo",RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_net_share_set_info,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION, NULL,
+ "Set Share Info", "" },
+ { "netfileenum", RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_net_file_enum,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION, NULL,
+ "Enumerate open files", "" },
+ { "netremotetod",RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_net_remote_tod,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION, NULL,
+ "Fetch remote time of day", "" },
+ { "netnamevalidate", RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_net_name_validate,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION, NULL,
+ "Validate sharename", "" },
+ { "netfilegetsec", RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_net_file_get_sec,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION, NULL,
+ "Get File security", "" },
+ { "netsessdel", RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_net_sess_del,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION, NULL,
+ "Delete Session", "" },
+ { "netsessenum", RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_net_sess_enum,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION, NULL,
+ "Enumerate Sessions", "" },
+ { "netdiskenum", RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_net_disk_enum,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION, NULL,
+ "Enumerate Disks", "" },
+ { "netconnenum", RPC_RTYPE_WERROR, NULL,
+ cmd_srvsvc_net_conn_enum,
+ NDR_SRVSVC_UUID, NDR_SRVSVC_VERSION, NULL,
+ "Enumerate Connections", "" },
{ NULL }
};