Revert "dcesrv_core: implement preauth hashing support"
authorStefan Metzmacher <metze@samba.org>
Fri, 19 Apr 2024 14:14:33 +0000 (16:14 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 19 Apr 2024 14:14:33 +0000 (16:14 +0200)
This reverts commit a1982c8c10591e05374eed06388054baa20bc331.

librpc/rpc/dcesrv_core.c
librpc/rpc/dcesrv_core.h

index 140c97551ea4a32e781ce8257948aec7a2675839..ff9076fb0596969da93b3520aac087ce84c77c1f 100644 (file)
@@ -1198,11 +1198,6 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
                        a->reason.negotiate |=
                                DCERPC_BIND_TIME_KEEP_CONNECTION_ON_ORPHAN;
                }
-               if (features & DCERPC_BIND_TIME_SUPPORT_PREAUTH) {
-                       a->reason.negotiate |=
-                               DCERPC_BIND_TIME_SUPPORT_PREAUTH;
-                       a->syntax.uuid = GUID_random();
-               }
 
                conn->assoc_group->bind_time_features = a->reason.negotiate;
        }
@@ -1365,13 +1360,6 @@ static NTSTATUS dcesrv_auth_reply(struct dcesrv_call_state *call)
 
        dcerpc_set_frag_length(&rep->blob, rep->blob.length);
 
-       status = dcerpc_sec_vt_preauth_update(&call->conn->preauth,
-                                             pkt, &rep->blob,
-                                             &call->conn->preauth);
-       if (!NT_STATUS_IS_OK(status)) {
-               return status;
-       }
-
        DLIST_ADD_END(call->replies, rep);
        dcesrv_call_set_list(call, DCESRV_LIST_CALL_LIST);
 
@@ -2167,13 +2155,6 @@ static NTSTATUS dcesrv_process_ncacn_packet(struct dcesrv_connection *dce_conn,
        uint32_t auth_context_id = 0;
        bool auth_invalid = false;
 
-       status = dcerpc_sec_vt_preauth_update(&dce_conn->preauth,
-                                             pkt, &blob,
-                                             &dce_conn->preauth);
-       if (!NT_STATUS_IS_OK(status)) {
-               return status;
-       }
-
        call = talloc_zero(dce_conn, struct dcesrv_call_state);
        if (!call) {
                data_blob_free(&blob);
index 4148981719f0a1d09dbfc5b2609e975f0b666c59..3758c8d7de2efb9d14d0a8b78e3dd40998a99224 100644 (file)
@@ -328,8 +328,6 @@ struct dcesrv_connection {
         */
        const struct ndr_syntax_id *preferred_transfer;
 
-       struct dcerpc_sec_vt_preauth preauth;
-
        /*
         * This is used to block the connection during
         * pending authentication.