Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4313E72B for ; Mon, 11 Feb 2013 11:55:10 +0000 (UTC) Received: (qmail 67662 invoked by uid 500); 11 Feb 2013 11:55:07 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 65336 invoked by uid 500); 11 Feb 2013 11:55:00 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 65284 invoked by uid 99); 11 Feb 2013 11:54:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 11:54:59 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [198.240.212.8] (HELO mail-gw20.credit-suisse.com) (198.240.212.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 11:54:54 +0000 Received: by mail-gw20.credit-suisse.com; Mon, 11 Feb 2013 11:54:29 GMT Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: exact ordering of handler Date: Mon, 11 Feb 2013 11:54:19 -0000 Message-ID: <1CDC4152D8B2FC419B09E4EABEBB9A24439F09@ELON17P32002A.csfb.cs-group.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: exact ordering of handler thread-index: Ac4ITcyONmDfXKqQSA6GSqTrUcNi9g== From: "Echlin, Jamie" To: X-OriginalArrivalTime: 11 Feb 2013 11:54:20.0525 (UTC) FILETIME=[86F8D9D0:01CE084E] X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have a perl handler that sets the remote user from information provided in a PKI certificate. I would like the handler to run after mod_ssl but before mod_authz_svn, basically the same as the following C code: static const char * const pre[] = { "mod_ssl.c", NULL }; static const char * const post[] = { "mod_authz_svn.c", NULL }; ap_hook_check_user_id(authmapper_fixup, pre, post, APR_HOOK_FIRST); I can't work out how to do this with a modperl handler - any of the handlers here: http://perl.apache.org/docs/2.0/user/handlers/intro.html run either too early or too late. I had a look at Apache2::HookRun - is this something that could help? The background is I am trying to substitute the user name in the request from the common name in the certificate. I could write it all in C but it involves some LDAP queries so would be simpler to use perl. Thanks in advance, jamie =============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ===============================================================================