Don't take this the wrong way... but if you need a tutorial to set this sort of thing up then you might be better approaching a Moodle Partner who is familiar with this sort of installation.
I have given you the basic idea, but no two installations of this type will be alike. You really need to know what you are doing.
For example, we haven't asked you *why* you want to do this...