Fix preauth redirection: Difference between revisions
No edit summary |
|||
Line 26: | Line 26: | ||
==Solution== | ==Solution== | ||
public service hostname should be configured. | |||
To fix this problem we have to set '''zimbraPublicServiceHostname | To fix this problem we have to set '''zimbraPublicServiceHostname''' on Domain or Global level configuration. | ||
===Steps for Global Level Config=== | ===Steps for Global Level Config=== | ||
su - zimbra | su - zimbra | ||
zmprov mcf zimbraPublicServiceHostname MAIL.DOMAIN.COM | zmprov mcf zimbraPublicServiceHostname MAIL.DOMAIN.COM | ||
zmcontrol restart | zmcontrol restart | ||
Line 40: | Line 38: | ||
su - zimbra | su - zimbra | ||
zmprov md DOMAIN.COM zimbraPublicServiceHostname MAIL.DOMAIN.COM | zmprov md DOMAIN.COM zimbraPublicServiceHostname MAIL.DOMAIN.COM | ||
zmcontrol restart | zmcontrol restart | ||
Revision as of 18:03, 15 March 2023
How to fix preauth redirection problem
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.
HTTP ERROR 400 Bad Request URI: /service/preauth STATUS: 400 MESSAGE: Bad Request SERVLET: PreAuthServlet
After refresh the page two times, get below error.
HTTP ERROR 400 authtoken is invalid URI: /service/preauth STATUS: 400 MESSAGE: authtoken is invalid SERVLET: PreAuthServlet
Solution
public service hostname should be configured.
To fix this problem we have to set zimbraPublicServiceHostname on Domain or Global level configuration.
Steps for Global Level Config
su - zimbra zmprov mcf zimbraPublicServiceHostname MAIL.DOMAIN.COM zmcontrol restart
Steps for Domain Level Config
su - zimbra zmprov md DOMAIN.COM zimbraPublicServiceHostname MAIL.DOMAIN.COM 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 |