s4:rpc_server: introduce dcesrv_call_state->auth_state
authorStefan Metzmacher <metze@samba.org>
Wed, 31 Oct 2018 13:44:33 +0000 (14:44 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2019 02:13:36 +0000 (03:13 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/rpc_server/dcerpc_server.c
source4/rpc_server/dcerpc_server.h

index fea3fb305ae78370c17bb1c05755d07654ab7cb6..651f5369ef9b54f10e21b8d1195b59a3aee84c0c 100644 (file)
@@ -2000,6 +2000,8 @@ static NTSTATUS dcesrv_process_ncacn_packet(struct dcesrv_connection *dce_conn,
        talloc_steal(call, blob.data);
        call->pkt = *pkt;
 
+       call->auth_state = &dce_conn->auth_state;
+
        talloc_set_destructor(call, dcesrv_call_dequeue);
 
        if (call->conn->allow_bind) {
index 1ba676fecfa5127bb3c1e9e947c85271f0cff426..41613cb089947e8a94bb955c454e61b27ac1aaf7 100644 (file)
@@ -88,6 +88,7 @@ struct data_blob_list_item {
 /* the state of an ongoing dcerpc call */
 struct dcesrv_call_state {
        struct dcesrv_call_state *next, *prev;
+       struct dcesrv_auth *auth_state;
        struct dcesrv_connection *conn;
        struct dcesrv_connection_context *context;
        struct ncacn_packet pkt;