This question about Authentication or Authorisation: Answered

SecondaryPasswordManager not working

Hi,

i have again a question. Because i am running foswiki in an productive environment, this question is very important to me. I am using ldap-contrib for users to authenticate.

Besides two issues (although i set $Foswiki::cfg{Ldap}{Debug} = 1; no debugfile is created or written two, and i did not manage to get a group filter set). main main usse is, that the SecondaryPAsswordManager seems not to work. I have set it to $Foswiki::cfg{Ldap}{SecondaryPasswordManager} = 'Foswiki::Users::HtPasswdUser';

and $Foswiki::cfg{Htpasswd}{FileName} = '/srv/www/foswiki/data/.htpasswd';

I created an entry with the htpasswd tool in that location for a user, but login does not work.

So, is there a way to track down, what the reason behind this may be? All files are readable by the webserver-user.

Can it be, that foswiki requieres modules, that are not mentioned in the installation guide? I think it is strange, that i am facing that much errors frown, sad smile

Any hints are welcome... Thank you.

-- PeterSchmidt - 19 July 2010

Hi Peter - this may come too late for you, but here are answers anyway:

1) Enabling debug only gets you some debug statements. There are a bunch of commented out LDAP debug statements in /var/www/html/foswiki/lib/Foswiki/Contrib/LdapContrib.pm as well, that you could uncomment for more debug logging (I guess they're commented out for performance considerations). Look for lines like:

#writeDebug("got $nrRecords keys in cache");

And take out the # to enable the debug next time through.

2) The secondary password manager not working is a known issue waiting for a fix - there is a bunch of info and a small patch available at Tasks.Item8192. I've got locally registered users in my wiki that I can log into bypassing LDAP with that patch applied.

-- RasmusPraestholm - 17 Sep 2010

QuestionForm edit

Subject Authentication or Authorisation
Extension
Version Foswiki 1.0.9
Status Answered
Topic revision: r2 - 17 Sep 2010, RasmusPraestholm
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