RPC auth/mnet/user_authorise:No key matchERROR 3:3:No key match

RPC auth/mnet/user_authorise:No key matchERROR 3:3:No key match

- Marcus Hoberg の投稿
返信数: 4

We tried to make use of the mnet, but failed. Our two moodles A & B (1.9.7) live on the same mashine in different directories, sharing one IP. We added the openSSL path to moodle/config.php like suggested earlier. The private pey is generated properly, and also is published to the target moodle, and vice versa. The home page block lists target moodles, but connections fails by saying:

RPC auth/mnet/user_authorise:No key matchERROR 3:3:No key match

 

Throwing the debugger on gave additional info:

Warning: openssl_sign() [function.openssl-sign]: supplied key param cannot be coerced into a private key in C:\xampp\htdocs\moodle-b\mnet\lib.php on line 172

Warning: openssl_open() [function.openssl-open]: unable to coerce parameter 4 into a private key in C:\xampp\htdocs\moodle-b\mnet\xmlrpc\client.php on line 218

Warning: openssl_open() [function.openssl-open]: unable to coerce parameter 4 into a private key in C:\xampp\htdocs\moodle-b\mnet\xmlrpc\client.php on line 231

Warning: openssl_open() [function.openssl-open]: unable to coerce parameter 4 into a private key in C:\xampp\htdocs\moodle-b\mnet\xmlrpc\client.php on line 231

Warning: openssl_open() [function.openssl-open]: unable to coerce parameter 4 into a private key in C:\xampp\htdocs\moodle-b\mnet\xmlrpc\client.php on line 231

Notice: None of our keys could open the payload from host http://10.0.95.156/moodle-a with id 3. in C:\xampp\htdocs\moodle-b\mnet\xmlrpc\client.php on line 240

 

Some more details:

Networks are allowed in networking > settings.

Networking > Peers > Host > Services (SSO) are all enabled.

Moodle Network authentication is in place on both systems.

Moodle networking is allowed in courses > enrolments, one directory is listed as available.

Admin & teachers have role permission to roam to other moodle sites.

I also granted permission for individuals, but received the same errors.

 

Any idea on how to get the moodle network up and running would be appreciated!

Best Regards, Marcus

Marcus Hoberg への返信

Re: RPC auth/mnet/user_authorise:No key matchERROR 3:3:No key match

- Anthony Parcero の投稿

We're also having the same problems (with the same errors) on 2 of our Moodle sites. Our servers run on WAMP, if that makes a difference

Anthony Parcero への返信

Re: RPC auth/mnet/user_authorise:No key matchERROR 3:3:No key match

- Marcus Hoberg の投稿

Well, our system is a windows pc, this way you may call it wams 笑顔.

We managed to solve our problems by deleting the existing public keys (Networking > Settings > delete key) on all systems. The system then generates new ones. These fresh keys can be copied and pasted into the respective fields on the target systems (Networking > Peers > System - > public key).

Even though we did that two or three before, after again deleting all public keys and replacing them by the newly generated ones, it worked. That´s pure magic ウインク.

Marcus