|
|
@ -573,7 +573,7 @@ DOMAIN: foreach my $domain ( keys $conf->{domains} ) { |
|
|
|
$attrs .= ' ' . $conf->{domains}->{$domain}->{groups}->{attr_map}->{$attr} . " " . |
|
|
|
$attrs .= ' ' . $conf->{domains}->{$domain}->{groups}->{attr_map}->{$attr} . " " . |
|
|
|
zim_attr_value( $ext_groups->{$group}->{$attr} ); |
|
|
|
zim_attr_value( $ext_groups->{$group}->{$attr} ); |
|
|
|
} |
|
|
|
} |
|
|
|
$attrs .= " zimbraDistributionListUnsubscriptionPolicy REJECT" |
|
|
|
$attrs .= " zimbraDistributionListUnsubscriptionPolicy REJECT"; |
|
|
|
$attrs .= " zimbraDistributionListSubscriptionPolicy REJECT"; |
|
|
|
$attrs .= " zimbraDistributionListSubscriptionPolicy REJECT"; |
|
|
|
my $mail_status = ( defined $ext_groups->{$group}->{$conf->{domains}->{$domain}->{groups}->{mail_attr}} ) ? |
|
|
|
my $mail_status = ( defined $ext_groups->{$group}->{$conf->{domains}->{$domain}->{groups}->{mail_attr}} ) ? |
|
|
|
'enabled' : 'disabled'; |
|
|
|
'enabled' : 'disabled'; |
|
|
@ -769,7 +769,7 @@ sub yaml_bool { |
|
|
|
# Takes the domain conf hashref as only arg |
|
|
|
# Takes the domain conf hashref as only arg |
|
|
|
sub build_domain_attrs { |
|
|
|
sub build_domain_attrs { |
|
|
|
my $domain_conf = shift; |
|
|
|
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 ); |
|
|
|
my $attrs = "zimbraAuthMech " . zim_attr_value( $type ); |
|
|
|
$attrs .= " zimbraAuthMechAdmin " . zim_attr_value( $type ); |
|
|
|
$attrs .= " zimbraAuthMechAdmin " . zim_attr_value( $type ); |
|
|
|
if ( defined $domain_conf->{ldap}->{bind_dn} and |
|
|
|
if ( defined $domain_conf->{ldap}->{bind_dn} and |
|
|
|