summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-27 22:34:12 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-27 22:34:12 +0000
commit9fef73c27e07dbf658681e6c1027602328ed0add (patch)
tree5ef358490d5a4d922a650a574e9b55e6fb63c04e /source3/rpcclient
parent4a6761a58d5718c386c7ab4fa89c34fa08dca53b (diff)
downloadsamba-9fef73c27e07dbf658681e6c1027602328ed0add.tar.gz
samba-9fef73c27e07dbf658681e6c1027602328ed0add.tar.bz2
samba-9fef73c27e07dbf658681e6c1027602328ed0add.zip
updated \PIPE\wkssvc commands to use new abstracted connection system.
modified resolve_srv_name() to return dest host of *SMBSERVER if server name is \\ip.add.ress.format (This used to be commit 3204829225792974c8b20efb6ba6e24661a4f658)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_wkssvc.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source3/rpcclient/cmd_wkssvc.c b/source3/rpcclient/cmd_wkssvc.c
index 23f7a88d27..474c53f347 100644
--- a/source3/rpcclient/cmd_wkssvc.c
+++ b/source3/rpcclient/cmd_wkssvc.c
@@ -33,8 +33,6 @@ extern int DEBUGLEVEL;
#define DEBUG_TESTING
-extern struct cli_state *smb_cli;
-
extern FILE* out_hnd;
@@ -43,7 +41,6 @@ workstation get info query
****************************************************************************/
void cmd_wks_query_info(struct client_info *info, int argc, char *argv[])
{
- uint16 nt_pipe_fnum;
fstring dest_wks;
WKS_INFO_100 ctr;
uint32 info_level = 100;
@@ -64,17 +61,8 @@ void cmd_wks_query_info(struct client_info *info, int argc, char *argv[])
DEBUG(4,("cmd_wks_query_info: server:%s info level: %d\n",
dest_wks, info_level));
- DEBUG(5, ("cmd_wks_query_info: smb_cli->fd:%d\n", smb_cli->fd));
-
- /* open LSARPC session. */
- res = res ? cli_nt_session_open(smb_cli, PIPE_WKSSVC, &nt_pipe_fnum) : False;
-
/* send info level: receive requested info. hopefully. */
- res = res ? do_wks_query_info(smb_cli, nt_pipe_fnum,
- dest_wks, info_level, &ctr) : False;
-
- /* close the session */
- cli_nt_session_close(smb_cli, nt_pipe_fnum);
+ res = res ? wks_query_info( dest_wks, info_level, &ctr) : False;
if (res)
{