Item1153: Cannot authenticate with ModPerlEngineContrib enabled

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: ModPerlEngineContrib
Branches: master
Reported By: StefanPalm
Waiting For:
Last Change By: GilmarSantosJr
With ModPerlEngineContrib enabled user authentification (via Apache/mod_authnz_ldap) fails.

When requesting a protected web/topic the user allways gets redirected directly to the registration topic without any chance to enter his credentials (the browser dialog never appears).

The apache log gives me the following error (during server startup):
Use of uninitialized value $file in string ne at /swmtools/lib/perl5/5.10.0/File/Spec/Unix.pm line 312.
Use of uninitialized value $file in concatenation (.) or string at /swmtools/lib/perl5/5.10.0/File/Spec/Unix.pm line 320.

-- StefanPalm - 26 Feb 2009

I cannot confirm this on Foswiki 1.0.4 with Apache 2.2 and LDAP authentication as well as LDAP storage for Foswiki users. You must not use a 401 redirect page. That will get you into an endless loop.

-- UlrichSpoerlein - 05 Apr 2009

Sorry on the delay to answer this. GeorgeClark faced this same problem in other environment and figured out the problem is in ErrorDocument combined with short urls: When shorturls are enabled the ErrorDocument must have a short URL. I can see from your configuration, Stefan, that it's your case. Try to use ErrorDocument 401 /Main/UserRegistration.

-- GilmarSantosJr - 05 Apr 2009

Confirmed. When setting ErrorDocument to a shortend URL everything works as expected. Thank you for that hint.

-- StefanPalm - 06 Apr 2009

ItemTemplate edit

Summary Cannot authenticate with ModPerlEngineContrib enabled
ReportedBy StefanPalm
Codebase 1.0.1, 1.0.0
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component ModPerlEngineContrib
Priority Normal
CurrentState Closed
WaitingFor
Checkins ModPerlEngineContrib:f2c9de0058d7 distro:88ce1ddbdaa6
TargetRelease n/a
ReleasedIn
CheckinsOnBranches master
masterCheckins distro:88ce1ddbdaa6
I Attachment Action Size Date Who Comment
foswiki.confconf foswiki.conf manage 8 K 26 Feb 2009 - 10:14 StefanPalm  
httpd.confconf httpd.conf manage 4 K 26 Feb 2009 - 10:14 StefanPalm  
Topic revision: r8 - 08 Jun 2015, GilmarSantosJr
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy