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

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 Search this Thread Display Modes
  #1 (permalink)  
Old 09-25-2009, 04:37 AM
Starter Member
 
Posts: 1
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?
Reply With Quote
  #2 (permalink)  
Old 09-25-2009, 07:45 AM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #3 (permalink)  
Old 04-20-2010, 03:11 PM
Junior Member
 
Posts: 6
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 03:38 PM.. Reason: Change <session/> position
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

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

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.