More fixes on reading single valued attr which are mapped to Zimbra

master
Daniel Berteaud 5 years ago
parent 4bf1cfa163
commit fe34c0ddf0
  1. 6
      zmldapsync/zmldapsync.pl

@ -295,8 +295,7 @@ DOMAIN: foreach my $domain ( keys $conf->{domains} ) {
log_verbose( "Comparing the accounts" ); log_verbose( "Comparing the accounts" );
my $single = map { $conf->{domains}->{$domain}->{users}->{attr_map}->{$_} } my @single = keys $conf->{domains}->{$domain}->{users}->{attr_map};
keys $conf->{domains}->{$domain}->{users}->{attr_map};
push @single, $conf->{domains}->{$domain}->{users}->{mail_attr}; push @single, $conf->{domains}->{$domain}->{users}->{mail_attr};
my $ext_users = ldap2hashref( my $ext_users = ldap2hashref(
$ext_user_search, $ext_user_search,
@ -502,8 +501,7 @@ DOMAIN: foreach my $domain ( keys $conf->{domains} ) {
" distribution list(s) in Zimbra" ); " distribution list(s) in Zimbra" );
log_verbose( "Comparing groups with distribution lists" ); log_verbose( "Comparing groups with distribution lists" );
my @single = map { $conf->{domains}->{$domain}->{groups}->{attr_map}->{$_} } my @single = keys $conf->{domains}->{$domain}->{groups}->{attr_map};
keys $conf->{domains}->{$domain}->{groups}->{attr_map};
push @single, $conf->{domains}->{$domain}->{groups}->{mail_attr}; push @single, $conf->{domains}->{$domain}->{groups}->{mail_attr};
my $ext_groups = ldap2hashref( my $ext_groups = ldap2hashref(

Loading…
Cancel
Save