Why replacing MNet is the first job before a Moodle 5.0 upgrade
If your Moodle site used MNet for single sign-on or for sharing courses between Moodle instances, you have to replace it with a supported method before you upgrade to Moodle 5.0 or later. Moodle 5.0 removed all MNet plugins, so the upgrade will not give you a working substitute. The right replacement depends on what MNet actually did for you: sign-on between sites calls for an identity method such as SAML 2.0, OAuth 2 or another core authentication option, while course sharing calls for a different mechanism that moves users and course access between systems in a controlled way. Treat these as two separate jobs, because one protocol rarely covers both.
Start by inventorying every MNet dependency: which peer hosts, which users sign in through them, which courses or enrolments cross the boundary, and which web service or enrolment settings those flows rely on. Record the Moodle version each site runs today. Moodle 5.1 requires sites to be on Moodle 4.2.3 or later to upgrade, and Moodle 5.3 requires 4.4 or later, so confirm your starting point against the Moodle 5.1 release notes and the Moodle 5.0 release notes before you plan the hop. Ask your upgrade partner or internal team to confirm the supported path for your exact version, because an older site may need intermediate upgrades first.
Sequence matters. Build and test the replacement sign-on or sharing flow on the current version, confirm that existing users map to the same accounts, and only then move the site to 5.0 or later. Run a test login and a test course transfer for each peer and keep the MNet configuration until those tests pass. Plan rollback for the period when both methods run side by side, and agree with the owners of each connected instance who will switch first.
What MNet removal changes for each function
This table compares each MNet function that a Moodle site may have relied on with the change in Moodle 5.0, the impact on users and administrators, and the action to take. Read each row against how your own sites were connected, since MNet was used differently across installations. The main takeaway is that MNet single sign-on and course sharing need separate replacements, and the remaining core plugins only cover part of that work.
| Change | Impact | Action needed |
|---|---|---|
| MNet plugins removed in Moodle 5.0 | All MNet plugins are gone from core in 5.0, so any site that depended on them loses those functions when it upgrades. | Confirm which MNet functions each site uses before planning the upgrade and record them as requirements. |
| Loss of MNet single sign-on between instances | Users who moved between Moodle sites through MNet trust lose that path, so they will need a separate sign-in for each site. | Choose a replacement identity route such as SAML 2.0 through an additional plugin, or OAuth 2, and test it with real user accounts. |
| Loss of MNet course sharing and peer connections | Course and peer connections that depended on MNet stop working after the upgrade, which can break shared content and links between instances. | Inventory the affected courses and connections, then confirm with the vendor or plugin maintainers which alternative fits each case. |
| Core LDAP authentication | Remains available in core, so directory-based sign-in can continue for users held in LDAP. | Confirm the plugin configuration and field mapping on the target version before go-live. |
| Core LTI authentication and LTI publishing enrolment | Core ships LTI authentication and an enrolment method for publishing LTI, so LTI can cover some links between tools and courses. | Check whether LTI meets the integration need, since it is not a direct replacement for MNet trust. |
| Core OAuth 2 authentication | Available in core and a common option for identity providers that support it. | Confirm the identity provider supports the flows you need and map account matching rules. |
| Core Shibboleth and web services | Shibboleth and web services are available in core, but they serve different needs from MNet and need their own design. | Confirm the target design, the service accounts and the access controls with your identity and integration owners. |
Which replacement fits each MNet use
MNet's sign-on role let users log in to one Moodle site with an account held on another. The usual replacement is an external identity provider that both sites trust. SAML 2.0 is commonly provided by the SAML2 Single sign on plugin (auth_saml2), which is maintained by Catalyst IT and creates users using field mapping configured in Moodle. OAuth 2 is a core authentication option and suits sites that already use an OAuth 2 provider. Where the directory is shared, LDAP and Shibboleth are core options that read from a central source instead of a peer Moodle.
- Account matching: Decide which attribute ties a SAML or OAuth 2 identity to an existing Moodle account, such as a stable employee ID rather than a mutable email address.
- Identity provider ownership: Confirm who operates the identity provider and who can change its settings, since sign-in for every Moodle site will depend on it.
- Plugin version support: The auth_saml2 plugin lists support for Moodle 2.7 through 5.1 in the plugins directory. Check its listed compatibility against your target release before committing, because a version gap will block the upgrade.
- Core versus plugin: OAuth 2, LDAP and Shibboleth ship in core, so they carry no third-party version risk, which makes them easier to justify in a regulated review.
- Session and logout behavior: Test how single logout and session expiry behave across the sites, since MNet's behavior will not carry over automatically.
Before cutover, confirm the chosen method on the exact target Moodle version in a test environment and record which users map to which accounts.
MNet also let one Moodle site offer courses or services to another. In current Moodle, the closest core mechanism is LTI: a site publishes content as an LTI tool, and another site connects to it. Core also ships LTI publishing enrolment, which lets a site enrol users into a course through an LTI connection. This covers sharing access to course content but does not replicate every MNet service, so each shared service needs to be mapped explicitly.
- LTI publishing enrolment: Use this when one site should enrol its own users into a course hosted on another, and confirm which roles and grades are returned.
- LTI tool connections: Define which activities or courses are exposed, and who maintains the tool registration and shared secrets.
- Identity handoff: LTI launches pass user details from the consuming site, so decide whether the hosting site trusts those details or requires its own sign-in.
- Data ownership: Settle which site holds grades, completions and personal data for shared courses, since this affects retention and any privacy obligations.
- Unsupported MNet services: Any MNet service without a direct LTI or web service equivalent needs a custom replacement or a retirement decision.
Set up one shared course end to end, including grade return and user removal, before moving the rest of the sharing arrangements.
Some organizations used MNet only because their sites all read users from one directory. In that case, the directory itself is the replacement, and Moodle sites connect to it directly. LDAP and external database authentication are core options, and Shibboleth fits federated environments that already use it. Moving sign-in to the directory removes the need for peer-to-peer trust between Moodle instances and tends to simplify ownership, since the directory team already governs accounts.
- Directory as source of truth: Confirm that every site should take users from the same directory and that the directory holds the attributes Moodle needs.
- Enrolment sync: Directory membership does not manage course enrolments by itself, so plan a separate enrolment method for course access.
- Account lifecycle: Define how leavers are suspended on every site, because accounts left active on one site remain a risk.
- Connectivity: Each Moodle site must reach the directory over a network path your security team approves.
- Federation boundaries: Shibboleth depends on federation metadata and trust agreements, which take time to change.
Ask the directory owner to confirm attribute availability and lifecycle rules before any Moodle site is configured.
The choice between replacements usually comes down to who owns identity and whether sites must share course content or only sign-in. A site that only needs shared sign-in will often be served by one identity provider. A site that also exchanges courses needs LTI decisions in addition. Document each MNet function in use, then assign one replacement per function so no sign-in or sharing path is left undecided at cutover.
- Inventory: List every MNet peer, the user flow it carried and the courses or services exchanged.
- Single owner per function: Name who decides the identity method and who decides the LTI design.
- Version gate: Check each third-party plugin against the target release before the upgrade starts.
- Parallel running: Keep MNet-dependent paths working until the replacement has passed user testing.
- Retirement: Remove unused peer connections after cutover so no stale trust remains.
Confirm the inventory with the site owners, because MNet arrangements are often undocumented.
What to inventory and back up before changing MNet settings
MNet touches more than a single login setting. Peers, users, courses and plugins all depend on it, so the inventory and backups below should be finished before any replacement work starts. Each item gives you a fallback path and a record of what the replacement must cover.
List every MNet peer and host
Record each peer host, its URL, the MNet services enabled for it and the direction of trust between the sites. Check both sides of each relationship, because a peer may be configured on one site and still appear as a host on another. Note which peers are still reachable and which are retired, since retired entries often cause confusion during cutover. Confirm this list with the owners of each connected Moodle instance.
Record dependent users and courses
Identify the accounts that sign in through MNet and the courses that receive or share content across instances. Export these lists so the new sign-in method can be tested against real accounts instead of sample users. Flag shared courses, enrolments that depend on a remote instance and any accounts that only exist because of MNet. These records set the scope of account matching and communication to learners.
Take a full database and moodledata backup
Back up the Moodle database and the moodledata directory together, so files and records stay consistent. Store the backup outside the production host and test a restore before relying on it. Keep the copy taken immediately before any MNet setting change as a separate, labeled snapshot. Record the Moodle version and the PHP version in the backup notes so the restore target is clear.
Test on a target-version instance
Restore the backup to a test instance running the Moodle version you plan to use, then rehearse the replacement there. Confirm that the new authentication or enrolment method signs users in and that course sharing behaves as expected. Use the test run to time each step and find blockers, such as missing plugins or unsupported database versions. Do not rely on production for first tests.
List plugins that use web services
Find every local or third-party plugin that calls web service functions, tokens or remote endpoints tied to MNet or to the peer sites. Each one may need a new token, endpoint or code change once MNet is gone. Check each plugin's supported Moodle versions and whether its maintainer still publishes updates. Record the owner of each plugin so that testing and sign-off are assigned before the cutover date.
Keep a decision record per replacement
For each MNet function, such as sign-in or course sharing, write down the chosen replacement, the reason for it, the people who approved it and the rollback steps. Include the open questions you could not answer yet and who will close them. A dated record gives auditors, security reviewers and the next administrator a clear trail. Review it again after the test instance results are in.
The order of changes that keeps users signed in
This sequence moves sign-in and course sharing off MNet before the core upgrade, so each change can be tested and reversed on the current version instead of being untangled during an upgrade.
Confirm the current version and upgrade starting point
Record the exact Moodle version, PHP version, database version and every enabled MNet, authentication and enrolment plugin, then compare the version with the starting point for your target. Moodle 5.1 requires sites to be on 4.2.3 or later, and Moodle 5.3 requires 4.4 or later. If your site is older, plan the intermediate hop first, because the core upgrade cannot skip it. Done when you have a written inventory and a named target release. Rollback point: nothing has changed yet, so the only action is to keep the current backup and database dump labeled as the pre-change baseline.
Map every MNet dependency to a replacement
List each place MNet supplied sign-in or course sharing: peer hosts, service keys, remote course links, and the users and courses that depend on them. For each dependency, choose a replacement such as SAML 2.0 through the auth_saml2 plugin, OAuth 2, or LTI for course launches, and confirm with the plugin maintainer and your identity provider that it fits your setup. Done when every dependency has a named replacement and an owner. Rollback point: no configuration is altered, so this step can be repeated without risk.
Build and test the replacement on the current version
Configure the replacement sign-in or LTI connection on your current Moodle version while MNet still works, so both paths run side by side. Test with pilot accounts covering students, teachers, and administrators, including account matching, first-login provisioning and role assignment. Verify that course launches open the expected activity. Done when a test sign-in and a test course launch succeed for each user type and the results are recorded. Rollback point: disable the new connection; MNet remains the working path.
Cut over users and course links
Move production users to the new sign-in method in a planned window, and update every course link, LTI tool configuration and external reference that pointed to the MNet peer. Confirm with the identity provider team that redirect URIs and attribute mappings match production. Done when a sample of real users from each group signs in through the new method and the updated course links open correctly. Rollback point: re-enable the MNet peer configuration and revert the authentication method setting, which is why the old path stays configured until this step is verified.
Remove MNet configuration and dependent settings
Once cutover is verified, disable and remove the MNet service configuration, peer host records and any blocks or settings that reference them. Search the site for remaining MNet references in custom code, themes, and scheduled tasks, and remove or replace them. Done when a search of the codebase and database configuration returns no active MNet reference and sign-in and course launches still work. Rollback point: restore the pre-change database dump taken in step one, since removing configuration is hard to reverse without it.
Check plugin compatibility and the document root
Confirm that every remaining plugin, theme and custom module has a version compatible with the target release, and that the replacement authentication plugin supports it. If the target is Moodle 5.1 or later, point the web server document root at the new /public directory rather than the main Moodle folder, because otherwise the site may show directory listings or errors. Done when a staging copy of the site loads with the new document root and every plugin reports compatible. Rollback point: switch the document root back to the previous path on the staging copy.
Run the core upgrade and retest sign-in
Run the core upgrade on a staging copy first, then in production, using the target release requirements for PHP and database versions. After the upgrade, repeat the sign-in and course launch tests from step three against the upgraded site and review the logs for authentication errors. Done when the upgraded site passes the same test set and the production users can sign in. Rollback point: restore the pre-upgrade backup of code and database, which should be taken immediately before the upgrade begins.
How the replacement paths fit around the upgrade
The diagram starts with an inventory of where MNet is actually used, because SSO and course sharing need different replacements. Sites that used MNet for sign-in branch toward SAML 2.0, OAuth 2 or LDAP, while sites that shared courses branch toward LTI. Both branches converge on a test run on the current version, and the rollback point is taken before the core upgrade begins. Check each branch against the sign-in and course-sharing behavior your users rely on before moving on.
Sign-in and course-sharing replacements both get tested before the rollback point and the core upgrade.
What makes the MNet replacement take longer
This table lists the factors that expand or shrink the work of replacing MNet, with the direction each one pushes effort. Read it to size your own project before asking for a quote, since the drivers multiply rather than add up in most estate reviews.
| Driver | Effect on effort | What to confirm early |
|---|---|---|
| Number of peer instances | Each peer needs its own trust setup, endpoint configuration and test login, so effort grows with every instance removed from MNet | Inventory every site that currently exchanges data with yours and who owns each one |
| Users matched across systems | Account matching and identifier mapping grow with the user count, and duplicate or mismatched accounts add manual review | Whether email, employee ID or another stable attribute is shared across all systems |
| Custom code calling MNet or web services | Hand-written calls to MNet functions must be rewritten or retired, and each one needs its own test cases | Search local plugins, scripts and integrations for MNet references and web service tokens |
| Identity provider ownership | If a central team owns the IdP, changes need their change process and approvals; if your team owns it, lead time is shorter | Who approves SAML or OAuth 2 client registrations and attribute release changes |
| Number of LTI tools | Each shared course or tool link may need its own LTI registration, launch testing and role mapping | Which courses and tools currently depend on course sharing between instances |
| Number of target Moodle versions | Peers on different releases need separate compatibility checks, so mixed estates take more test cycles | The Moodle release each connected instance runs, including sites still below 5.0 |
Questions buyers ask about replacing MNet
Can we upgrade to Moodle 5.0 without replacing MNet first?
No. Moodle 5.0 removed all MNet plugins, so any single sign-on or course sharing that ran over MNet stops working when the site moves to 5.0. The practical question is whether you replace MNet before the upgrade, during it, or accept a planned outage for those features. Most teams replace the sign-in path first, because users cannot reach anything else without it. Confirm with your own administrators which MNet peers and services are active, since some sites use MNet without realizing it. The removal is documented in the Moodle 5.0 release notes.
How much effort does replacing MNet take, and what drives it?
The effort depends on how many Moodle instances depended on MNet, how many users sign in through it, and whether course sharing or only sign-in was in use. Sign-in replacement is usually the larger item because it touches account matching, identity provider configuration and user testing. Course sharing needs its own decision, since LTI or web services can carry links and content differently from MNet. Ask any partner for a quote that lists each peer, each flow and each test cycle separately. The duration is not set by a supplied fact, so treat any figure you hear as unverified until it is tied to your scope.
Can our own team replace MNet without an outside partner?
Often yes, if you have someone who can administer Moodle, configure an identity provider and test login flows end to end. The work is mostly configuration and testing, not custom development, provided the replacement is a core plugin or a documented community plugin. A partner is more useful when the identity provider is complex, when several Moodle sites must match accounts consistently, or when your team lacks time for a staged rollout. Decide early who owns the test plan, because that is where most schedules slip.
What does the work need from our identity and LMS owners?
The identity team must supply the identity provider, its metadata or client registration, attribute release rules and a decision on which identifier matches a Moodle account. The LMS owners must decide how existing accounts are matched, how duplicate profiles are handled and which courses or enrolments carry over from MNet peers. Both groups should agree on a test user set, a cutover window and a rollback plan before any configuration changes. Without that agreement, the work stalls at account matching, which is the most common point of friction.
Is SAML or OAuth 2 the better replacement for MNet sign-in?
Neither is better in general. SAML 2.0 is the choice when your organization already runs a SAML identity provider and expects SAML for its applications. OAuth 2 suits organizations whose identity provider speaks OpenID Connect or OAuth 2 and whose policy favors those protocols. Moodle core ships an OAuth 2 authentication plugin, while SAML 2.0 is commonly provided by the SAML2 Single sign on plugin (auth_saml2), which is maintained outside core. That difference affects who maintains the component after go-live, so weigh it alongside your identity provider's supported protocols.
How do we check that a replacement plugin supports our Moodle version?
Start with the plugin's entry in the Moodle plugins directory, which lists supported Moodle versions and its maintainer. Check that the listed range includes your target version, not only your current one. Then review the plugin's release history and its open issues for signs of abandonment. For community plugins, confirm the target version's PHP and database requirements against the Moodle 5.1 release notes or the release notes for the version you plan to run. Record the decision for each plugin as replace, update or retire, and retest after every Moodle point release.
What order should we follow when replacing MNet?
Inventory first: list every MNet peer, the services each one provides and the users who depend on them. Next, choose the replacement protocol per flow, then stand it up in a test environment and match a pilot group of accounts. Only after login and course flows pass testing should you plan the Moodle 5.0 upgrade itself, with the replacement already live on the current version. Keep the old MNet configuration available until the cutover is confirmed, and document the rollback steps before the change window.
How DeployOpen scopes and delivers an MNet replacement
DeployOpen plans, implements, customizes, integrates, documents and supports self-hosted Moodle inside the client's own infrastructure. For an MNet replacement, we start by inventorying which peer relationships, single sign-on paths and course sharing flows the current sites use, then design the replacement protocol for each one before any change reaches production.
How we scope
- The written scope lists every Moodle instance, peer link and user population covered by the MNet replacement.
- We record which MNet services each site uses for sign-in and for sharing courses, so each one gets a named replacement.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before the replacement work begins.
How we build
- We configure the chosen replacement, such as SAML, OAuth 2 or LTI, in a staging copy of your Moodle 5.0 or later site.
- We map account identifiers and user fields between sites so existing users match their accounts without duplicates.
- We test sign-in and course transfer end to end, including failure cases, and document each result before production cutover.
How we hand over
- You receive configuration records, runbooks for each replacement link and the test evidence gathered during build.
- Each identity provider or tool setting is written down with the owner, the value source and the rollback steps.
- Your administrators are walked through daily checks so they can confirm the replacement works after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the replacement goes live.
- Retesting covers Moodle point releases and identity provider changes that could affect the replacement links.
- We can review the replacement again when you plan a later major Moodle upgrade.

