Results 1 to 7 of 7

Thread: Preauth authentication failed error?

  1. #1
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    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 07:18 AM. Reason: fixed inadvertant domain.com auto-linking

  2. #2
    Join Date
    Jun 2009
    Location
    India
    Posts
    12
    Rep Power
    6

    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.

  3. #3
    Join Date
    Feb 2009
    Posts
    188
    Rep Power
    6

    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

  4. #4
    Join Date
    Jun 2009
    Location
    India
    Posts
    12
    Rep Power
    6

    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 ?

  5. #5
    Join Date
    Feb 2009
    Posts
    188
    Rep Power
    6

    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

  6. #6
    Join Date
    Jun 2009
    Location
    India
    Posts
    12
    Rep Power
    6

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

  7. #7
    Join Date
    Sep 2012
    Posts
    3
    Rep Power
    3

    Default

    Hello ,

    I am new to zimbra and was using soap for the zimbra integration. I have tested the same code and it worked on the test server , but when i used the same code with server on datacenter with same configuration and same OS, I can not login through soap. If anyone can point out my problem, it would be highly appreciated.

    Thanks,

Similar Threads

  1. Installation zimbra Initializing ldap...failed. (28416)
    By farrukh.nadeem in forum Installation
    Replies: 10
    Last Post: 08-14-2009, 06:52 AM
  2. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  3. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  4. [SOLVED] Debian Etch 32 / 64: MTA not working
    By xflip in forum Installation
    Replies: 2
    Last Post: 01-18-2008, 03:58 AM
  5. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 12:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •