Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 05-05-2008, 11:03 AM
ab5602 ab5602 is offline
Member
 
Join Date: Nov 2007
Location: Detroit, MI
ZCS Version: Release 5.0.5_GA_2201.UBUNTU6 DEBIAN4.0 NETWORK edition
Posts: 23
ab5602 is on a distinguished road
Send a message via Yahoo to ab5602
Default SOAP AuthRequest Question

Hello, I have a question wrt/ the way the SOAP AuthRequest works. I'm trying to validate a users ZM_AUTH_TOKEN cookie and it appears as if the way to do this via SOAP, is with an AuthRequest. In the SOAP docs for AuthRequest, it mentions:

"an authToken can be passed instead of account/password/preauth to validate an existing auth token."

However, the same authToken seems to validate with any User ID..

For example, if I log in as user@zimbraserver.edu, and then issue the following AuthRequest with their cookie:

Code:
<AuthRequest xmlns="urn:zimbraAccount">
<account by="id">user@zimbraserver.edu</account>
<authToken>0_80d73a1141595a4daaef1af9853055c450....[long]...</authToken>
</AuthRequest>

I get the Response:

<AuthResponse xmlns="urn:zimbraAccount">
<authToken>0_80d73a1141595a4daaef1af9853055c450....[long]...</authToken>
  <lifetime>172046740</lifetime>
  <sessionId id="1577">1577</sessionId>
  <skin>beach</skin>
</AuthResponse>
I appears to get a response as if it has set a session for user@zimbraserver.edu instead of validating an existing session. If I issue subsequent requests with the same ZM_AUTH_TOKEN as different users, it returns a new session too.

So the question is: How do I do, as the docs say: validate an existing ZM_AUTH_TOKEN. And am I on the right track with using AuthRequest? Thank you for any help here!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cancel And Modify Appointments SOAP Question noleman16 Developers 2 01-11-2008 10:18 AM
Calendar Insert SOAP Question phingers Developers 0 09-26-2007 07:02 AM
Zimbra SOAP Question jonnybravo Developers 8 07-26-2007 04:09 PM
SOAP question dbarnett Developers 6 11-17-2006 10:48 AM
Question on SOAP compatibility Robin Diederen Developers 3 09-19-2006 01:26 AM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0