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-20-2007, 11:57 PM
Moderator
 
Posts: 75
Default SOAP AuthRequest/Response Syntax

I'm working on getting the Zimbra Funambol connector working, but am getting an authentication failure when it tries to connect to the back-end Zimbra server using SOAP. It does an AuthRequest and expects to get back an authToken and SessionID, but for some reason, the SOAP response is missing a SessionID. The Zimbra server is running 5.0Beta3. The request looks like this:

<AuthRequest xmlns="urn:zimbraAccount">
<account by="name">hillman</account><password>xxxxxxxx</password>
<prefs><pref name="zimbraPrefTimeZoneId"/></prefs>
</AuthRequest>

And the response that comes back:

<AuthResponse xmlns="urn:zimbraAccount">
<authToken>0_07b4de1326b4.....</authToken>
<lifetime>172800000</lifetime>
<prefs>
<pref name="zimbraPrefTimeZone Id">(GMT -08.00) Pacific Time (US &amp; Canada)</pref>
</prefs>
</AuthResponse>

Am I correct in assuming that if I got an authToken back from the server, that the authrequest succeeded? If so, why no sessionID? All of the documentation I've read suggests that one should be present..

Thanks!

Last edited by hillman; 09-20-2007 at 11:59 PM..
Reply With Quote
  #2 (permalink)  
Old 09-21-2007, 09:38 AM
Zimbra Employee
 
Posts: 1,434
Default

My guess is that the ZCS server you're authing to doesn't believe that the account is homed there. Check your hostnames.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 09-21-2007, 12:51 PM
Moderator
 
Posts: 75
Default

I tried changing the account string from 'user' to 'user@servername', but that made no difference. I only have one server, so all users are in the same place. Is there anything else that might instruct the SOAP server not to create a session? The Zimbra server is running in 'both' mode for http, but the soap request is coming in via http (I don't know whether it supports https). Will the Zimbra SOAP server refuse to issue a sessionID on an http connection if 'both' mode is on?

Last edited by hillman; 09-21-2007 at 12:55 PM..
Reply With Quote
  #4 (permalink)  
Old 09-22-2007, 01:24 AM
Moderator
 
Posts: 75
Default Solved.

The problem turned out to be in the <Soap:Header> that was being passed along with the authRequest. A '<nonotify/> flag was being passed, which, according to the documentation, just means "don't notify about not messages/events in this session", but perhaps it changed somewhere along the line because in my case it was preventing a sessionID from being assigned. Once I removed the <nonotify/>, logins started working.

Hopefully this helps someone else one day because I spent a lot of hours of trial and error figuring that one out..
Reply With Quote
  #5 (permalink)  
Old 04-20-2010, 02:54 PM
Junior Member
 
Posts: 6
Default

It doesn't work!!
My request don't has a <nonotify/>, in the header is only "<context xmlns="urn:zimbraAccount"/><session/>". I try everything that google tellme and nothing!!
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.