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 10-06-2008, 04:19 PM
Intermediate Member
 
Posts: 15
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 10:01 AM..
Reply With Quote
  #2 (permalink)  
Old 10-07-2008, 10:26 AM
Intermediate Member
 
Posts: 15
Default

I have filed Bug 32175 in response to this.

Bug 32175 &ndash; 'SearchDirectoryRequest' does not obey 'attrs', even for main Zimbra Interface
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.