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 we have to set '''zimbraPublicServiceHostname''' on Domain or Global level configuration.  
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


'''Note''': Replace '''DOMAIN.COM''' and '''MAIL.DOMAIN.COM''' with the actual value according to your environment.
If must use a different url, then provide an FQDN in zimbra_allowed_redirect_url.
 
Above configuration also required for sharing where zimbra-proxy is configured.  





Revision as of 18:12, 15 March 2023

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.

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
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