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 5092418186 for ; Thu, 18 Feb 2016 19:40:37 +0000 (UTC) Received: (qmail 37289 invoked by uid 500); 18 Feb 2016 19:40:34 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 37248 invoked by uid 500); 18 Feb 2016 19:40:34 -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 37235 invoked by uid 99); 18 Feb 2016 19:40:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2016 19:40:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 713E31A02FF for ; Thu, 18 Feb 2016 19:40:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id okDPgSk0Cy-m for ; Thu, 18 Feb 2016 19:40:32 +0000 (UTC) Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id C9F9C5FAEB for ; Thu, 18 Feb 2016 19:40:31 +0000 (UTC) Received: by mail-lf0-f41.google.com with SMTP id 78so39734303lfy.3 for ; Thu, 18 Feb 2016 11:40:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=O3hFM+Zfa9plmqVrXPEJ/jnheVMreZkuLyttgqx43VI=; b=lyxQWTpnzv3IK1P8xgX/ZhC/EKNQpXfHVDMk29ydrCCL5jonHD4Ynl6IILOtEvg3Hz df/iuc/Nb554Ja2BCVH7f+n9DRbZz4L38fSEJ9okg7Qa0MK5Sey9Ox0V2q+LbhE5EykB kTT6VblgGlUEz9UWXcVoKMpIzE/qK7nhdoxEzZDyvy+8MiaKv+YsKbR++5uWkzBNc/3n oGU+L9naZgwWIT59FkLfINZ098gPWhqajZOM64J1eTzxvVFHvOv8qk1LS+bRRnbts4v+ Ndkqy3bNhr/tW+WVBc7rFIZZ9WpXuIPnZMBLg9dMRdZSFwhwpS8jamk9aX8ikWVRLFcv keaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=O3hFM+Zfa9plmqVrXPEJ/jnheVMreZkuLyttgqx43VI=; b=QZowrJuYA0RfDoY5+/eioHzXS8s5pczKk6vKHQ/1YC+TLHudY2hnVTKx1tBIWNzWIg jp2+1AGK9sCV8ZBNHcT0T2Tcz7gUG65zK4c8PksFgkpyhfSMzI4neB96inRFDgbaHssZ ZQsnQUJTlaO6fkJj/JXVXG4bWr9l5h+f+4pHcwtUNazVmDzJB4PowkFE9gTWZ4csg7RB zm5ms+rxq78RD5OAgkiG+LEkW8EwmjBYY8frEzMLLEiq2vyEMim0WncfnInMhQ9dEQO7 p5P4rWlQBjKENol8PbvLMB6XU7GHZ44tLzakkasTNNReB5TOXSujR0BHl3r4kW/dCKhA 3m7A== X-Gm-Message-State: AG10YOR1EedCZ547DXweIL7WkaJd2QFvPfcd6afet/xKsyXEfHli29+oymT9/ivhp31zAL4c4+aRhEwCUKxiHg== MIME-Version: 1.0 X-Received: by 10.25.27.12 with SMTP id b12mr3961285lfb.97.1455824431349; Thu, 18 Feb 2016 11:40:31 -0800 (PST) Received: by 10.25.168.72 with HTTP; Thu, 18 Feb 2016 11:40:31 -0800 (PST) In-Reply-To: References: <56C228E0.60700@gmail.com> Date: Thu, 18 Feb 2016 13:40:31 -0600 Message-ID: Subject: Re: logging all incoming requests From: Timothy Keith To: users@directory.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 logge= r >> - 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 ); >> >> > > 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