Results 1 to 2 of 2

Thread: [SOLVED] fast way to search for an account

  1. #1
    Artturi is offline Loyal Member
    Join Date
    Dec 2006
    Rep Power

    Default [SOLVED] fast way to search for an account


    In order to create new accounts in zimbra, I've written a script that checks for newly created|modified accounts in our ldap server, and checks whether the accounts exists in zimbra.

    To check if the account exists in zimbra, I use this :

    su - zimbra -c "zmprov ga user@domain" | wc -l
    I wondered if there's a faster way to do this as this command takes approx. 2s.
    Any suggestion ?


  2. #2
    mdeneen is offline Active Member
    Join Date
    Jul 2007
    Rep Power


    Here are a few suggestions:

    1. call "zmprov gaa" and store the results in either a file or a variable in some scripting language. Parse from that instead of invoking the jvm for each record.

    2. make a SMTP connection to Zimbra and pretend like you are sending mail to see if the account exists.


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Re-creating the spam training e-mail account
    By richard-hdd in forum Administrators
    Replies: 21
    Last Post: 03-20-2012, 07:34 AM
  2. One account not receving email
    By EnglishDude in forum Administrators
    Replies: 12
    Last Post: 04-30-2010, 06:19 AM
  3. Replies: 2
    Last Post: 05-14-2009, 04:32 PM
  4. Replies: 4
    Last Post: 12-21-2007, 06:43 AM
  5. [SOLVED] Searching message headers?
    By gkra in forum Users
    Replies: 2
    Last Post: 08-11-2007, 08:26 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