Fix preauth redirection: Difference between revisions
Line 28: | Line 28: | ||
public service hostname should be configured. | public service hostname should be configured. | ||
To fix this problem | To fix this problem use the value from zimbraPublicServiceHostname as redirect url. | ||
===Steps for Global Level Config=== | ===Steps for Global Level Config=== | ||
Line 40: | Line 40: | ||
zmcontrol restart | zmcontrol restart | ||
If must use a different url, then provide an FQDN in zimbra_allowed_redirect_url. | |||
Revision as of 18:12, 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 use the value from zimbraPublicServiceHostname as redirect url.
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
If must use a different url, then provide an FQDN in zimbra_allowed_redirect_url.
Submitted by: Aditya Patidar |