[Pywikipedia-l] [ pywikipediabot-Bugs-1961161 ] Cannot authenticate with LDAPauthentication extension

SourceForge.net noreply at sourceforge.net
Sat May 10 00:31:17 UTC 2008


Bugs item #1961161, was opened at 2008-05-09 20:43
Message generated for change (Comment added) made by wikipedian
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1961161&group_id=93107

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot authenticate with LDAPauthentication extension

Initial Comment:
pywikipedia cannot authenticate to MediaWiki if the wiki is running the LDAPauthentication extension, http://www.mediawiki.org/wiki/Extension:LDAP_Authentication.

The problem (most likely) is that LDAP authentication requires a domain, and pywikipedia does not provide it.

When in use, LDAPauthentication adds a domain dropdown to the MediaWiki login page, named wpDomain:

 <select name="wpDomain" value="invaliddomain" tabindex="3">
  <option>domain1</option>
  <option>domain2</option>
  <option>domain3</option>
 </select>

When you run login.py, you get this behavior:

 Password for user mybot on mywiki:en: *******
 Logging in to mywiki:en as mybot
 Login failed. Wrong password or CAPTCHA answer?

and the error reported by MediaWiki is:

 PHP Notice: Undefined index: invaliddomain in extensions\LdapAuthentication.php on line 170

LDAPauthentication is an important extension and I think pywikipedia should support it, just like you support CAPTCHAs today.

Thank you.



----------------------------------------------------------------------

>Comment By: Daniel Herding (wikipedian)
Date: 2008-05-10 02:31

Message:
Logged In: YES 
user_id=880694
Originator: NO

I applied the patch, thank you.

Untested because I don't have access to a wiki with LDAP auth, but at
least it doesn't break 
normal login.


----------------------------------------------------------------------

Comment By: Daniel Barrett (djbarrett)
Date: 2008-05-09 21:42

Message:
Logged In: YES 
user_id=558133
Originator: YES

Attached is a diff implementing support for LDAP authentication.
File Added: ldap-diff.txt

----------------------------------------------------------------------

Comment By: Daniel Barrett (djbarrett)
Date: 2008-05-09 20:46

Message:
Logged In: YES 
user_id=558133
Originator: YES

A fix is detailed at
http://www.mediawiki.org/wiki/Extension_talk:LDAP_Authentication#Making_work_with_Pywikipediabot.
Could this be made official?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1961161&group_id=93107



More information about the Pywikipedia-l mailing list