diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-11-17 18:01:28 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-11-17 18:01:28 +0000 |
commit | bfbc3486045f819a3e7ac9c7460a8793d5a1f0e5 (patch) | |
tree | 556860808e3250ae2d402ff7c9547935fab33d61 /source3/rpc_client/cli_pipe.c | |
parent | 8b9622f50de1f46c5e6870466a5ef8a37bf08df1 (diff) | |
download | samba-bfbc3486045f819a3e7ac9c7460a8793d5a1f0e5.tar.gz samba-bfbc3486045f819a3e7ac9c7460a8793d5a1f0e5.tar.bz2 samba-bfbc3486045f819a3e7ac9c7460a8793d5a1f0e5.zip |
From 3_0:
This fixes a bug when establishing trust against a german W2k3 AD server. In
the bind response to WKSSVC it does not send \PIPE\ntsvcs as NT4 (did not
check w2k) but \PIPE\wkssvc. I'm not sure whether we should make this check at
all, so making it a bit more liberal should hopefully not really hurt.
Volker
(This used to be commit dbd17dd0366d6cd20a2d5d8247dd5842563da2ca)
Diffstat (limited to 'source3/rpc_client/cli_pipe.c')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 9ce10202db..fdd9d3c3b1 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -1231,7 +1231,8 @@ static BOOL check_bind_response(RPC_HDR_BA *hdr_ba, const int pipe_idx, RPC_IFAC if ( hdr_ba->addr.len <= 0) return False; - if ( !strequal(hdr_ba->addr.str, pipe_names[pipe_idx].server_pipe )) + if ( (strequal(hdr_ba->addr.str, pipe_names[pipe_idx].client_pipe) != 0) && + (strequal(hdr_ba->addr.str, pipe_names[pipe_idx].server_pipe) != 0) ) { DEBUG(4,("bind_rpc_pipe: pipe_name %s != expected pipe %s. oh well!\n", pipe_names[i].server_pipe ,hdr_ba->addr.str)); |