Item1153: Cannot authenticate with ModPerlEngineContrib enabled
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
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