summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-04-02 06:10:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:23 -0500
commit0ba6108bcdd07d32443c3c6608f5e0f74d67cfc1 (patch)
tree33a33301beea9fdc3e73911fb87c89445484a914 /source4/librpc
parentac5fc1302da7d0faf1c8970652af1d4be00969c9 (diff)
downloadsamba-0ba6108bcdd07d32443c3c6608f5e0f74d67cfc1.tar.gz
samba-0ba6108bcdd07d32443c3c6608f5e0f74d67cfc1.tar.bz2
samba-0ba6108bcdd07d32443c3c6608f5e0f74d67cfc1.zip
r6178: fix ncacn_np connection without sign or seal against NT4
metze (This used to be commit d92100fcc2066454df441a1ea2c7b9940fa19fa1)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index ffefd5111c..f45ae92bab 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -936,7 +936,10 @@ NTSTATUS dcerpc_pipe_auth(struct dcerpc_pipe *p,
status = dcerpc_bind_auth_schannel(tmp_ctx,
p, pipe_uuid, pipe_version,
credentials);
- } else if (!cli_credentials_is_anonymous(credentials)) {
+ } else if (!cli_credentials_is_anonymous(credentials) &&
+ !(binding->transport == NCACN_NP &&
+ !(binding->flags & DCERPC_SIGN) &&
+ !(binding->flags & DCERPC_SEAL))) {
uint8_t auth_type;
if (binding->flags & DCERPC_AUTH_SPNEGO) {
auth_type = DCERPC_AUTH_TYPE_SPNEGO;