Last modified: 2012-05-23 16:38:49 UTC
With OATHAuth enabled on a wiki (ie labsconsole), it is not possible to login via the API. It is rejected with a wrong password (tried with add-labs-user as below, and also AutoWikiBrowser) sumanah@formey:~$ sudo add-labs-user --wikiname="Giovanni Luca Ciampaglia" --mail="glciampagl@gmail.com" giovanni Traceback (most recent call last): File "/usr/local/sbin/add-labs-user", line 37, in <module> main() File "/usr/local/sbin/add-labs-user", line 34, in main site.login(options.wikiname, passwd, domain=scriptconfig.domain) File "/usr/lib/pymodules/python2.6/mwclient/client.py", line 341, in login raise errors.LoginError(self, login['login']) mwclient.errors.LoginError: (<Site object '('https', 'labsconsole.wikimedia.org')/w/'>, {u'result': u'WrongPluginPass'})
Though, your LDAP extension and its ChainAuth hook seem somewhat suspect..
Occasionally the add-labs-user script fails. This happened before OATHAuth. Did you try running that more than once? OATHAuth will only cause auth to fail if OAUTHAuth is enabled and verified for an account. Nothing in the authentication chain causes this to occur, you can only do so via the special page. In fact, I just ran that command again, and it went through fine. Whenever you get that error, simply try again.
No, I hadn't tried running the script again. Of course I think it would be optimal to fix it more robustly but that's in utopia. :-) In the future I'll just try running the script again.
The error almost never occurs, and it's likely a timing issue of some variety. In the long term we don't plan using the script anyway. It's a waste of time to fix.
(In reply to comment #4) > The error almost never occurs, and it's likely a timing issue of some variety. > In the long term we don't plan using the script anyway. It's a waste of time to > fix. So what you're saying is that Sumana is "lucky"? ;)
Yes. She also likely runs it the most.