Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C4FA18798 for ; Mon, 15 Feb 2016 19:37:29 +0000 (UTC) Received: (qmail 11886 invoked by uid 500); 15 Feb 2016 19:37:29 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 11842 invoked by uid 500); 15 Feb 2016 19:37:29 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 11830 invoked by uid 99); 15 Feb 2016 19:37:28 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2016 19:37:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 304DCC00CB for ; Mon, 15 Feb 2016 19:37:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id EEaShQP63lnn for ; Mon, 15 Feb 2016 19:37:27 +0000 (UTC) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 17F985FBC7 for ; Mon, 15 Feb 2016 19:37:27 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id g62so122617050wme.0 for ; Mon, 15 Feb 2016 11:37:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=MDz1gmJBEkIuk6vG/j38CGfxdziY5i1XpfMiSHPWe6w=; b=ONj71JfrLV4I2eomteBhqFKQ0/JmE4k30/0+WgtWaAVEzMsfUxQQNfKG87ujs+4p9A hyvl+Z76nKs8nfIAIm4+t7qXIq6k2qfQtU4LPB+mfwhsJdBXIkDCfbyDhTBu5tBU80I4 Flrxkv2rnnPt/lk54rlnFxAcByB/kPi/z/umRmTXKpuyc4MIlw37fXLibPMeDs1gCjTG mxDt5xb8VlSvhZmjFW4xKxn/br5qR8yznnEJbgN8FXpcdzs+eOXA3cGoZBvqklbboATv 441We/BuZCtLQPegVv65ySWoCSREgnAlVF637MRz3xE5cX5EkaviMUHla93ro0sR8C1x hDLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=MDz1gmJBEkIuk6vG/j38CGfxdziY5i1XpfMiSHPWe6w=; b=jdVzQ4ufq3puu/8aTQ0lzbmyE6KmG5exE4K9i4BR8IhHXcr8e2AbtWLH+niFIufvRF Hs4IrRsAFiTCh3IYhComareED2vSE2ApwaUxLKT9EUoRZ0M8xU1tClTosLKM16Y72noE 1UbH34r7rLfuCEBOR2uHK4jzhIF+H8Lpc5WPeerTVlurM8SsdFWtMDzdRmZs/Tri7mDW 5Xcwmk/NAN0T2M2j0IlrrgSAu03UhLDx9xQW14dwkJKRhNMM96W9toBFyOGpHJbaHpuN gv6etdSbnCdMW8uvHNXuxVa4NrsK2azC+0B4f0hY92iqjh8sYmzl4wv7dBaYX0iKYGu3 NcFg== X-Gm-Message-State: AG10YOSaN+MAE7gs/QZWX6XqHq9cYThMgxG3arhxLQpxnhG1wZBUbQqcow+yodZfWpitmQ== X-Received: by 10.194.248.200 with SMTP id yo8mr7295398wjc.38.1455565046134; Mon, 15 Feb 2016 11:37:26 -0800 (PST) Received: from [172.20.10.3] ([80.12.55.219]) by smtp.googlemail.com with ESMTPSA id 73sm17101614wmy.22.2016.02.15.11.37.18 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Feb 2016 11:37:24 -0800 (PST) Subject: Re: logging all incoming requests To: users@directory.apache.org References: From: =?UTF-8?Q?Emmanuel_L=c3=a9charny?= X-Enigmail-Draft-Status: N1110 Message-ID: <56C228E0.60700@gmail.com> Date: Mon, 15 Feb 2016 20:37:04 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le 15/02/16 18:55, Timothy Keith a =C3=A9crit : > I am attempting to do pass-through authentication from an OpenLDAP > server. I would to have debugging logs for all incoming requests. > > Tim What kind of log do you want exactly ? If you want to have some logs about every received message, you can modify the log4j.properties to set the org.apache.directory.server.ldap.handlers.request package to DEBUG. You'll receive logs like : LOG.debug( "Received: {}", bindRequest ); LOG.debug( "Handling request: {}", req ); LOG.debug( "Handling compare request while ignoring referrals: {}", req ); LOG.debug( "Handling request: {}", req ); LOG.debug( "Handling modify dn request while ignoring referrals: {}", req ); LOG.debug( "Handling request : {}", req ); LOG.debug( "Handling single reply request: {}", req ); LOG.debug( "Received: {}", unbindRequest ); Four problems here : - not all the messages get logged (Abandon) - not all extended operations are logged, and they use a different logger= - overall, the messages are not consistent - you'll be flooded by logs you do'nt want. A better option would be to set a logger on org.apache.directory.api.ldap.codec.api.LdapDecoder. You will then get the fully decoded LDAP message like : LOG.debug( "Decoded LdapMessage : " + container );