From: Stefan Metzmacher Date: Mon, 16 Nov 2020 15:58:35 +0000 (+0100) Subject: dcesrv_core: add more verbose debugging for missing association groups X-Git-Tag: tdb-1.4.13~960 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac5818f2dd348e61b4be35505bee00b330ec4450;p=thirdparty%2Fsamba.git dcesrv_core: add more verbose debugging for missing association groups BUG: https://bugzilla.samba.org/show_bug.cgi?id=14356 Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/librpc/rpc/dcesrv_core.c b/librpc/rpc/dcesrv_core.c index 8ecb7da5cb6..b8e3d9fd261 100644 --- a/librpc/rpc/dcesrv_core.c +++ b/librpc/rpc/dcesrv_core.c @@ -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); }