Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 10482 invoked from network); 3 Oct 2008 19:54:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2008 19:54:22 -0000 Received: (qmail 23404 invoked by uid 500); 3 Oct 2008 19:54:20 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 23379 invoked by uid 500); 3 Oct 2008 19:54:20 -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 23368 invoked by uid 99); 3 Oct 2008 19:54:20 -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 12:54:20 -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: domain of covener@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 19:53:19 +0000 Received: by ug-out-1314.google.com with SMTP id j3so3216656ugf.23 for ; Fri, 03 Oct 2008 12:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=EXXbEdh3cwhDD0fD/BsTsrAJPHHxVmLEiwdysFQ1CI8=; b=Wl55McwW/AT7JqWYiiQnKJb0glG+RNAUxPvK3Xta9fig8K0q5rKEluOs/FxP/fiUfy lvkKgr0vFyYOmuvqjLwqf0Qr2XALLQJJk7KosfhUipHe3Ws9UX71dmvDqLOKxFMWVzHe PnDZ9P0ZCz3DCJw1rpbMieLtKeNySyQ3yQIa8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Za61TvJWFIajNjqjdOeR4VIVkySB9RIUAjCm7VlcMOzxK3n2P+ySf8I/1ys2NLk3Cs okB0hNv00uk4bQ7fbOxAI8+opQvfbhmfdMNCZgzGWQsLzFVOlrPDO9R7cSTQr9R9+ngu xmYh76cjAbteDXGpU9WQyL9Os9sIMwBaqdSkg= Received: by 10.67.26.7 with SMTP id d7mr5638761ugj.44.1223063623569; Fri, 03 Oct 2008 12:53:43 -0700 (PDT) Received: by 10.66.217.8 with HTTP; Fri, 3 Oct 2008 12:53:43 -0700 (PDT) Message-ID: <1404e5910810031253l364c2370g1d5a2441e86ade9f@mail.gmail.com> Date: Fri, 3 Oct 2008 15:53:43 -0400 From: "Eric Covener" To: modules-dev@httpd.apache.org Subject: Re: Wrapping an existing hook (2.0) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Oct 3, 2008 at 11:11 AM, Houser, Rick wrote: > 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. If you ask Apache to run your code first, the proprietary module shouldn't be able to prevent yours from being run. You should be able to make sure that your own logic runs for the expired password case and just DECLINE for everything else. IMO an auth_checker probably shouldn't return DECLINED if it can lookup a user and specifically find they have an expired password -- could you make a case to IBM for the behavior you ultimately want? -- Eric Covener covener@gmail.com