Bug 7235 - Auto Provision New Accounts with External LDAP (I believe AD is included in that)
Right now the authentication section isn't designed to provision users, but you can use zmprov commands to do the account creation.
Zmprov - Zimbra :: Wiki Zmprov Examples - Zimbra :: Wiki Bulk Provisioning - Zimbra :: Wiki
In AD you should be able to right click the folder containing the user you want, then export list > csv file.
Some excerpts from the bulk article-
A simple perl script to take a CSV file and turn it into the correct zmprov commands (obviously change the variables to the actual fields you use in your CSV file):
#!/usr/bin/perl
while (<>) {
chomp;
my ($email, $password, $first, $last) = split(/\,/, $_, 4);
print qq{ca $email $password\n};
print qq{ma $email givenName "$first"\n};
print qq{ma $email sn "$last"\n};
print qq{ma $email displayName "$first $last"\n};
print qq{\n};
}
I would use ‘’ for the passwords so that it would just use the external auth (seeing as passwords probably won't be in this csv list)
While I don't know your exact version (zmcontrol -v & add it to your forum profile) fallback to internal auth should automatically be on for the admin accounts (incase for whatever reason you can't connect to the external auth).
So it would assign everyone to the default COS (class of service), if you wanted to organize it during import you could put the cos names in the csv file, then lookup the valid COS ID ahead of time or like this:
my $cosid = `su - zimbra -c 'zmprov gc Default |grep zimbraId:'`;
$cosid =~ s/zimbraId:\s*|\s*$//g;
then:
print qq{ma $email zimbraCOSid "$cosid"\n};
Anteos seems to manage his fully through AD & may have some tips:
Quote:
Originally Posted by anteos Zimbra doesn't support user and group creation through AD, but you can write small scripts to synchronize the users on Zimbra against AD. We made it with users (created, locked, deleted), groups, shared calendars and distribution lists fully managed through AD. |