Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-30-2008, 12:25 AM
Junior Member
 
Posts: 6
Default Preauth authentication failed error?

Let me explain my problem
domain.com and mail.domain.com are different servers,
zimbra is installed on mail.domain.com.SSL is not activated on mail.domain.com

1.I generated key for domain.com at mail.domain.com
2.I restarted zimbra server with stop and start commands
zmcontrol stop
zmcontrol start

3.I adjusted mail.domain.com as the same as domain.com
4.I added zimbra myname@mydomain.com account
and my test.php code at domain.com is:
<?

$now = time() * 1000;
$preauth_string = "myname@domain.com|name|0|" . $now;
$preauth = hash_hmac("sha1", $preauth_string, "350d4c96912e71429689bda85rc62e92gf54a84d8af7ddd35 8c10d3823dfd2bb");
echo "<CENTER><FONT FACE=ARIAL SIZE=+2><A HREF='http://mail.mydomain.com/service/preauth?account=myname@domain.com&expires=0&timest amp=" . $now . "&preauth=" . $preauth . "' target='_mail'>Launch Web Mail Client</A></FONT></CENTER>";

?>

and when i clicked to link,i get myname@domain.com authentication error:

HTTP ERROR: 400

authentication failed for myname@domain.com

RequestURI=/service/preauth

Powered by Jetty://

what can be wrong?i'm waiting for your help

Last edited by Dirk : 01-02-2009 at 08:18 AM. Reason: fixed inadvertant domain.com auto-linking
Reply With Quote
  #2 (permalink)  
Old 07-03-2009, 12:52 AM
Member
 
Posts: 12
Default Preauth Fails

Hello,

I have tried a lot to get rid from that.

I am trying to connect with zimbra server using Preauth mechanism. I have passed every parameters perfectly and also checked preauth key with

zmprov gdpa mydomain.com test@mydomain.com name CURRENT_TIMESTAMP 0

and the same key return which I generate with programming, but still I am not able to connect with Zimbra server everytime I got the same error "Authentication Fails".

I have also tried gdpak command to regenerate PreAuth key and restart the Zimbra service but still not able resolve this issue.

Thanx in Advance for your kind help.
Reply With Quote
  #3 (permalink)  
Old 07-03-2009, 02:26 AM
Special Member
 
Posts: 173
Exclamation

I had the same issue,
But when I renamed the file i.e. preauth.jsp to a.jsp my problem was solved.
Did you made changes after the first time you saved the preauth.jsp, then I guess try renaming it and access service/a.jsp

Regards
Adeel
Reply With Quote
  #4 (permalink)  
Old 07-03-2009, 02:34 AM
Member
 
Posts: 12
Default

Quote:
Originally Posted by adeelarifbhatti View Post
I had the same issue,
But when I renamed the file i.e. preauth.jsp to a.jsp my problem was solved.
Did you made changes after the first time you saved the preauth.jsp, then I guess try renaming it and access service/a.jsp

Regards
Adeel
I am trying to access zimbra using PHP webservice(SOAP).

can you please tell where I have to rename the file preauth.jsp ?
Reply With Quote
  #5 (permalink)  
Old 07-03-2009, 02:58 AM
Special Member
 
Posts: 173
Lightbulb

I used URL Interface for preauth.
If you made some changes after you saved the preauth.jsp, then I may be recommanding you to rename that file.
check this Preauth - Zimbra :: Wiki

Regards
Adeel
Reply With Quote
  #6 (permalink)  
Old 07-03-2009, 06:58 AM
Member
 
Posts: 12
Default

Now I got the problem,
the JSP code works fine but when I tried it with php its gives me

HTTP ERROR 400

Problem accessing /service/preauth/. Reason:

authentication failed for test@test.com

Powered by Jetty://


after some efforts I get to know that the problem is occurred because of timestamp.

When I am using JSP timestamp value with PHP than PreAuth works fine.

Please suggest some suitable way.....
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0