Re: Apache 2.4: scope of PerlAddAuthzProvider

Lathan Bidwell <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAOqPvqjTW_-b9WeJ4xHyzUsjRYD+2UtGEzGSRtNaT7J-A=SL2Q@mail.gmail.com>
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 <[email protected]> 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 <[email protected]> wrote:
>
> > Date: Wed, 22 Apr 2015 17:23:10 +1000
> > From: Jie Gao <[email protected]>
> > To: [email protected]
> > 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.