s4:librpc/rpc: don't do an anonymous bind over ncacn_np:server[packet]
authorStefan Metzmacher <metze@samba.org>
Thu, 29 Dec 2016 10:11:50 +0000 (11:11 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 2 Jan 2017 17:04:13 +0000 (18:04 +0100)
DCERPC_AUTH_LEVEL_PACKET is basically the same as
DCERPC_AUTH_LEVEL_INTEGRITY.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/librpc/rpc/dcerpc_util.c

index 85356cfc6e7e14c3e7ce1b45c2140ee90834070c..39f7d87fc8340a590273057750359cc240c3f981 100644 (file)
@@ -661,7 +661,7 @@ struct composite_context *dcerpc_pipe_auth_send(struct dcerpc_pipe *p,
         * if not doing sign or seal
         */
        if (conn->transport.transport == NCACN_NP &&
-           !(conn->flags & (DCERPC_SIGN|DCERPC_SEAL))) {
+           !(conn->flags & (DCERPC_PACKET|DCERPC_SIGN|DCERPC_SEAL))) {
                auth_none_req = dcerpc_bind_auth_none_send(c, s->pipe, s->table);
                composite_continue(c, auth_none_req, continue_auth_none, c);
                return c;