Zimbra Collaboration Suite Mailboxs Active Directory Users Sync
-
Clone this script from github or copy the files manually to your prefered directory.
-
Create settings.cfg from settings.cfg.example and change:
LDAPSEARCH=/opt/zimbra/bin/ldapsearch
ZMPROV=/opt/zimbra/bin/zmprov
TMP_DIR=/scripts
HOME_DIR=/scripts
EXCLUDE_FILE=exclude.txt
DOMAIN_NAME="domain.com"
LDAP_SERVER="ldap://dc01.domain.com"
BASEDN="dc=domain,dc=com"
BINDDN="CN=USERNAME,OU=MYOU,DC=domain,DC=com"
BINDPW="PASSWORD"
FIELDS="mail"
#FILTER="(&(sAMAccountName=*)(objectClass=user)(givenName=*)(memberOf=cn=Zimbra,cn=Users,$BASEDN))"
#FILTER="(&(sAMAccountName=*)(objectClass=user)(givenName=*))"
Author: RaveMaker.