Results 1 to 2 of 2

Thread: zmprov and multiple search arguments

  1. #1
    Join Date
    Jul 2007
    Posts
    14
    Rep Power
    8

    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 10:55 AM.

  2. #2
    Join Date
    Nov 2007
    Location
    Santa Barbara, CA.
    Posts
    109
    Rep Power
    8

    Default

    Laird,

    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 zldap.example.org -D cn=config -w $ldap_root_password \
    -b '' '(&(!(zimbraLastLogonTimestamp=*))(description=Sta ff)(!(zimbraMailForwardingAddress=*@*))(&(objectCl ass=zimbraAccount)))'


    HTH

    -Jessie
    Last edited by Jesster; 12-02-2008 at 09: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, 02:27 PM
  2. Looking for experienced opinions please
    By sdrury in forum Installation
    Replies: 6
    Last Post: 10-24-2008, 09:23 PM
  3. Scripting zmprov with Ruby (getting stdout/stderr)
    By Chewie71 in forum Developers
    Replies: 6
    Last Post: 07-24-2008, 08:21 AM
  4. zmprov ERROR: zclient.IO_ERROR
    By DVan in forum Administrators
    Replies: 8
    Last Post: 05-25-2007, 05:58 PM
  5. Trying to enter multi line value with zmprov
    By mbd in forum Administrators
    Replies: 10
    Last Post: 01-24-2007, 11: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
  •