Results 1 to 6 of 6

Thread: Using zmprov to request filtered list of users (description field)

  1. #1
    Laird is offline Intermediate Member
    Join Date
    Jul 2007
    Posts
    14
    Rep Power
    8

    Default Using zmprov to request filtered list of users (description field)

    How to use zmprov to request a filtered list of users, filtered by what they have in the "description" field.

    The CLI help suggests it has something to do with the "sa" command?
    Last edited by Laird; 07-12-2010 at 09:49 AM.

  2. #2
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    try zmprov sa description=Faculty

  3. #3
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    zmprov sa zimbraAccountStatus=closed;description=Faculty

  4. #4
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    Hmm sorry when I tested that I thought it was working but it just happened that my test query would return the same results as just the first one.

    The syntax of this command is:
    Code:
    searchAccounts(sa) [-v] {ldap-query} [limit {limit}] [offset {offset}] [sortBy {attr}] [attrs {a1,a2...}] [sortAscending 0|1*] [domain {domain}]
    If that is any help.

  5. #5
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    Yeah I've tried a few different things and no go. maybe a dev will chime in.

  6. #6
    Baylink is offline Elite Member
    Join Date
    Aug 2008
    Location
    St Pete FL USA
    Posts
    392
    Rep Power
    7

    Default

    Quote Originally Posted by ArcaneMagus View Post
    zmprov sa zimbraAccountStatus=closed;description=Faculty
    If that is the proper syntax, you're going go have to *quote it*, or the shell will eat the semicolon, and you won't even get an error, because the remainder looks like a variable assignment.
    Jay R. Ashworth - ZCS 6.0.9CE/CentOS5 - St Pete FL US - Music - Blog - Photography - IANAL - IAAMA
    Try to Ask Questions The Smart Way -- you'll get better answers.

    Put your product and version in your profile/signature - All opinions strictly my own, even though I have an employer these days.
    If you [SOLVE] something, please tell everyone how for the archives
    And, please... read what people write, and answer the questions they asked, not the ones they didn't.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 09-11-2008, 11:55 AM
  2. Moving to different server
    By AaronW1000 in forum Installation
    Replies: 2
    Last Post: 07-03-2008, 07:39 AM
  3. zmprov mc default zimbraFeatureNotebookEnabled TRUE
    By nbhanji in forum Installation
    Replies: 11
    Last Post: 04-29-2008, 10:39 AM
  4. Mass delete list of users - zmprov?
    By Brian@MCC in forum Administrators
    Replies: 5
    Last Post: 01-10-2008, 03:07 PM
  5. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 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
  •