Results 1 to 2 of 2

Thread: SearchDirectoryRequest don't return anything

  1. #1
    MacTI is offline Active Member
    Join Date
    Aug 2008
    Location
    Montreal
    Posts
    31
    Rep Power
    7

    Default SearchDirectoryRequest don't return anything

    Hi,

    I'm trying to use SearchDirectoryRequest to see if an alias is already taken. I have build my query in Apache Directory Studio and it's working fine there.

    So, I'm using the same query in the SOAP call :

    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
    <context xmlns="urn:zimbra">
    <authToken>xxxxxxx</authToken>
    <sessionId id="3824">3824</sessionId>
    </context>
    </soap:Header>
    <soap:Body>
    <SearchDirectoryRequest domain="mydomain.com" maxResults="1" sortAscending="0" attrs="uid" xmlns="urn:zimbraAdmin">
    <query>
    (&amp;(objectClass=zimbraAlias)(uid=claudie.trembl ay))
    </query>
    </SearchDirectoryRequest>
    </soap:Body>
    </soap:Envelope>

    But the query don't return anything, even if the alias is already in a existing account.
    ZCS 6.05 on CentOS 5.3 (VMWare ESX 4)

  2. #2
    MacTI is offline Active Member
    Join Date
    Aug 2008
    Location
    Montreal
    Posts
    31
    Rep Power
    7

    Default

    Problem solved, the flags have to be set, so I added :

    options.setFlags(Provisioning.SA_ALIAS_FLAG);

    and it work now.
    ZCS 6.05 on CentOS 5.3 (VMWare ESX 4)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Errors installing Outlook Connector
    By Tim G in forum Zimbra Connector for Outlook
    Replies: 57
    Last Post: 05-05-2011, 02:27 PM
  2. Problems installing ZCS connector for Outlook
    By Millburn357 in forum Zimbra Connector for Outlook
    Replies: 18
    Last Post: 11-25-2009, 10:07 AM
  3. How to handle different RBL return codes
    By bking in forum Administrators
    Replies: 3
    Last Post: 10-10-2007, 04:52 AM
  4. Outlook 03 - Connector Issue
    By Sonny Ali in forum Zimbra Connector for Outlook
    Replies: 9
    Last Post: 09-06-2007, 10:35 AM
  5. Error Installing Outlook Connector
    By DanO in forum Zimbra Connector for Outlook
    Replies: 17
    Last Post: 08-28-2007, 09:35 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
  •