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