projects
/
virtual-ldap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d732f4f
)
fix date recognition regex for yyyymmdd
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 3 Mar 2010 20:38:16 +0000
(20:38 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 3 Mar 2010 20:38:16 +0000
(20:38 +0000)
bin/ldap-rewrite.pl
patch
|
blob
|
history
diff --git
a/bin/ldap-rewrite.pl
b/bin/ldap-rewrite.pl
index
490b444
..
f7be5e3
100755
(executable)
--- a/
bin/ldap-rewrite.pl
+++ b/
bin/ldap-rewrite.pl
@@
-139,7
+139,7
@@
sub log_response {
foreach my $attr ( @{ $response->{protocolOp}->{searchResEntry}->{attributes} } ) {
if ( $attr->{type} =~ m/date/i ) {
foreach my $i ( 0 .. $#{ $attr->{vals} } ) {
foreach my $attr ( @{ $response->{protocolOp}->{searchResEntry}->{attributes} } ) {
if ( $attr->{type} =~ m/date/i ) {
foreach my $i ( 0 .. $#{ $attr->{vals} } ) {
- $attr->{vals}->[$i] = "$1-$2-$3" if $attr->{vals}->[$i] =~ m/^([12]\d\d\d)([01]\d+)([123]\d+)$/;
+ $attr->{vals}->[$i] = "$1-$2-$3" if $attr->{vals}->[$i] =~ m/^([12]\d\d\d)([01]\d+)([
0
123]\d+)$/;
}
} elsif ( $attr->{type} eq 'hrEduPersonUniqueNumber' ) {
foreach my $val ( @{ $attr->{vals} } ) {
}
} elsif ( $attr->{type} eq 'hrEduPersonUniqueNumber' ) {
foreach my $val ( @{ $attr->{vals} } ) {