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

Scott Alexander <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
HI,


Okay thanks for your help. In the end I decided to remove centos 7.0 and go for 6.5.


6.5 has httpd 2.2.


Regards
 Scott
<mailto:[email protected]>
________________________________
From: Lathan Bidwell <[email protected]>
Sent: 21 October 2014 18:21
To: mod_perl list
Subject: Re: Information on using Apache2::AuthCookie with httpd 2.4

On Tue, Oct 21, 2014 at 2:37 AM, Scott Alexander <[email protected]<mailto:[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<http://www.humak.fi/>

Tel. +358 (0)50 411 9556<tel:%2B358%20%280%2950%20411%209556>
[email protected]<mailto:[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.