When creating a domain, first create, then configure

createDomain does not accept +zimbraAuthLdapURL (multi-value attr)
master
Daniel Berteaud 5 years ago
parent 04aa834976
commit 2c4e81f70b
  1. 5
      zmldapsync/zmldapsync.pl

@ -107,9 +107,8 @@ DOMAIN: foreach my $domain ( keys $conf->{domains} ) {
if ( scalar $zim_domain_search->entries == 0 ) {
if ( yaml_bool($conf->{domains}->{$domain}->{zimbra}->{create_if_missing}) ) {
log_info( "Creating domain $domain" );
send_zmprov_cmd( "createDomain $domain " .
build_domain_attrs($conf->{domains}->{$domain})
);
send_zmprov_cmd( "createDomain $domain ");
send_zmprov_cmd( "modifyDomain $domain " . build_domain_attrs( $conf->{domains}->{$domain} ));
# Now that we have created the domain, lets lookup again
$zim_domain_search = search_zim_domain($domain);
} else {

Loading…
Cancel
Save