1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

r6178: fix ncacn_np connection without sign or seal against NT4

metze
(This used to be commit d92100fcc2066454df441a1ea2c7b9940fa19fa1)
This commit is contained in:
Stefan Metzmacher 2005-04-02 06:10:45 +00:00 committed by Gerald (Jerry) Carter
parent ac5fc1302d
commit 0ba6108bcd

View File

@ -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;