Re: Information on using Apache2::AuthCookie with httpd 2.4

Lathan Bidwell <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAOqPvqgr69gjcz4499UvG1ya7H=CACeLr7XgqF7aDxKofCOwVg@mail.gmail.com>
On Tue, Oct 21, 2014 at 2:37 AM, Scott Alexander <[email protected]>
wrote:

>  Hi,
>
>
>  I'm moving from Centos 6 to Centos 7, httpd is 2.4.6
>
>
>  Trying to get
>
> Apache2::AuthCookie to work with my module for authentication.
>
>
> Hello Scott,

You are not alone. with 2.4, you have to relearn all the quirks in the
configuration from when you first started using mod perl v2.


>  I've seen one message about useful information in the debian file
>
> /usr/share/doc/libapache2-authcookie-perl/*README.apache-2.4*
>
>
>  Does anyone have that? Any other pointers would be greatly appreciated.
>
Did you install it via a package manager or download source from the
AuthCookie github?

You can find that file here:
https://github.com/mschout/apache-authcookie/tree/httpd24


>
>  I'm getting in my error log file
>
>
>  No authentication done but request not allowed without authentication
> for loginscript Authentication not configured?
>
>
> Yah, the configuration is quite tricky.

Basically, this error is saying that the authentication is required, but
the handlers didn't run properly, or weren't configured properly .

Here is an example that I have:

PerlAddAuthzProvider user Apache2::AuthCookie24->authz_handler
<Location /perl-status>
      PerlAuthenHandler Apache2::AuthCookie24->authenticate
      AuthName LDAPLogin
      AuthType Apache2::AuthCookie24
      require group admins

      ....set perl handler ....

</Location>

   Terveisin/Regards
>
> *Scott Alexander*
> Järjestelmäasiantuntija  Systems Specialist
>
> HUMAK
> Humanistinen ammattikorkeakoulu
> University of Applied Sciences
> www.humak.fi
>
> Tel. +358 (0)50 411 9556
> [email protected]
>
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.