or program against the Zimbra Java Provisioning API just like zmprov does.
Your compile and runtime classpath should include all the jars in /opt/zimbra/lib/jars
Look at the code for ProvUtil.java which exercises the Provisioning API.
Caveat emport: Provisioning.java API is not guaranteed as much as the SOAP APIs are for compatibility.
http://zimbra.svn.sourceforge.net/vi...va?view=markup