Results 1 to 2 of 2

Thread: LDAP search for non-system accounts

  1. #1
    Join Date
    Sep 2007
    Location
    Aoteroa
    Posts
    128
    Rep Power
    8

    Default LDAP search for non-system accounts

    Hi,

    I'm trying to implement dynamic distribution lists but I want to exclude accounts that have zimbraIsSystemAccount set so we just get users.

    I'm trying
    Code:
    ldapsearch -h my.server.com -D uid=zimbra,cn=admins,cn=zimbra -W "(&(objectClass=zimbraAccount) (\!(zimbraIsSystemAccount=*)))"
    But I'm getting the error
    Code:
    ldap_search_ext: Bad search filter (-7)
    Any ideas what the filter should be?

  2. #2
    Join Date
    Sep 2007
    Location
    Aoteroa
    Posts
    128
    Rep Power
    8

    Default

    Well, I managed to do it. Turns out it didn't like the double quotes. The end command for creating the dynamic distribution list was:

    Code:
    zmprov cddl everyone@my.domain.com memberURL 'ldap:///??sub?(&(objectClass=zimbraAccount) (!(zimbraIsSystemAccount=*)))' zimbraIsACLGroup FALSE

Similar Threads

  1. Account Migration: Import Accounts: LDAP search base
    By ThorGoLucky in forum Administrators
    Replies: 4
    Last Post: 11-23-2012, 09:26 PM
  2. System wide search for folders
    By gacain in forum Administrators
    Replies: 0
    Last Post: 03-14-2012, 03:07 PM
  3. LDAP Search to return hidden in GAL accounts
    By shoetick in forum Developers
    Replies: 0
    Last Post: 01-27-2010, 07:30 AM
  4. Replies: 0
    Last Post: 12-30-2009, 07:41 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
  •