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 4610418770 for ; Fri, 19 Feb 2016 03:24:38 +0000 (UTC) Received: (qmail 18240 invoked by uid 500); 19 Feb 2016 03:24:37 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 18194 invoked by uid 500); 19 Feb 2016 03:24:37 -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 18183 invoked by uid 99); 19 Feb 2016 03:24:37 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Feb 2016 03:24:37 +0000 Received: from mail-yw0-f177.google.com (mail-yw0-f177.google.com [209.85.161.177]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 7639A1A0141 for ; Fri, 19 Feb 2016 03:24:37 +0000 (UTC) Received: by mail-yw0-f177.google.com with SMTP id h129so58100393ywb.1 for ; Thu, 18 Feb 2016 19:24:37 -0800 (PST) X-Gm-Message-State: AG10YOS59Ii2bAa/Gc6uxwzUvQEcZClvYoIP5P94BF7UobSHUYRwXDCPhBzRacCSH6Z2QKfb9Pg9OpjUy5Buhw== MIME-Version: 1.0 X-Received: by 10.129.46.74 with SMTP id u71mr7180314ywu.143.1455852276415; Thu, 18 Feb 2016 19:24:36 -0800 (PST) Received: by 10.37.89.195 with HTTP; Thu, 18 Feb 2016 19:24:36 -0800 (PST) In-Reply-To: References: <56C228E0.60700@gmail.com> Date: Fri, 19 Feb 2016 08:54:36 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: logging all incoming requests From: Kiran Ayyagari To: "users@directory.apache.org" Content-Type: multipart/alternative; boundary=001a11414dcac80d61052c170581 --001a11414dcac80d61052c170581 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Feb 19, 2016 at 7:57 AM, Timothy Keith wrote: > On Thu, Feb 18, 2016 at 1:40 PM, Timothy Keith > wrote: > > On Mon, Feb 15, 2016 at 4:36 PM, Timothy Keith > > wrote: > >> On Mon, Feb 15, 2016 at 1:37 PM, Emmanuel L=C3=A9charny > wrote: > >>> 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 ge= t > >>> the fully decoded LDAP message like : > >>> > >>> LOG.debug( "Decoded LdapMessage : " + container ); > >>> > >>> > >> > >> It would first help me to know how to configure the location for the > >> wrapper.log on Microsoft Windows, and any other log files. In > >> wrapper.conf see a reference to "wrapper.log" file, but the single > >> occurrence of that file was only written to during the install of > >> Apache DS. > >> > >> Tim > > > > Sometimes the search logs stop showing any result of ldapsearch > > requests. This Apache Directory Studio 2.0.0 on a a Windows 7 > > system. > > > > Tim > > > Is it generally recommended to run Apache DS on Linux vs Windows? > > It works fine on both but if I have to pick a side it is Linux (obviously ;) On Linux you have the flexibility of running it using shell script without depending on the wrapper. > Tim > Kiran Ayyagari --001a11414dcac80d61052c170581--