Description

When using auth = [auth.moin_cookie, auth.ldap_login] and logging in with a non-LDAP account, I get redirected to UserPreferences and the message "Sorry, wrong password." is shown. However, the login does actually succeed. So the "wrong password" message is pretty misguiding.

Everything is however working correct when only using auth = [auth.moin_cookie] or auth = [auth.ldap_login], so I suppose this is related to the LDAP authentication.

Steps to reproduce

  1. setup a moin instance with both cookie and ldap authentication
  2. set auth = [auth.moin_cookie, auth.ldap_login]
  3. login with a moin_cookie account (or create a new one, same problem happening)

Example

Component selection

Details

MoinMoin Version

Release 1.5.7 [Revision release]

OS and Version

Linux 2.6.5-7.244-smp

Python Version

2.5 (r25:51908, Mar 15 2007, 15:21:11) [GCC 3.3.3 (SuSE Linux)]

Server Setup

wikifarm, cgi, apache2, MS Active Directory Service

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

English

Workaround

Discussion

(Filed by DieterVanUytvanck, who is subscribed to this page as well)

Try auth = [auth.ldap_login, auth.moin_cookie].

I tried this, and the LDAP login still works, but the other (moin_cookie) accounts don't work anymore at all. I get the "wrong password" message and the login does not succeed. If I use auth = [auth.moin_cookie] it works fine however. -- DieterVanUytvanck 2007-03-27 11:35:52

Thanks, that makes sense. So then I suppose that auth = [auth.moin_cookie, auth.ldap_login] would be the correct order for a combination of the standard and LDAP login. Is it because of the authoritative LDAP I get an unjustified "wrong password" when providing a correct one (using the cookie,ldap order)?

Thank you very much for the quick reply :). Indeed changing auth.py such that non-LDAP users are not veto'ed did the job. For the record, I'm attaching the diff. fix_cookie_and_ldap.diff

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/IncorrectWrongPassword (last edited 2008-03-18 16:54:43 by p5B055566)