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 -
Number of replies: 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

Ngā whakawākanga toharite: -
In reply to 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

Ngā whakawākanga toharite: -
In reply to 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 menemene.

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 keko.

Marcus

Ngā whakawākanga toharite: Useful (1)
In reply to Marcus Hoberg

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

Anthony Parcero -

That seemed to work for us, as well. Thank you, Marcus!

Ngā whakawākanga toharite: -
In reply to Marcus Hoberg

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

David Mudrák -
Pikitia o Core developers Pikitia o Documentation writers Pikitia o Moodle HQ Pikitia o Particularly helpful Moodlers Pikitia o Peer reviewers Pikitia o Plugin developers Pikitia o Plugins guardians Pikitia o Testers Pikitia o Translators
Thanks for letting us know Marcus!
Ngā whakawākanga toharite: -