ldap2zm
You can download ldap2zm here.NAME
ldap2zm - create zimbra accounts for LDAP users
SYNOPSIS
usage: ldap2zm -h host -b 'base' [ options ]
Switches: -h LDAP hostname -b LDAP search base Options: -v enable verbose output -u username for LDAP bind -p LDAP for LDAP bind -f LDAP search filter (default: '(objectclass=*)' ) -l list users found in LDAP search; take no other action
DESCRIPTION
*** WARNING! THIS SCRIPT WILL DESTROY EXISTING MAILBOXES!
ldap2zm will create accounts in zimbra for every user it finds in the specified LDAP server. Existing accounts are purged from zimbra at the start of each run, so DO NOT RUN THIS ON A PRODUCTION ZIMBRA SERVER! Don't say I didn't warn you. :)
EXAMPLE
The following command would create zimbra accounts for all employees of example.com who are members of the 'Zimbra Users' group on the hypothetical Active Directory server 'adserver', using the administrator's credentials:
ldap2zm -h adserver -u administrator -p s3cr3t -b "DC=example,DC=com" \
-f '(memberOf=CN=Zimbra Users,OU=Employees,DC=example,DC=com)'
AUTHOR
ldap2zm was written by Greg Boyington < greg [at] automagick.us >.
SEE ALSO
http://wiki.zimbra.com/index.php?title=Bulk_ProvisioningLicense
All source code, tools and scripts on http://automagick.us is Copyright © 2007 - 2010 Greg Boyington, and licensed under aCreative Commons Attribution-Share Alike 3.0 United States License, except where otherwise noted.
