Do not use attr_maps defaults when some are provided in the config
This commit is contained in:
parent
1fa3ccb2d7
commit
556172241b
|
@ -968,5 +968,10 @@ sub get_default_conf {
|
|||
}
|
||||
};
|
||||
}
|
||||
# If some attribute mapping is defined in the provided conf
|
||||
# do not use defaults
|
||||
foreach my $type ( qw( users groups ) ) {
|
||||
$defaults->{$type}->{attr_map} = {} if ( defined $conf->{$type}->{attr_map} );
|
||||
}
|
||||
return merge $defaults, $conf;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue