Results 1 to 4 of 4

Thread: Authentication Response does not contain SessionId. Why?

  1. #1
    avinashbalmuri is offline Starter Member
    Join Date
    Sep 2009
    Posts
    1
    Rep Power
    5

    Default Authentication Response does not contain SessionId. Why?

    When we send SOAP Authentication request to Zimbra Server:

    URL: https://postbox.myserver.com:7071/se...ap/AuthRequest

    Request:
    <soap:Envelope xmlns:soap='http://www.w3.org/2003/05/soap-envelope'><soap:Header><context xmlns='urn:zimbra'><userAgent xmlns='' name='ZimbraWebClient - IE6 (Win)'/></context></soap:Header><soap:Body><AuthRequest xmlns='urn:zimbraAdmin'><name xmlns=''>admin</name><password xmlns=''>xxxxxx</password><virtualHost xmlns=''>postbox.myserver.com</virtualHost></AuthRequest></soap:Body></soap:Envelope>

    Response:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><context xmlns="urn:zimbra"><change token="368"/></context></soap:Header><soap:Body><AuthResponse xmlns="urn:zimbraAdmin"><authToken>0_58c972b68eff9 57b95ac118becda9b9f99fb944a_99643d33363a6231396464 6266392d366262372d346135362d623739392d623435333536 3661313231643b6578703d31333a3132353339313632323934 38303b61646d696e3d313a313b747970653d363a7a696d6272 613b</authToken><lifetime>43200000</lifetime><a n="zimbraIsDomainAdminAccount">false</a></AuthResponse></soap:Body></soap:Envelope>

    In the response there is NO SessionId tag.
    i.e The following is not found: <sessionId id="" type="admin">...</sessionId>

    Any idea, what might be wrong?

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default

    In ZCS 6.0, the default is that requests do not generate a new session. You must explicitly request a new session by placing "<session/>" in the SOAP header.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    ldcl289 is offline Junior Member
    Join Date
    Apr 2010
    Posts
    6
    Rep Power
    5

    Default

    Quote Originally Posted by dkarp View Post
    In ZCS 6.0, the default is that requests do not generate a new session. You must explicitly request a new session by placing "<session/>" in the SOAP header.
    It isn't work yet!!
    I use two client and none work's

    Request:
    Code:
     
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
            <soap:Header><context xmlns="urn:zimbra"/></soap:Header>
            <soap:Body><AuthRequest xmlns="urn:zimbraAccount">
                                                    <account by="name">xx@xx</account>
                                                    <password>1234</password>
                                                    <session/>
                                            </AuthRequest></soap:Body>
    </soap:Envelope>
    Response:
    Code:
     
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
           <context xmlns="urn:zimbra"><change token="917"/></context>
    </soap:Header>
    <soap:Body>
        <AuthResponse xmlns="urn:zimbraAccount"><authToken>0_97556c7ba0d33b7f4d10dec21d49cb0559fd3b65_69643d33363a32353761633766302d386137342d343361332d613532642d6266646637663066333931633b6578703d31333a313237313937303331313733303b76763d313a313b747970653d363a7a696d6272613b</authToken><lifetime>172800000</lifetime><skin>beach</skin>
        </AuthResponse>
    </soap:Body>
    </soap:Envelope>
    I try putting "<session/>" everywhere and it doesn't work, in the header, in the body, but nothing!




    Note: I'm sorry for my english, I don't speak it so well.
    Last edited by ldcl289; 04-20-2010 at 02:38 PM. Reason: Change <session/> position

  4. #4
    PERydell is offline Starter Member
    Join Date
    Mar 2008
    Posts
    1
    Rep Power
    7

    Default

    Your <session/> needs to go inside the context.

    <soap:Envelope
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
    <context xmlns="urn:zimbra"><session/></context>
    </soap:Header>
    <soap:Body>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Does Zimbra support IMAP Secure Authentication?
    By zzzzsg in forum Administrators
    Replies: 6
    Last Post: 11-06-2009, 07:19 PM
  2. SMTP authentication failed, curl problem ?
    By iX in forum Installation
    Replies: 4
    Last Post: 10-23-2009, 02:24 AM
  3. Chaining authentication modules
    By glalejos in forum Developers
    Replies: 1
    Last Post: 09-11-2009, 04:09 AM
  4. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  5. Authentication to external ldap stop working.
    By jahaj in forum Installation
    Replies: 3
    Last Post: 12-05-2006, 03:17 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
  •