Fix preauth redirection

How to fix preauth redirection problem


   KB 24510        Last updated on 2023-03-15  




0.00
(0 votes)

Problem

After successfully authenticating with the username and password to the login page, get a ERROR 400 Bad Request.If zimbra is configured with a zimbra domain PreAuth key.

Solution

This type of problem occurs where public service hostname, protocol and port values are not configured.

To fix this problem we have to set zimbraPublicServiceHostname, zimbraPublicServiceProtocol, and zimbraPublicServicePort on Domain or Global level configuration.

Steps for Global Level Config

su - zimbra 
zmprov mcf zimbraPublicServiceHostname MAIL.DOMAIN.COM
zmprov mcf zimbraPublicServiceProtocol https
zmprov mcf zimbraPublicServicePort 443
zmcontrol restart

Steps for Domain Level Config

su - zimbra 
zmprov md DOMAIN.COM zimbraPublicServiceHostname MAIL.DOMAIN.COM
zmprov md DOMAIN.COM zimbraPublicServiceProtocol https
zmprov md DOMAIN.COM zimbraPublicServicePort 443
zmcontrol restart

Note: Replace DOMAIN.COM and MAIL.DOMAIN.COM with the actual value according to your environment.

Above configuration also required for sharing where zimbra-proxy is configured.


Submitted by: Aditya Patidar
Verified Against: ZCS 8.8,ZCS 9.0 Date Created: 2023-03-15
Article ID: https://wiki.zimbra.com/index.php?title=Fix_preauth_redirection Date Modified: 2023-03-15



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search