QueueMetrics > Scripting QueueMetrics

Using LDAP for AUTH

<< < (2/3) > >>

framirez:
I found the spot to make the entry.. However I keep getting this message:


Alert:
Tech exception: Problems contacting the XML-RPC auth source.

framirez:
So this is what we are getting if we go directly to the php file:

Warning: require_once(XML/RPC/Server.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/apache2-default/login2.php on line 19

Fatal error: require_once() [function.require]: Failed opening required 'XML/RPC/Server.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/apache2-default/login2.php on line 19

Is this caused by the script being outdated or not calling the right file? Please provide some insight on this.

framirez:
Fixed prior issue with pear install XML_RPC

Now getting:

Fatal error: Class 'XML_RPC_Server' not found

This is being pulled from the following part of the xmlrpc_auth_server.php file

//
// Instantiates a very simple XML-RPC server for QueueMetrics
//
$server = new XML_RPC_Server(
    array(
        'QMAuth.auth' => array(
            'function' => 'xmlrpc_run_auth'
        )
    ),
    1  // serviceNow
);

Any takers on assisting with this?

marcos:
Hi Ramirez.
We received your e-mail and we are working on it.

Thanks and regards,
Marco Signorini.

marcos:
Hi,

The message you have "Fatal error: Class 'XML_RPC_Server' not found" is reported by PHP because the interpreter is not able to find the implementation of XML_RPC_Server.
This is due, probably, because your PHP/PEAR installation does not provide this class installation and is not related to QueueMetrics.
In my private installation I can find the implementation of XML_RPC_Server in the file I can find under PHP\PEAR\XML\Server.php.

I suggest to check what packages are installed (and where) to your PEAR distribution and then to start your authorization script directly from command line until you'll be able to have a result like what I've reported below:

XML_RPC>php TestAuthServer.php
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<fault>
  <value>
    <struct>
      <member>
        <name>faultCode</name>
        <value><int>105</int></value>
      </member>
      <member>
        <name>faultString</name>
        <value><string>XML error: Invalid document end at line 1</string></value>
      </member>
    </struct>
  </value>
</fault>
</methodResponse>

As you can see, this is the answer of XML_RPC_Server when no options were found on the submitted query and is proving that the XML_RPC_Server was correctly instanciated by the PHP interpreter.

I'm writing the same answer to QueueMetrics forum.

Best regards,
Marco Signorini.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version