we want to migrate a moodle-site to single-sign-on via mnet. All existing users will be transferred to the main-site and we will have several remote-sites, with single-sign on. the goal of this project is to provide one login for multiple moodle-sites we offer.
Is there a best practice method how to convert local users to remote users, so that the new remote account is mapped to the local account, that means, that the remote account should replace the local account on the site, but keep all course subscriptions, etc. available.
Or would it be possible to write a script? Perhaps a hint how to start for such a script would be nice. Is it possible to replace just all the user ids associated with courses, etc? Could there be any problems doing such a mysql query? Any help is greatly appreciated.