projects
/
virtual-ldap
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
apply regex on hrEduPersonGroupMember
[virtual-ldap]
/
bin
/
ldap-rewrite.pl
diff --git
a/bin/ldap-rewrite.pl
b/bin/ldap-rewrite.pl
index
b35822e
..
741a0a6
100755
(executable)
--- a/
bin/ldap-rewrite.pl
+++ b/
bin/ldap-rewrite.pl
@@
-147,6
+147,10
@@
sub log_response {
my ( $n, $v ) = split(/\s*:\s*/, $val );
push @attrs, { type => $attr->{type} . '_' . $n, vals => [ $v ] };
}
my ( $n, $v ) = split(/\s*:\s*/, $val );
push @attrs, { type => $attr->{type} . '_' . $n, vals => [ $v ] };
}
+ } elsif ( $attr->{type} eq 'hrEduPersonGroupMember' ) {
+ foreach my $i ( 0 .. $#{ $attr->{vals} } ) {
+ $attr->{vals}->[$i] =~ s/^u2010/p2010/gs && warn "FIXME group";
+ }
}
}
}
}