Modified to support REMOTE_USER, SSL_CLIENT_S_DN_Email and SSL_CLIENT_S_DN_CN.