Results 1 to 1 of 1

Thread: Cannot modify domain COS via SOAP

  1. #1
    opichon is offline Member
    Join Date
    Jul 2008
    Posts
    11
    Rep Power
    7

    Default Cannot modify domain COS via SOAP

    I'm trying to update a domain's default COS via SOAP, but this doesn't work.

    I'm using a ModifyDomainRequestwith the zimbraDomainDefaultCOSId attribute.

    The SOAP request looks absolutely identical to the SOAP request sent by the admin web interface.

    I've tried doing it while being logged _out_ of the admin web interface (it looks like some SOAP request don't get through if logged in to the web ui).

    Is this a bug or some special thing I need to know ?

    request:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
    <context xmlns="urn:zimbra">
    <authToken>0_38933b0fd58d6c00c71fdcfed5872f94250a8 8e9_69643d33363a38626432313936312d363639372d346237 352d393662662d3462333539656337353937353b6578703d31 333a313232313138333832343238313b61646d696e3d313a31 3b747970653d363a7a696d6272613b</authToken>
    <sessionId id="3606">3606</sessionId>
    </context>
    </soap:Header>
    <soap:Body>

    <ModifyDomainRequest xmlns="urn:zimbraAdmin">
    <id>67ec5dab-8ccd-401f-9b2d-e2cb03f1ca30</id>
    <a n="zimbraDomainDefaultCOSId"></a>
    </ModifyDomainRequest>
    </soap:Body>
    </soap:Envelope>

    Response:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
    <context xmlns="urn:zimbra">
    <sessionId type="admin" id="3610">3610</sessionId>
    <change token="1178"/>
    </context>
    </soap:Header>
    <soap:Body>
    <ModifyDomainResponse xmlns="urn:zimbraAdmin">
    <domain name="xxxxxx.com" id="67ec5dab-8ccd-401f-9b2d-e2cb03f1ca30">
    <a n="o">xxxxxx.com domain</a>
    <a n="objectClass">dcObject</a>
    <a n="objectClass">organization</a>
    <a n="objectClass">zimbraDomain</a>
    <a n="zimbraGalMaxResults">100</a>
    <a n="zimbraAuthMech">zimbra</a>
    <a n="zimbraDomainName">xxxxxx.com</a>
    <a n="zimbraGalAutoCompleteLdapFilter">externalLdapAu toComplete</a>
    <a n="zimbraGalSyncLdapPageSize">1000</a>
    <a n="zimbraGalInternalSearchBase">DOMAIN</a>
    <a n="zimbraMailStatus">enabled</a>
    <a n="zimbraNotebookAccount">wiki@xxxxxx.com</a>
    <a n="zimbraGalLdapAttrMap">co=workCountry</a>
    <a n="zimbraGalLdapAttrMap">company=company</a>
    <a n="zimbraGalLdapAttrMap">description=notes</a>
    <a n="zimbraGalLdapAttrMap">displayName,cn=fullName </a>
    <a n="zimbraGalLdapAttrMap">givenName,gn=firstName</a>
    <a n="zimbraGalLdapAttrMap">initials=initials</a>
    <a n="zimbraGalLdapAttrMap">l=workCity</a>
    <a n="zimbraGalLdapAttrMap">objectClass=objectClass </a>
    <a n="zimbraGalLdapAttrMap">ou=department</a>
    <a n="zimbraGalLdapAttrMap">physicalDeliveryOfficeNam e=office</a>
    <a n="zimbraGalLdapAttrMap">postalCode=workPostalCode </a>
    <a n="zimbraGalLdapAttrMap">sn=lastName</a>
    <a n="zimbraGalLdapAttrMap">st=workState</a>
    <a n="zimbraGalLdapAttrMap">street,streetAddress=work Street</a>
    <a n="zimbraGalLdapAttrMap">telephoneNumber=workPhone </a>
    <a n="zimbraGalLdapAttrMap">title=jobTitle</a>
    <a n="zimbraGalLdapAttrMap">whenChanged,modifyTimeSta mp=modifyTimeStamp</a>
    <a n="zimbraGalLdapAttrMap">whenCreated,createTimeSta mp=createTimeStamp</a>
    <a n="zimbraGalLdapAttrMap">zimbraCalResLocationDispl ayName=zimbraCalResLocationDisplayName</a>
    <a n="zimbraGalLdapAttrMap">zimbraCalResType=zimbraCa lResType</a>
    <a n="zimbraGalLdapAttrMap">zimbraId=zimbraId</a>
    <a n="zimbraGalLdapAttrMap">zimbraMailDeliveryAddress ,zimbraMailAlias,mail=email,email2,email3,email4,e mail5,email6,email7,email8,email9,email10,email11, email12,email13,email14,email15,email16</a>
    <a n="zimbraGalLdapAttrMap">zimbraMailForwardingAddre ss=zimbraMailForwardingAddress</a><a n="zimbraVirtualHostname">gatonero.com</a>
    <a n="zimbraFreebusyExchangeCachedIntervalStart">7d </a>
    <a n="zimbraGalLdapPageSize">1000</a>
    <a n="zimbraId">67ec5dab-8ccd-401f-9b2d-e2cb03f1ca30</a>
    <a n="zimbraGalMode">zimbra</a><a n="zimbraDomainType">local</a>
    <a n="dc">gatonero</a><a n="zimbraFreebusyExchangeCachedInterval">60d</a>
    <a n="zimbraDomainStatus">active</a>
    </domain>
    </ModifyDomainResponse>
    </soap:Body>
    </soap:Envelope>
    Last edited by opichon; 09-11-2008 at 06:49 AM. Reason: added soap request and response transcripts

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 07-06-2010, 02:44 AM
  2. Replies: 7
    Last Post: 04-27-2009, 02:49 AM
  3. Replies: 20
    Last Post: 03-18-2008, 05:37 AM
  4. Domain admin soap api access
    By mrfileio in forum Administrators
    Replies: 0
    Last Post: 06-11-2007, 08:07 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
  •