diff options
author | Luke Leighton <lkcl@samba.org> | 1997-11-01 19:20:29 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-11-01 19:20:29 +0000 |
commit | c533c0755398219036360cf4131251a146995731 (patch) | |
tree | cb0765835de67d41449e53f40fd7db1fb33c9efa /source3/client/ntclient.c | |
parent | 9b1b14155b88d97e8351f28b875126513d6aa566 (diff) | |
download | samba-c533c0755398219036360cf4131251a146995731.tar.gz samba-c533c0755398219036360cf4131251a146995731.tar.bz2 samba-c533c0755398219036360cf4131251a146995731.zip |
client.c clientutil.c proto.h
rpc_pipes/ntclientlsa.c rpc_pipes/ntclientnet.c
rpc_pipes/ntclientpipe.c :
added extra argument to cli_call_api() to allow specifying the length of
the \PIPE\ name. it appears that, like when the name of the pipe is NULL
and OS-2 requires two extra bytes _after_ the NULL name, that NT requires
two bytes after the NULL-terminated name "\PIPE\". these two bytes vary,
but values seen so far are: 0x72 0x70; 0x63 0x65; 0x44 0x65; 0x4E 0x00.
there appears not to be much logic to this. purpose unknown.
ntclient.c:
put Set Named Pipe Handle State call directly after SMBopenX call.
(This used to be commit 54c245be152e5fa8f5b535c93f8d11c5f591e23f)
Diffstat (limited to 'source3/client/ntclient.c')
-rw-r--r-- | source3/client/ntclient.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source3/client/ntclient.c b/source3/client/ntclient.c index 65d9da9d5f..59b4a7fe78 100644 --- a/source3/client/ntclient.c +++ b/source3/client/ntclient.c @@ -106,6 +106,13 @@ BOOL do_nt_login(char *desthost, char *myhostname, return False; } + /**************** Set Named Pipe State ***************/ + if (!rpc_pipe_set_hnd_state(PIPE_LSARPC, fnum, 0x4300)) + { + free(inbuf); free(outbuf); + return False; + } + /******************* bind request on \PIPE\lsarpc *****************/ /* create and send a MSRPC command with api LSA_OPENPOLICY */ @@ -132,13 +139,6 @@ BOOL do_nt_login(char *desthost, char *myhostname, return False; } - /**************** Set Named Pipe State ***************/ - if (!rpc_pipe_set_hnd_state(PIPE_LSARPC, fnum, 0x4300)) - { - free(inbuf); free(outbuf); - return False; - } - /******************* Open Policy ********************/ fstrcpy(server_name, ("\\\\")); @@ -198,16 +198,16 @@ BOOL do_nt_login(char *desthost, char *myhostname, return False; } - /******************* bind request on \PIPE\NETLOGON *****************/ - - if (!rpc_pipe_bind(PIPE_NETLOGON, fnum, ++call_id, &abstract, &transfer)) + /**************** Set Named Pipe State ***************/ + if (!rpc_pipe_set_hnd_state(PIPE_NETLOGON, fnum, 0x4300)) { free(inbuf); free(outbuf); return False; } - /**************** Set Named Pipe State ***************/ - if (!rpc_pipe_set_hnd_state(PIPE_NETLOGON, fnum, 0x4300)) + /******************* bind request on \PIPE\NETLOGON *****************/ + + if (!rpc_pipe_bind(PIPE_NETLOGON, fnum, ++call_id, &abstract, &transfer)) { free(inbuf); free(outbuf); return False; |