diff options
author | Gerald Carter <jerry@samba.org> | 2000-07-21 19:59:51 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2000-07-21 19:59:51 +0000 |
commit | 92708e3945cf294b3cb8d946200f8a7bf5d1def6 (patch) | |
tree | f6e76d30d21139758d6c113ac7c0a3591996b716 /source3/rpcclient/cmd_spoolss.c | |
parent | e5c5b2723f85467ce5a4a759bbe63ef59958c4ba (diff) | |
download | samba-92708e3945cf294b3cb8d946200f8a7bf5d1def6.tar.gz samba-92708e3945cf294b3cb8d946200f8a7bf5d1def6.tar.bz2 samba-92708e3945cf294b3cb8d946200f8a7bf5d1def6.zip |
Added EnumPorts() and fixed up some problems
with the other spoolss client calls.
Also cleaned up output for 'help' command.
jerry
(This used to be commit 56ce247977c05ef37888c2572e679c44346e5568)
Diffstat (limited to 'source3/rpcclient/cmd_spoolss.c')
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index 9b4da4f1af..2f338cdb22 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -98,6 +98,28 @@ uint32 cmd_spoolss_enum_printers(struct client_info *info, int argc, char *argv[ /**************************************************************************** nt spoolss query ****************************************************************************/ +uint32 cmd_spoolss_enum_ports(struct client_info *info, int argc, char *argv[]) +{ + PORT_INFO_CTR ctr; + + uint32 level = 2; + + fstring srv_name; + fstrcpy(srv_name, "\\\\"); + fstrcat(srv_name, info->dest_host); + strupper(srv_name); + + if (msrpc_spoolss_enum_ports(srv_name, level, &ctr)) + DEBUG(5,("cmd_spoolss_enum_printer: query succeeded\n")); + else + report(out_hnd, "FAILED\n"); + + return NT_STATUS_NOPROBLEMO; +} + +/**************************************************************************** +nt spoolss query +****************************************************************************/ uint32 cmd_spoolss_enum_printerdata(struct client_info *info, int argc, char *argv[]) { fstring srv_name; |