Results 1 to 2 of 2

Thread: SOAP: SearchDirectoryRequest: "attrs" not being honored

Threaded View

  1. #1
    Join Date
    Jun 2008
    Posts
    15
    Rep Power
    7

    Exclamation SOAP: SearchDirectoryRequest: "attrs" not being honored

    It would appear the directive "attrs" on SearchDirectoryRequest does nothing.

    According to soap-admin.txt:

    SearchDirectoryRequest
    attrs - comma-seperated list of attrs to return ("displayName", "zimbraId", "zimbraAccountStatus")


    My example request:
    Code:
    <soap:Envelope
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
      <context xmlns="urn:zimbra">
        <authToken>MY_REALLY_LONG_AUTH_TOKEN</authToken>
        <sessionId id="SESSIONID">SESSIONID</sessionId>
      </context> 
    </soap:Header>
    <soap:Body>
    
    <SearchDirectoryRequest xmlns="urn:zimbraAdmin" attrs="displayName" limit="50" domain="domain.net" types="accounts,distributionlists,aliases">
    <query>(|(uid=*@domain.net)(mail=*@domain.net)(zimbraMailAlias=domain*@domain.net)(zimbraMailDeliveryAddress=domain*@domain.net))</query>
    </SearchDirectoryRequest>
    </soap:Body>
    </soap:Envelope>
    The response I get:
    Code:
    Array
    (
        [SOAP:ENVELOPE] => Array
            (
                [XMLNS:SOAP] => http://www.w3.org/2003/05/soap-envelope
                [SOAP:HEADER] => Array
                    (
                        [CONTEXT] => Array
                            (
                                [XMLNS] => urn:zimbra
                                [SESSIONID] => Array
                                    (
                                        [TYPE] => admin
                                        [ID] => ADMINID
                                        [DATA] => ADMINID
                                    )
    
                                [CHANGE] => Array
                                    (
                                        [TOKEN] => ADMINTOKEN
                                    )
    
                            )
    
                    )
    
                [SOAP:BODY] => Array
                    (
                        [SEARCHDIRECTORYRESPONSE] => Array
                            (
                                [MORE] => 0
                                [SEARCHTOTAL] => 5
                                [XMLNS] => urn:zimbraAdmin
                                [ACCOUNT] => Array
                                    (
                                        [0] => Array
                                            (
                                                [NAME] => example@domain.com
                                                [ID] => EXAMPLES_ID
                                                [A] => Array
                                                    (
                                                        [0] => Array
                                                            (
                                                                [N] => zimbraPrefCalendarReminderSoundsEnabled
                                                                [DATA] => TRUE
                                                            )
    
                                                        [1] => Array
                                                            (
                                                                [N] => zimbraPrefGalAutoCompleteEnabled
                                                                [DATA] => TRUE
                                                            )
    
    [...]
    (Clipped)

    So, I get every attr back regardless of the "attr" setting. I've tried changing this around every possible way - used "a1, a2, a3" and also "a1,a2,a3". Also used only values found on the account I was searching for - no difference.

    Perhaps Im not the only one with this issue?

    Thank you very much - Seandon.
    Last edited by erulabs; 10-07-2008 at 11:01 AM.

Similar Threads

  1. XSD/WSDL Files for the SOAP Server?
    By photoadrian in forum Developers
    Replies: 5
    Last Post: 12-23-2012, 02:32 AM
  2. Soap Errors for multiple users
    By rexmora in forum Zimbra Connector for Outlook
    Replies: 9
    Last Post: 09-03-2009, 03:24 PM
  3. Jar For Soap Client
    By wcameron in forum Developers
    Replies: 19
    Last Post: 06-03-2009, 03:04 PM
  4. Soap: SearchDirectoryRequest
    By jstillwa in forum Administrators
    Replies: 0
    Last Post: 09-17-2008, 01:58 PM
  5. Bug with preauth mechanism and SOAP headers?
    By Coilcore in forum Developers
    Replies: 3
    Last Post: 07-20-2006, 11:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •