Zimbra has a preauth module.
If you use Zimbra Open Source version, you should download its source code and modify this module to make your register page.