Hi,

Been trying to get the XMLRPC working all afternoon but it keep complaining about bad login/password whilst the users definitely exist and can login on the html pages. It does this when I try to call a method. Wordpress exhibits the same behaviour if it's of any help. The .htaccess only gives me bad configuration errors (500) Any help would be greatly appreciated!

Comments

rvharten’s picture

Forgetting to give details. I'm using the services module with it's built-in xmlrpc. Drupal version 5.8

ray_223’s picture

I haven't used the services module ... but when using xml-rpc the first thing I do in each function is make sure to login to drupal with something like ...

function my_xmlrpc_function($username, $password, ... other stuff) {

  global $user;

  // check username / password
  $user = user_load(array('name' => $username,
                          'pass' => $password,
                          'status' => 1));
  if ($user->uid == 0) {
     return t('Invalid Username/Password');
  } else {

 ... do other stuff

  }

Hope that helps.

Ray Smith
http://RaymondSmith.com