folk from External Database Authentication Reloaded <http://wordpress.org/plugins/external-db-auth-reloaded/>