]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dcesrv_core: add more verbose debugging for missing association groups
authorStefan Metzmacher <metze@samba.org>
Mon, 16 Nov 2020 15:58:35 +0000 (16:58 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 10 Oct 2024 14:01:04 +0000 (14:01 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14356

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

index 8ecb7da5cb68306f4c02315c5e59ae11459d7ee5..b8e3d9fd261b6e9a1ad66fa5b11082af50c38b38 100644 (file)
@@ -1135,8 +1135,17 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
        status = dce_ctx->callbacks->assoc_group.find(
                call, dce_ctx->callbacks->assoc_group.private_data);
        if (!NT_STATUS_IS_OK(status)) {
-               DBG_NOTICE("Failed to find assoc_group 0x%08x: %s\n",
-                          call->pkt.u.bind.assoc_group_id, nt_errstr(status));
+               char *raddr = NULL;
+
+               raddr = tsocket_address_string(call->conn->remote_address, call);
+
+               endpoint = dcerpc_binding_get_string_option(
+                               call->conn->endpoint->ep_description,
+                               "endpoint");
+
+               DBG_WARNING("Failed to find assoc_group 0x%08x on ep[%s] raddr[%s]: %s\n",
+                           call->pkt.u.bind.assoc_group_id,
+                           endpoint, raddr, nt_errstr(status));
                return dcesrv_bind_nak(call, 0);
        }