xmlrpc doesn't appear to work on blog.mozilla.com

VERIFIED FIXED

Status

mozilla.org Graveyard
Server Operations
VERIFIED FIXED
10 years ago
3 years ago

People

(Reporter: Benjamin Smedberg, Assigned: oremj)

Tracking

Details

(Reporter)

Description

10 years ago
I'm trying to post to blog.mozilla.com using the XML-RPC interface to wordpress: I've tested the script and it works on my own blog, but it has login failure notices on blog.mozilla.com:

XML-RPC URL: https://blog.mozilla.com/meeting-notes/xmlrpc.php
username: bsmedberg@mozilla.com
password: LDAP password

<Fault 403: 'Bad login/pass combination'>

Note: this username/password works if I login through https://blog.mozilla.com/meeting-notes/wp-login.php
(Assignee)

Updated

10 years ago
Assignee: server-ops → oremj
(Assignee)

Comment 1

10 years ago
Your script is probably missing a param for the method you are using.  For example wp.getPages requires 3 parameters, so the request needs to look like:

<params>
<param>
<value><string></string></value>
</param>
<param>
<value><string>bar</string></value>
</param>
<param>
<value><string>foo</string></value>
</param>
</params>

More documentation is here: http://codex.wordpress.org/XML-RPC_wp

system.listMethods() should give you a list of all supported xml-rpc methods.
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
(Reporter)

Comment 2

10 years ago
Yah, the problem was that I was passing blogid = '1' (which works for personal blogs but not for large shared installs!)... I dug a little through the API and figured out that meeting-notes is blogid 85.
Status: RESOLVED → VERIFIED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.