This is a small WordPress plugin, intended to send all login attempts on a Multisite network to the main site in the network.
This is useful anytime you want to have all logins happen in one place, such as when you are using SSL for logins only, but are too cheap to get a wildcard certificate.
Put login-on-main-site.php into wp-content/mu-plugins/