Hi Nigel,
Actually you're right. The Multinode MNET SSO relies on a consistant naming of usernames in all the Network.
We have this kind of control in our 35 Moodle nodes for Pairformance/Intel's TAO implementation. We do not allow having similar usernames, or these users will have a special username form that jumps out of our heuristic (and thus try the default, or just try a local login).
This would actually NOT BE suitable to a multi-institution network that have no consistant policy on user acocunt creation.
Dealing with institutional email address, we could force having a consistant namespace for all our users, and having an exception handling for some very special cases (eg. admin !! or external guests...)
The routing is perfect, in both cases !!
The heuristic requires depositing a REGEX to apply to usernames. This is a very simple approach, and might be extended on use case requests.
say we have a username that is : alain.bolli@ac-libourne.fr (I'm sorry Alain, but the town is bullshit, so no span to fear !!). The regex is : .*@(.*)\.fr that collects the "ac-libourne")
Can alos be entered in the auth plugin settings a replacable pattern to use this recollection back :
<%%HOSTNAME%%>.pairformance.education.fr wich is that actual naming sheme for all the nodes... and guess Alain comes from ac-libourne.pairformance.education.fr !!