X-Git-Url: http://git.rot13.org/?p=virtual-ldap;a=blobdiff_plain;f=bin%2Fldap-rewrite.pl;h=490b44461acae248103bf1cf4067a82c3a2a70e4;hp=48a706a0563e0b68015e616fd00978d715b4de5b;hb=d732f4fac3e6d90364d9a2e904956a31a4a901cc;hpb=cd2c1b36b11137f1acb908bc8af30d6fb9db775b diff --git a/bin/ldap-rewrite.pl b/bin/ldap-rewrite.pl index 48a706a..490b444 100755 --- a/bin/ldap-rewrite.pl +++ b/bin/ldap-rewrite.pl @@ -145,7 +145,7 @@ sub log_response { foreach my $val ( @{ $attr->{vals} } ) { next if $val !~ m{.+:.+}; my ( $n, $v ) = split(/\s*:\s*/, $val ); - push @attrs, { type => $_->{type} . '_' . $n, vals => [ $v ] }; + push @attrs, { type => $attr->{type} . '_' . $n, vals => [ $v ] }; } } }