diff --git a/zmldapsync/zmldapsync.pl b/zmldapsync/zmldapsync.pl index 75ccd66..89806e0 100644 --- a/zmldapsync/zmldapsync.pl +++ b/zmldapsync/zmldapsync.pl @@ -573,7 +573,7 @@ DOMAIN: foreach my $domain ( keys $conf->{domains} ) { $attrs .= ' ' . $conf->{domains}->{$domain}->{groups}->{attr_map}->{$attr} . " " . zim_attr_value( $ext_groups->{$group}->{$attr} ); } - $attrs .= " zimbraDistributionListUnsubscriptionPolicy REJECT" + $attrs .= " zimbraDistributionListUnsubscriptionPolicy REJECT"; $attrs .= " zimbraDistributionListSubscriptionPolicy REJECT"; my $mail_status = ( defined $ext_groups->{$group}->{$conf->{domains}->{$domain}->{groups}->{mail_attr}} ) ? 'enabled' : 'disabled'; @@ -769,7 +769,7 @@ sub yaml_bool { # Takes the domain conf hashref as only arg sub build_domain_attrs { my $domain_conf = shift; - my $type = ( $domain_conf->{ldap}->{schema} eq =~ m/^ad/i ) ? 'ad' : 'ldap'; + my $type = ( $domain_conf->{ldap}->{schema} =~ m/^ad/i ) ? 'ad' : 'ldap'; my $attrs = "zimbraAuthMech " . zim_attr_value( $type ); $attrs .= " zimbraAuthMechAdmin " . zim_attr_value( $type ); if ( defined $domain_conf->{ldap}->{bind_dn} and