From e3cf8697481dd02fc0400c0cef7f298f797111f7 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 2 Sep 2010 12:36:37 +0000 Subject: [PATCH] apply regex on hrEduPersonGroupMember this is used to rename group --- bin/ldap-rewrite.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/ldap-rewrite.pl b/bin/ldap-rewrite.pl index b35822e..741a0a6 100755 --- 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 ] }; } + } elsif ( $attr->{type} eq 'hrEduPersonGroupMember' ) { + foreach my $i ( 0 .. $#{ $attr->{vals} } ) { + $attr->{vals}->[$i] =~ s/^u2010/p2010/gs && warn "FIXME group"; + } } } -- 2.20.1