Results 1 to 2 of 2

Thread: zmprov and multiple search arguments

  1. #1
    Join Date
    Jul 2007
    Rep Power

    Default zmprov and multiple search arguments

    I wish to obtain a list of users who (a) haven't logged in yet, and (b) have description=DesiredTerm, and (c) no forwarding email specified.
    Last edited by Laird; 07-12-2010 at 09:55 AM.

  2. #2
    Join Date
    Nov 2007
    Santa Barbara, CA.
    Rep Power



    I don't know if zmprov alone can do this, but ldapsearch can.

    Here's a guess of what you're looking for (not well tested):

    [zimbra@ldap /]$ ldapsearch -LLL -x -h -D cn=config -w $ldap_root_password \
    -b '' '(&(!(zimbraLastLogonTimestamp=*))(description=Sta ff)(!(zimbraMailForwardingAddress=*@*))(&(objectCl ass=zimbraAccount)))'


    Last edited by Jesster; 12-02-2008 at 08:45 PM. Reason: forum is showing a space in the word Staff and objectClass - not sure why!

Similar Threads

  1. Making GAL's visible cross-domain?
    By Baylink in forum Administrators
    Replies: 5
    Last Post: 06-25-2011, 01:27 PM
  2. Looking for experienced opinions please
    By sdrury in forum Installation
    Replies: 6
    Last Post: 10-24-2008, 08:23 PM
  3. Scripting zmprov with Ruby (getting stdout/stderr)
    By Chewie71 in forum Developers
    Replies: 6
    Last Post: 07-24-2008, 07:21 AM
  4. zmprov ERROR: zclient.IO_ERROR
    By DVan in forum Administrators
    Replies: 8
    Last Post: 05-25-2007, 04:58 PM
  5. Trying to enter multi line value with zmprov
    By mbd in forum Administrators
    Replies: 10
    Last Post: 01-24-2007, 10:04 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