Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 89015 invoked from network); 3 Oct 2008 15:16:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2008 15:16:38 -0000 Received: (qmail 33747 invoked by uid 500); 3 Oct 2008 15:16:36 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 33728 invoked by uid 500); 3 Oct 2008 15:16:35 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 33717 invoked by uid 99); 3 Oct 2008 15:16:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 08:16:35 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [65.42.26.132] (HELO Exfilt5admin.aoins.com) (65.42.26.132) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 15:15:34 +0000 X-WSS-ID: 0K8652E-01-2GM-01 Received: from exfilt3.aoins.com (unknown [10.244.15.5]) by Exfilt5admin.aoins.com (Postfix) with ESMTP id 27789189C6C7 for ; Fri, 3 Oct 2008 11:15:49 -0400 (EDT) Received: from [10.1.159.33] by exfilt3.aoins.com with SMTP (Auto-Owners Insurance SMTP Relay); Fri, 03 Oct 2008 11:16:03 -0400 X-Server-Uuid: 34606A75-2E8B-4752-8022-D7E209E7FFE6 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: Wrapping an existing hook (2.0) Date: Fri, 3 Oct 2008 11:11:07 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Wrapping an existing hook (2.0) thread-index: AcklakLILNxPIA/vR6GU1ScxS6lXKQ== From: "Houser, Rick" To: modules-dev@httpd.apache.org X-WSS-ID: 64F8E8B92183508550-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I'm relatively new to module development, but I have a need to wrap a function in a proprietary module (no source) registered via a check_user_id hook in a proprietary module (mod_auth_saf). Basically, I need to detect an expired password condition. I've already tried to use the normal pre/post hook registration, but that function returns an HTTP_UNAUTHORIZED (some internal basic auth password change feature) instead of DECLINE, so Apache never runs my call. I think my best option is to locate the check_user_id function pointer and replace it with a new function. This new function would still make the call to the proprietary function, but would allow inspection of the results instead of terminating the request. Does this sound reasonable? Any hints as to how I could obtain the function pointer I'd need to make this all work? Thanks, Rick Houser Auto-Owners Insurance Systems Support (517)703-2580