Hi,
I'm using MediaWiki version 1.15.1 and mwlib 0.11.2 and Extension:Collection to generate PDF from wiki pages. I set my wiki site to prevent anonymous reading and editing and configured Extension::LDAP to authenticate through my Active Directory. The Extension:Collection has the credentials configured to access MediaWiki API through authentication. But when mw-render tries to read pages from my wiki, it receives this message "You need read permission to use this module".
I read something about credentials stripping when using JSON callbacks (there is a comment in ApiMain.php about this). So, the question is: is there a way to mw-render read pages from my wiki even with anonymous reading being blocked?
I don't want to allow anonymous access to my pages, but I really need to generate PDF's from them.
Thank's for any help.
Best regards, Fabio Junior Sabai
2009/7/15 Fabio Junior Sabai fabio.sabai@cedrofinances.com.br:
Hi,
I'm using MediaWiki version 1.15.1 and mwlib 0.11.2 and Extension:Collection to generate PDF from wiki pages. I set my wiki site to prevent anonymous reading and editing and configured Extension::LDAP to authenticate through my Active Directory. The Extension:Collection has the credentials configured to access MediaWiki API through authentication. But when mw-render tries to read pages from my wiki, it receives this message "You need read permission to use this module".
I read something about credentials stripping when using JSON callbacks (there is a comment in ApiMain.php about this).
As the message says, that only applies if Collection uses JSON callbacks. Since mwlib is in Python, I highly doubt that. Instead, I think it doesn't authenticate itself with the API and triesto read pages as an anonymous user, which is obviously not allowed. If I'm right, then that's a bug in either mwlib or the Collection extension.
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org