Show
Setup
Please note: it's possible that you see some notices during the setup part depending on the debugging levels in your site. You can ignore them as long as the configuration works as expected.
Setup a couple of Moodle sites:
site1 running an older version, for example: Moodle 4.4.x (MOODLE_404_STABLE).
site2 running the version to be released (main).
In the file /etc/ssl/openssl.cnf search for the section openssl_init and make the following changes, so this part of the file looks like the following:
[openssl_init]
providers = provider_sect
[provider_sect]
default = default_sect
legacy = legacy_sect
[default_sect]
activate = 1
[legacy_sect]
activate = 1
Run the following command and verify it does not throw an error:
echo -ne "test" | openssl rc4-40 -K 7465737473 -nosalt -e -nopad | xxd
Make sure you have basic network connectivity between the two sites. eg. you can curl/wget the URL for site1 from site2 and vice versa
Make sure that the IP and port of both sites are not blocked. Navigate to: Administration > Security > HTTP security and make sure the site IP and ports are not in "cURL blocked hosts list " and "cURL allowed ports list ". (you can just clear both lists)
Ensure that they have different $CFG->sessioncookiepath settings either on config.php or in Site Administration > Server > Session handling
In both sites, enable and configure MNet as explained in the doc page.
Please note: You don't need to configure the "Get remote enrolments going" steps, only the "Get user roaming going" ones.
Testing
Log in as an admin
Enable MNet in Site Administration > General > Advanced features and set "Networking" to On .
Enable "MNet Authentication" in Site Administration > Plugins > Manage authentication
Navigate to admin/mnet/testclient.php
Confirm clicking on your client doesn't throw exception