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 538C617731 for ; Wed, 22 Apr 2015 13:48:30 +0000 (UTC) Received: (qmail 58312 invoked by uid 500); 22 Apr 2015 13:48:26 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 58277 invoked by uid 500); 22 Apr 2015 13:48:26 -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 58267 invoked by uid 99); 22 Apr 2015 13:48:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2015 13:48:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: message received from 54.76.25.247 which is an MX secondary for modperl@perl.apache.org) Received: from [54.76.25.247] (HELO mx1-eu-west.apache.org) (54.76.25.247) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2015 13:48:00 +0000 Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id E4E4225F3B for ; Wed, 22 Apr 2015 13:47:58 +0000 (UTC) Received: by wgyo15 with SMTP id o15so247614187wgy.2 for ; Wed, 22 Apr 2015 06:47:58 -0700 (PDT) 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:cc:content-type; bh=7yux4NGiyNIaD4bNsSh0Ehr8/FYPnub0dPXnlfVfZnA=; b=mRYMebYpuQfU+AYmCUnjuUDNedOTohArV0L/WoVQTvFclmaVlFF8SsyfH6cjS7cHz0 rJX/Ff8bdPeTqmBUh/pbclAZyP4FWU0ZwwGRyg27wa2Fob/TUQ4l9xLe1jI1STp+ni8n c0Kv/X8zLwmcP8ZMYHDvmbJ1jGRiOqp0XuS2Vq0lIw8mvI59aF4GZdHVc9DG1QN8uiOM OxdVlVAoGfVL9f4MYfoRKwgMKIyTWuJ19CYAn+ifszMYybfk0hawja1E4W3AaUXn/UiL Ydia+lIO0ldEw58VGg1C9P9BeIIOPIBbxohmdMhGULbm9XjP6Rg3nUmlcPXIra4TxYrg dZrg== X-Gm-Message-State: ALoCoQmvXnOziTmNuaviC4bqCc4tjfqsdcxiBGZ/ELDRuSvvUsIyuTDgH5VmQuxAkgXsKam1IziB MIME-Version: 1.0 X-Received: by 10.180.73.230 with SMTP id o6mr6155829wiv.30.1429710478238; Wed, 22 Apr 2015 06:47:58 -0700 (PDT) Received: by 10.27.149.6 with HTTP; Wed, 22 Apr 2015 06:47:58 -0700 (PDT) In-Reply-To: <20150422073742.GC28298@inforich.ucc.usyd.edu.au> References: <20150422072310.GB28298@inforich.ucc.usyd.edu.au> <20150422073742.GC28298@inforich.ucc.usyd.edu.au> Date: Wed, 22 Apr 2015 09:47:58 -0400 Message-ID: Subject: Re: Apache 2.4: scope of PerlAddAuthzProvider From: Lathan Bidwell To: Jie Gao Cc: mod_perl list Content-Type: multipart/alternative; boundary=f46d0435c0182ffcc90514506955 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0435c0182ffcc90514506955 Content-Type: text/plain; charset=UTF-8 You are correct, the new setup thinks of it as setting up global AuthZ handlers. Make sure to name the provider with a good identifier (i.e.: thisAppUser, GlobalLoginUser, ....) A great many people would benefit from updating the documentation on these changes. But I think people are focusing on making sure it builds properly on different environments. Lathan On Wed, Apr 22, 2015 at 3:37 AM, Jie Gao wrote: > OK, I suppose I can add the provider globally, but not actually start to > use it until I call the module within a container. > > And it should be "PerlAddAuthzProvider user My::MyAuth::AuthCookie->authz" > as well. > > > Regards, > > Jie > > * Jie Gao wrote: > > > Date: Wed, 22 Apr 2015 17:23:10 +1000 > > From: Jie Gao > > To: modperl@perl.apache.org > > Subject: Apache 2.4: scope of PerlAddAuthzProvider > > User-Agent: Mutt/1.5.21 (2010-09-15) > > > > Hi > > > > When I put the following line within a "Location" section: > > > > PerlAddAuthzProvider user My::MyAuth::AuthCookie->authen > > > > I get an error: > > > > "AH00526: Syntax error on line 545 of > /usr/local/httpd-2.4.12/conf/httpd.conf: PerlAddAuthzProvider not allowed > here" > > > > . But if I put it outside the container, it'll apply globally to > everything and that is not what I want. > > > > Can somebody clarify this? > > > > > > Regards, > > > > Jie > --f46d0435c0182ffcc90514506955 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You are correct, the new setup thinks of it as settin= g up global AuthZ handlers.

Make sure to name the = provider with a good identifier (i.e.: thisAppUser, GlobalLoginUser, ....)<= /div>

A great many people would benefit from updating th= e documentation on these changes. But I think people are focusing on making= sure it builds properly on different environments.

Lathan


On Wed, Apr 22, 2015 at 3:37 AM, Jie Gao <J.Gao@sydney.edu.au> wrote:
OK, I suppose I can add the = provider globally, but not actually start to use it until I call the module= within a container.

And it should be "PerlAddAuthzProvider user My::MyAuth::AuthCookie->= ;authz" as well.


Regards,

Jie

* Jie Gao <J.Gao@sydney.edu.au> wrote:

> Date: Wed, 22 Apr 2015 17:23:10 +1000
> From: Jie Gao <
J.Gao@sydney.= edu.au>
> To: modperl@perl.apache.org=
> Subject: Apache 2.4: scope of PerlAddAuthzProvider
> User-Agent: Mutt/1.5.21 (2010-09-15)
>
> Hi
>
> When I put the following line within a "Location" section: >
>=C2=A0 =C2=A0 =C2=A0PerlAddAuthzProvider user My::MyAuth::AuthCookie-&g= t;authen
>
> I get an error:
>
>=C2=A0 =C2=A0 =C2=A0"AH00526: Syntax error on line 545 of /usr/loc= al/httpd-2.4.12/conf/httpd.conf: PerlAddAuthzProvider not allowed here"= ;
>
> . But if I put it outside the container, it'll apply globally to e= verything and that is not what I want.
>
> Can somebody clarify this?
>
>
> Regards,
>
> Jie

--f46d0435c0182ffcc90514506955--