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 03-05-2007, 08:09 AM
Junior Member
 
Posts: 8
Default Changes to SOAP in 4.5?

The following SOAP request works in 4.0:

Code:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:zimbraAdmin" xmlns:ns2="urn:zimbra" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>
<ns2:context>
<authToken>(valid token)</authToken>
<nosession/>
</ns2:context>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:GetAccountInfoRequest>
<account by="name">account@domain.com</account>
</ns1:GetAccountInfoRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
In 4.5 it returns:

"permission denied: need admin token"

Has something significant changed in the SOAP interface in 4.5 that is causing this?
Reply With Quote
  #2 (permalink)  
Old 03-06-2007, 10:09 PM
Zimbra Employee
 
Posts: 1,434
Default admin:AuthRequest

I believe that some of the permissions issues were tightened up. In this case, you must do an <admin:AuthRequest> to get a valid admin auth token to execute the <GetAccountInfo> command. A regular <acct:AuthRequest> gives you a non-admin token for the authenticated account, and that non-admin token does not carry with it any rights beyond access to the auth'ed account's mailbox.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 03-07-2007, 08:04 AM
Junior Member
 
Posts: 8
Default

Thats got it, thanks.
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.